chess-support-mcp
Manages the state of a chess game for LLMs/agents without suggesting moves, providing tools to create/reset game, add moves, get status, and check legality.
README
Chess Support MCP Server
An MCP server that manages the state of a chess game for LLMs/agents. It intentionally does not suggest moves. Instead, it provides tools to:
- Create/reset game
- Add a move (UCI)
- List all moves
- Get last N moves
- Machine-friendly board JSON (square-to-piece map) in
get_status() - Check if a move is legal
- Get status (FEN, whose turn, check, game over, result)
Requirements
- Python 3.13+
- uv package manager
Run via uvx directly from GitHub (no local checkout)
You can run this MCP server without cloning by using uvx with a Git URL. Replace placeholders with your repo info and optional tag/commit.
Generic MCP config (Inspector-style):
{
"servers": {
"chess-support-mcp": {
"transport": {
"type": "stdio",
"command": "uvx",
"args": [
"--from",
"git+https://github.com/danilop/chess-support-mcp.git",
"chess-support-mcp"
]
}
}
}
}
Claude Desktop mcpServers example:
{
"mcpServers": {
"chess-support-mcp": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/danilop/chess-support-mcp.git",
"chess-support-mcp"
]
}
}
}
The first run may take longer while uvx resolves and builds the package; subsequent runs use cache.
Configure as a local MCP server (JSON)
Use stdio with uv run (no hardcoded paths). Example generic JSON config:
{
"servers": {
"chess-support-mcp": {
"transport": {
"type": "stdio",
"command": "uv",
"args": ["run", "chess-support-mcp"]
}
}
}
}
Include a local path to your project without hardcoding a specific one by using a placeholder and setting the working directory via cwd (preferred), or by passing --project:
Option A (preferred: set working directory):
{
"servers": {
"chess-support-mcp": {
"transport": {
"type": "stdio",
"command": "uv",
"args": ["run", "chess-support-mcp"],
"cwd": "<ABSOLUTE_PATH_TO_PROJECT>"
}
}
}
}
Option B (use uv's project flag):
{
"servers": {
"chess-support-mcp": {
"transport": {
"type": "stdio",
"command": "uv",
"args": ["run", "--project", "<ABSOLUTE_PATH_TO_PROJECT>", "chess-support-mcp"]
}
}
}
}
Claude Desktop configuration (in its JSON settings), using mcpServers:
{
"mcpServers": {
"chess-support-mcp": {
"command": "uv",
"args": ["run", "chess-support-mcp"],
"cwd": "<ABSOLUTE_PATH_TO_PROJECT>"
}
}
}
Tools (Methods)
create_or_reset_game()→ Reset to initial position. Returnsstatus(withpiecesmap), andmoves.get_status()→ Returns FEN;side_to_move(white/black);fullmove_number;halfmove_clock;ply_count;last_move_uci;last_move_san;who_moved_last; check flags;is_game_over;resultwhen over; and apiecesmap for machine reasoning.add_move(uci: str)→ Apply a move if legal (e.g.,e2e4,g1f3, promotion likee7e8q). Returns{ accepted, status }and, on success, alsomovesandmoves_detailed. On failure returns{ accepted:false, reason:"illegal"|"parse_error", expected_turn? }withstatusreflecting the unchanged position.is_legal(uci: str)→ Check legality of a UCI move in the current position.list_moves()→ All moves in UCI made so far.list_moves_detailed()→ All moves withply,side,uci,san.last_moves(n: int=1)→ Last N moves in UCI.last_moves_detailed(n: int=1)→ Last N moves withply,side,uci,san.board_ascii()→ ASCII board (optional, human-oriented). The normal API returns machine-friendly JSON instatus.pieces.
API design notes
- Moves are always provided in UCI (e.g.,
e2e4,g1f3, promotionse7e8q). The server infers side-to-move from position; you never specify white/black when sending a move. get_status().side_to_movetells the model whose turn it is.who_moved_last,last_move_uci, andlast_move_sanhelp with context.- Detailed move lists are provided in separate
*_detailedtools to keep the basic list simple and backwards compatible.
Notes
- The server maintains one in-memory game.
- The server does not provide hints or best moves.
Development
- Run tests:
uv run pytest -q
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。