This is a fun MCP (Model Context Protocol) project that provides a simple server for interacting with the Chess.com public API. It demonstrates how to build and expose chess-related tools using the MCP framework.
- Query Chess.com player profiles and stats
- Exposes tools as MCP endpoints
- Easy to run and extend
src/chess/chess_api.py: Functions to call Chess.com public APIsrc/chess/server.py: MCP server exposing chess toolsmain.py: Simple entry pointpyproject.toml: Project configuration
Install dependencies (MCP Server):
"Chess": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/aruganga/MCP-CHESS.git",
"chess"
]
}You can run the MCP chess server with:
/Users/aruganga/.local/bin/uv --directory /Users/aruganga/Learning/mcp-ai-agent/mcp-build-chess-server run chessOr, if installed as a package:
chessget_chess_player_profile(username: str): Get a Chess.com player's public profileget_chess_player_stats(username: str): Get a Chess.com player's stats
This project is a playful demonstration of MCP and chess API integration. You can easily add more endpoints or connect to other chess APIs for more features!
Enjoy exploring chess data with MCP!