A Model Context Protocol (MCP) server that enables AI assistants to play and analyze chess games.
This MCP server provides chess functionality through the Model Context Protocol, allowing AI assistants like Claude to:
- Play chess games with proper move validation
- Analyze positions and suggest moves
- Track game state and history
- Support standard chess notation
- Python 3.8 or higher
uvxpackage runner
Add the following configuration to your MCP settings file (typically claude_desktop_config.json):
{
"mcpServers": {
"chess": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/chatkausik/Chess-mcp-server-build.git",
"chess"
]
}
}
}- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
Once configured, the chess server will be available to Claude through the MCP protocol. You can:
- Start a new game: Ask Claude to begin a chess game
- Make moves: Use standard algebraic notation (e.g., "e4", "Nf3", "O-O")
- Analyze positions: Request analysis of the current board state
- Review game history: View previous moves and positions
- ♟️ Full chess rule implementation
- ✅ Move validation and legal move generation
- 📊 Position evaluation and analysis
- 📝 Game history tracking
- 🎯 Support for standard chess notation
- 🔄 Game state persistence during session
User: Let's play chess. I'll be white.
Claude: I'll start a new game. Make your first move!
User: e4
Claude: Good opening! I'll respond with e5.
User: Analyze the position
Claude: [Provides analysis of current board state]
Source code: https://github.com/chatkausik/Chess-mcp-server-build
Contributions are welcome! Please feel free to submit issues or pull requests to the GitHub repository.
This server uses:
- MCP Protocol: Model Context Protocol for AI integration
- Python Chess Library: For game logic and validation
- uvx: For package execution and management
If you encounter issues:
- Ensure
uvxis installed and accessible in your PATH - Verify the configuration file is in the correct location
- Restart Claude after making configuration changes
- Check that you have an active internet connection for initial installation
Please refer to the repository for license information.
For bugs, feature requests, or questions, please open an issue on the GitHub repository.
Made with ♟️ by the chess MCP community