
pab1it0/chess-mcp 是从 https://github.com/pab1it0/chess-mcp. 导入的 MCP 服务器候选服务器。
概览
pab1it0/chess-mcp 是从 https://github.com/pab1it0/chess-mcp. 导入的 MCP 服务器候选服务器。
概述(AI 翻译)
一个用于 Chess.com 发布数据API的[模型上下文协议][mcp](MCP)服务器。
这通过标准化的MCP界面,提供 Chess.com 棋手数据、棋局记录及其他公开信息,使AI助手能够搜索和分析国际象棋信息。
https://github.com/user-attachments/assets/3b33361b-b604-465c-9f6a-3699b6907757
[mcp]: https://modelcontextprotocol.io/introduction/introduction
特色
- [x] 访问球员资料、统计数据和比赛记录
- [x] 按日期和球员搜索游戏
- [x] 查看玩家在线状态
- [x] 获取有关俱乐部和有头衔球员的信息
- [x] 无需认证(使用 Chess.com 的公共API)
- [x] Docker 容器化支持
- [x] 为AI助手提供交互式工具
工具列表是可配置的,你可以选择想让MCP客户端使用哪些工具。
用途
Docker (推荐)
用 Claude Desktop 运行 chess-mcp 最简单的方法是用 Docker。如果你还没安装 Docker,可以从 Docker 官网下载。
编辑你的Claude Desktop配置文件:
- Mac:
~/Library/Application Support/Claude/claude_desktop_config.json
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Chess.com MCP Server
A Model Context Protocol (MCP) server for Chess.com’s Published Data API.
This provides access to Chess.com player data, game records, and other public information through standardized MCP interfaces, allowing AI assistants to search and analyze chess information.
https://github.com/user-attachments/assets/3b33361b-b604-465c-9f6a-3699b6907757
Features
- [x] Access player profiles, stats, and game records
- [x] Search games by date and player
- [x] Check player online status
- [x] Get information about clubs and titled players
- [x] No authentication required (uses Chess.com’s public API)
- [x] Docker containerization support
- [x] Provide interactive tools for AI assistants
The list of tools is configurable, so you can choose which tools you want to make available to the MCP client.
Usage
Docker (Recommended)
The easiest way to run chess-mcp with Claude Desktop is using Docker. If you don’t have Docker installed, you can get it from Docker’s official website.
Edit your Claude Desktop config file:
- Mac:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%/Claude/claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
Then add the following configuration:
{
"mcpServers": {
"chess": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"pab1it0/chess-mcp"
]
}
}
}
Running with UV
Alternatively, you can run the server directly using UV. Edit your Claude Desktop config file (locations listed above) and add the server configuration:
{
"mcpServers": {
"chess": {
"command": "uv",
"args": [
"--directory",
"",
"run",
"src/chess_mcp/main.py"
]
}
}
}
Note: if you see
Error: spawn uv ENOENTin Claude Desktop, you may need to specify the full path touvor set the environment variableNO_UV=1in the configuration.
Development
Contributions are welcome! Please open an issue or submit a pull request if you have any suggestions or improvements.
This project uses uv to manage dependencies. Install uv following the instructions for your platform:
curl -LsSf https://astral.sh/uv/install.sh | sh
You can then create a virtual environment and install the dependencies with:
uv venv
source .venv/bin/activate # On Unix/macOS
.venv\Scripts\activate # On Windows
uv pip install -e .
Testing
The project includes a test suite that ensures functionality and helps prevent regressions.
Run the tests with pytest:
# Install development dependencies
uv pip install -e ".[dev]"
# Run the tests
pytest
安装
docker run --rm -i pab1it0/chess-mcp配置
{
"mcpServers": {
"chess": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"pab1it0/chess-mcp"
]
}
}
}