suraj-yadav-aiml/chess-mcp-example
3.2
If you are the rightful owner of chess-mcp-example and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A simple Model Context Protocol (MCP) server to fetch Chess.com player data.
Tools
2
Resources
0
Prompts
0
Chess.com MCP Server
A simple Model Context Protocol (MCP) server to fetch Chess.com player data.
What is this?
This is a fun learning project to get hands-on experience with Model Context Protocol. It provides two simple tools to fetch player information from Chess.com's public API:
- Get Player Profile - Fetch public profile information (name, avatar, followers, etc.)
- Get Player Stats - Fetch player statistics (ratings for different game modes)
Installation
Add this to your Claude Desktop config file (claude_desktop_config.json
):
{
"mcpServers": {
"chess.com": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/suraj-yadav-aiml/chess-mcp-example.git",
"chess"
]
}
}
}
Usage
Once installed, you can ask Claude to:
- "Get the profile of chess player hikaru"
- "Show me the stats for chess player GothamChess"
- "What's the rating of player MagnusCarlsen?"
Project Structure
chess-mcp/
āāā src/
ā āāā chess/
ā āāā __init__.py
ā āāā server.py # MCP server with tool definitions
ā āāā chess_api.py # Chess.com API client
āāā pyproject.toml
āāā README.md
Requirements
- Python 3.12+
- httpx
- mcp[cli]