Chess MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Chess MCP Serverstart a new chess game and make the engine play a move"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Chess MCP Server
A Model Context Protocol (MCP) server that provides a chess-playing environment backed by the Stockfish engine. Designed for use with LLM clients (like Claude Desktop) to ensure all chess moves are legal and engine-calculated.
Features
Legal Move Validation: All moves are validated against chess rules
Stockfish Integration: Uses the Stockfish chess engine for AI moves
MCP Protocol: Communicates via JSON-RPC over stdio
In-Memory Game State: Maintains multiple concurrent games
Related MCP server: Chess MCP Server
Installation
pip install chess-mcpYou'll also need to install Stockfish:
Windows: Download from Stockfish website
macOS:
brew install stockfishLinux:
sudo apt install stockfish(or equivalent)
Usage
Set the
STOCKFISH_PATHenvironment variable to the path of your Stockfish executable:export STOCKFISH_PATH=/path/to/stockfishRun the server:
python -m chess_mcp
MCP Tools
new_game()
Starts a new chess game from the standard initial position.
Returns:
game_id: Unique identifier for the gamefen: Current position in FEN notationlegal_moves: List of all legal moves in UCI format
make_move(game_id, move_uci)
Applies a human move to the game. The move must be in UCI format (e.g., "e2e4").
Parameters:
game_id: Identifier of the active gamemove_uci: Move in UCI format
Returns:
ok: Whether the move was legal and appliedfen: Updated board position (if move was legal)legal_moves: Updated list of legal moves
engine_move(game_id, depth=14)
Asks Stockfish to calculate and play one move for the side to move.
Parameters:
game_id: Identifier of the active gamedepth: Search depth for Stockfish (higher = stronger but slower)
Returns:
engine_move: The move played by Stockfish in UCI formatfen: Updated board position after the movelegal_moves: Updated list of legal moves
Development
To set up for development:
git clone https://github.com/yourusername/chess-mcp.git
cd chess-mcp
pip install -e .License
MIT License
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceProvides an interactive chess game experience through MCP tools with a web-based chessboard interface. Enables users to play chess games, make moves using standard algebraic notation, and manage persistent game state across sessions.Last updated225Apache 2.0
- Flicense-qualityDmaintenanceEnables chess gameplay and interaction through MCP protocol. Allows users to play chess games, make moves, and manage chess sessions through natural language commands.Last updated
- Flicense-qualityDmaintenanceEnables AI assistants to play, analyze, and track chess games with full rule validation and support for standard algebraic notation. It provides tools for position evaluation and game state persistence during user sessions.Last updated
- Alicense-qualityBmaintenanceEnables AI assistants to perform professional-grade chess analysis using Stockfish and optionally Leela Chess Zero, including position analysis, full game review, opening lookup, and puzzle generation.Last updated342MIT
Related MCP Connectors
Create Hevy routines and analyze your training from chat. Unofficial; BYO Hevy PRO API key.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to control Unreal E…
Buy & manage domains from any AI chat: availability, register, DNS, email forwarding, AI bot stats.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/11hritik11/chess-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server