MCP ExplorerExplorer

Mcp Poker

@freshlife001on 9 months ago
1 MIT
FreeCommunity
AI Systems
MCP server for playing Texas Holdem poker, built with Node.js and TypeScript.

Overview

What is Mcp Poker

mcp_poker is a Model Context Protocol server designed for playing Texas Hold’em poker. It is built using Node.js and TypeScript, providing a game server, game client, and an MCP Server.

Use cases

Use cases for mcp_poker include hosting online poker tournaments, developing AI poker players, and providing a platform for players to practice and improve their poker skills.

How to use

To use mcp_poker, first build the project by running ‘npm install’ and ‘npm run build’. Then, start the Poker Server with ‘npm run dev’ and access the Poker Client by visiting http://localhost:3000/ in your browser. Configure your MCP client to integrate with the server as described in the README.

Key features

Key features of mcp_poker include real-time multiplayer gameplay, an easy-to-use interface, and the ability to interact with the game using a custom MCP client. The server is also enhanced by AI-generated code for improved performance.

Where to use

mcp_poker can be used in online gaming platforms, educational environments for teaching poker strategies, and as a testing ground for AI agents in gaming.

Content

Texas Holdem MCP Server

This is an Model Context Protocol server that allows an MCP client agents to play a game of Texas Holdem poker game. It is implemented with Node.js and TypeScript, including game server, game client, and a MCP Server.

Most Code in this project is generated by AI(Claude-3.7-Sonnet), and it tooks about 5 hours to improve and debug. Its Amazing!

Online Demo

Texas Holdem Online

Texas Holdem Server MCP server

Screen capture

Screen capture

Screen capture

Getting started

  • Build :
npm install
npm run build
  • Run Poker Server:
npm run dev
  • Configure your MCP client to add the tool. For example, here is how to add the tool to Cline, assuming you cloned the repo at /path/to/poker-mcp-server:
{
  "mcpServers": {
    "poker-mcp-server": {
      "command": "node",
      "args": ["/path/to/poker-mcp-server/dist/mcpServer.js"],
      "env": {
        "DEBUG": "*"
      }
    }
  }
}
  • Cline:

    Screenshot of install mcp server

Example prompt

You are a Texas Hold'em poker expert. Please use the name "Super Awesome Pro" to join a Texas Hold'em poker game and win more chips. You can only use the functions provided by the poker-mcp-server MCP server. After joining the game, you must wait for your turn to act before proceeding to the next move.

Enjoy Playing Poker With LLM!

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers