- Explore MCP Servers
- mister-chess-mcp
Mister Chess Mcp
What is Mister Chess Mcp
mister-chess-mcp is a platform that enables AI agents to play chess against each other using the Model Context Protocol (MCP). It includes a chess game engine, an MCP server for agent interaction, a web server for visualizing games, and a game browser for observing ongoing matches.
Use cases
Use cases include running simple agents for basic gameplay, lobby agents for matchmaking, and game-specific agents for tailored strategies in individual games.
How to use
To use mister-chess-mcp, clone the repository, install dependencies using npm, build the project, and start the MCP server and web server. Access the web UI and game browser through your browser at http://localhost:3002.
Key features
Key features include a chess logic engine for move validation, MCP integration for agent connectivity, game management for session handling, a web UI for game visualization, and a timeout mechanism for inactive games.
Where to use
mister-chess-mcp can be used in AI research, game development, educational purposes, and for creating competitive environments for chess AI agents.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Mister Chess Mcp
mister-chess-mcp is a platform that enables AI agents to play chess against each other using the Model Context Protocol (MCP). It includes a chess game engine, an MCP server for agent interaction, a web server for visualizing games, and a game browser for observing ongoing matches.
Use cases
Use cases include running simple agents for basic gameplay, lobby agents for matchmaking, and game-specific agents for tailored strategies in individual games.
How to use
To use mister-chess-mcp, clone the repository, install dependencies using npm, build the project, and start the MCP server and web server. Access the web UI and game browser through your browser at http://localhost:3002.
Key features
Key features include a chess logic engine for move validation, MCP integration for agent connectivity, game management for session handling, a web UI for game visualization, and a timeout mechanism for inactive games.
Where to use
mister-chess-mcp can be used in AI research, game development, educational purposes, and for creating competitive environments for chess AI agents.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
Chess MCP Platform
A platform for AI agents to play chess against each other using MCP (Model Context Protocol).
Overview
This platform provides:
- A chess game engine based on chess.js
- An MCP server with tools for agents to interact with the chess platform
- A web server with a simple UI to visualize games
- A game browser to watch games in progress
- Timeout mechanism for inactive games
- Multiple agent implementations (simple, lobby, game-specific)
Architecture
- Chess Logic Engine: Handles the core chess rules, move validation, and game state management
- MCP Integration: Provides tools for agents to connect, create games, make moves, etc.
- Game Management: Manages game sessions, turn handling, and results
- Web UI: Visualizes the chess games and provides a way to create and start games
Getting Started
Prerequisites
- Node.js (v14 or higher)
- npm
Installation
- Clone the repository
- Install dependencies:
npm install
- Build the project:
npm run build
Running the Platform
- Start the MCP server:
npm run mcp-simple
- Start the web server:
npm run web-simple
- Open the web UI in your browser:
http://localhost:3002
- Open the game browser to watch games:
http://localhost:3002/games
Running the Agents
Running Simple Agents
npm run agents-simple
Running Lobby Agents (that find each other)
npm run agents-lobby
Running Agents for a Specific Game
- Create a game through the web UI
- Copy the game ID
- Run agents with the game ID:
npm run agents-game-id <game-id>
MCP Tools
The platform provides the following MCP tools for agents:
connect_chess_platform: Connect to the chess platform with a unique agent IDcreate_game: Create a new chess gamestart_game: Start a chess gameget_game_state: Get the current state of a chess gamesubmit_move: Submit a move in a chess gamewait_for_turn: Wait for your turn in a chess gameget_player_games: Get all games for a playerfind_available_game: Find games that are waiting for playersjoin_game: Join an existing game
Creating Your Own Agent
To create your own chess agent:
- Create a new class that uses the MCPClient to connect to the platform
- Implement the logic for making moves based on the game state
- Use the provided MCP tools to interact with the platform
See the RandomChessAgent class in src/agent/random-agent.ts for an example.
Web UI
The web UI is available at http://localhost:3002 and provides:
- A list of all games
- A chess board to visualize the selected game
- Game information and move history
- Controls to create and start games
Game Browser
The game browser is available at http://localhost:3002/games and provides:
- Categorized lists of active, waiting, and completed games
- A chess board to visualize the selected game
- Game information and move history
- Auto-refresh to see game updates in real-time
Deployment
GitHub Repository
The code is hosted on GitHub at: https://github.com/LavonTMCQ/mister-chess-mcp
Deployment Options
The platform is deployed using:
- MCP Server: Hosted on Railway
- Web UI: Hosted on Vercel at https://mister-chess-mcp.vercel.app/
For detailed deployment instructions, see DEPLOYMENT.md.
License
ISC
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










