sdf
Chess CEO MCP server lets AI assistants query real chess data and run preparation/analysis workflows against chess.ceo's 11.7M+ game database and FIDE player profiles.
Player lookups: fuzzy name search to FIDE IDs, full profiles (ratings, openings, results, notable wins).
Opening/position stats: query the game database by FEN or SAN line for move frequencies and win rates.
Preparation: get a player's repertoire by color/position, compare opponent vs your own vs the general database, and build opponent-specific plans.
Head-to-head records between two FIDE players, including per-color splits, time controls, and most-played openings.
Live tournaments: list ongoing events, see participants, and check if a player is competing right now.
Engine analysis: short Stockfish evaluations, plus cloud engines (Stockfish + Lc0) for deeper/automated evaluation jobs.
Prep-file workflow: read/edit server-side repertoire PGNs, add lines/moves, apply mutations, and run long-running evaluation jobs.
Built-in prompts for pre-match prep, player scouting, and head-to-head briefings, plus bundled documentation guides.
Flexible deployment: stdio for Claude/Cursor, remote hosted MCP, or self-hosted HTTP transport; read-only data needs no auth while cloud/prep tools use a bearer token or OAuth.
@chessceo/mcp
Model Context Protocol server for chess.ceo — 11.7M+ games, ~1.5M FIDE player profiles, opening preparation, live broadcasts, cloud engine analysis, and (signed-in) a full read/write prep-file workflow. Lets Claude, Cursor, and any other MCP host answer chess questions directly against real data instead of hallucinating.
Player/game lookups need no API key or auth. Cloud engines and prep-file tools need a mcp_... bearer token (see Auth below).
What it can do
49 tools as of v0.49.0, mirroring the chess.ceo API surface. A few of the most-used:
Tool | What it answers |
| "Find FIDE ID for Magnus Carlsen" |
| "How strong is X, what do they play, who have they beaten" |
| "What does X play against 1.e4? What's their win rate with the Najdorf?" |
| "From this position, which move scores best in the 11.7M-game database?" |
| "What's the record between X and Y?" |
| "What's being broadcast live right now? Who's playing? Is X in it?" |
| "Run Stockfish + Lc0 on this position on my rented GPU instance" |
| Read and edit your own repertoire/course PGNs stored server-side |
| Kick off a long-running engine-evaluation job over a whole prep file, poll it, cancel it |
| Bundled guides (engine usage, opening prep, prep-file conventions, PGN authoring, summary authoring) |
Full tool inventory with categories lives in CLAUDE.md under "Tools cheatsheet" — that's the maintained source of truth; this table is illustrative, not exhaustive.
Related MCP server: Chess MCP
Install (Claude Desktop)
Add to your claude_desktop_config.json (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows):
{
"mcpServers": {
"chessceo": {
"command": "npx",
"args": ["-y", "@chessceo/mcp"]
}
}
}Restart Claude Desktop. You should see the chess.ceo tools appear in the tool list at the bottom of the chat.
Install (Cursor)
Similar ~/.cursor/mcp.json:
{
"mcpServers": {
"chessceo": {
"command": "npx",
"args": ["-y", "@chessceo/mcp"]
}
}
}Install (Claude Code)
This repo is also a Claude Code plugin marketplace, so you can add it directly:
/plugin marketplace add chessceo/chessceo-mcp
/plugin install chessceo@chessceoClaude Code will pull the plugin from GitHub and wire the MCP server automatically. Enable "Sync automatically" in the marketplace UI if you want future updates fetched on push.
Auth (for cloud engines and prep files)
Read-only chess data — player search, profiles, position stats, head-to-head, live tournaments — needs nothing. Cloud engine tools and your own prep-file tools (list/read/create/edit) need a mcp_... bearer token.
Local (
npx/Claude Desktop/Cursor): setCHESSCEO_TOKENin the server'senvblock:{ "mcpServers": { "chessceo": { "command": "npx", "args": ["-y", "@chessceo/mcp"], "env": { "CHESSCEO_TOKEN": "mcp_..." } } } }Get a token from your chess.ceo account settings.
Remote (
mcp.chess.ceo/mcp): no config needed — calling an authed tool without a token triggers the host's normal OAuth flow (claude.ai, ChatGPT connectors) automatically.
Try it
Ask your model:
"Who has the better record against Magnus Carlsen: Ding Liren or Fabiano Caruana?"
"What does Alireza Firouzja play with White against the Najdorf?"
"Are there any live tournaments right now with Hikaru Nakamura?"
"From the position after 1.e4 c5 2.Nf3 d6 3.d4 cxd4 4.Nxd4 Nf6 5.Nc3 a6, what's the top continuation across the whole database?"
Prep workflow (built-in prompts)
For MCP hosts that show prompts in a slash-menu (Claude Desktop, Cursor, Claude Code), three pre-baked prompts are included so users get a proper preparation workflow without prompt-engineering their own:
Prompt | Purpose |
| Full pre-match workflow: resolves both players, weights games by recency + format (classical OTB > rapid/blitz > online), walks the opponent's repertoire looking for lines where they score under 40%, checks head-to-head, and delivers a concrete plan with the moves to steer toward the opponent's weak points. |
| Deep scouting report on one player — style, top openings, recent form, biggest wins and losses, recurring weaknesses. |
| One-paragraph read on the history between two players — who has the edge, dominant openings, style clash, current form. |
Pick one from the host's slash-menu, fill in the arguments, and the model does the rest.
Remote MCP (chess.ceo-hosted)
You can also connect to chess.ceo's hosted instance and skip installing anything:
https://mcp.chess.ceo/mcpIn Claude Code:
/plugin add-mcp url https://mcp.chess.ceo/mcpIn Claude Desktop, edit claude_desktop_config.json:
{
"mcpServers": {
"chessceo": {
"url": "https://mcp.chess.ceo/mcp"
}
}
}Same tools, same data, zero-install. Bearer-authed tools (cloud engines, prep files) go through this host's OAuth flow instead of a config-file token. Useful when the host can't spawn subprocesses (e.g. Claude.ai web, Claude mobile, ChatGPT connectors).
Self-host the HTTP transport
The same package can run as a persistent HTTP server, not just a stdio subprocess:
chessceo-mcp --transport=http --http-port=8080 --http-host=127.0.0.1Flags (or the corresponding env vars):
Flag | Env var | Default | Purpose |
|
|
|
|
|
|
| Port to bind |
|
|
| Bind address |
|
|
| Streamable-HTTP endpoint |
GET /healthz returns 200 ok\n — wire it into your uptime monitor.
systemd unit (example)
# /etc/systemd/system/chessceo-mcp.service
[Unit]
Description=chess.ceo MCP server (Streamable HTTP)
After=network.target
[Service]
Type=simple
User=www-data
Environment=NODE_ENV=production
Environment=MCP_TRANSPORT=http
Environment=MCP_HTTP_PORT=8127
Environment=MCP_HTTP_HOST=127.0.0.1
ExecStart=/usr/bin/npx -y @chessceo/mcp
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.targetnginx snippet (example)
server {
listen 443 ssl http2;
server_name mcp.chess.ceo;
ssl_certificate /etc/letsencrypt/live/mcp.chess.ceo/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/mcp.chess.ceo/privkey.pem;
# Streamable HTTP is short JSON POSTs — no long-poll SSE required.
location /mcp {
proxy_pass http://127.0.0.1:8127/mcp;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_buffering off; # streaming responses shouldn't be buffered
proxy_read_timeout 300s;
}
location = /healthz { proxy_pass http://127.0.0.1:8127/healthz; }
}Development
git clone <this repo>
cd chessceo-mcp
npm install
npm run build # tsc → dist/
npm start # runs the server on stdio (for MCP hosts)
# or run the HTTP transport locally:
node dist/index.js --transport=http --http-port=8127
curl http://127.0.0.1:8127/healthz # should print "ok"Environment variable overrides:
CHESSCEO_BASE_URL— override the API base (defaulthttps://chess.ceo). Useful for testing against staging.MCP transport env vars — see the self-host table above.
What's under the hood
The chess.ceo public API is a GET-only surface documented at chess.ceo/llms.txt. This MCP server is a thin wrapper — one tool per endpoint, with input schemas so LLMs can call them safely. When you ask the model a chess question, it picks the right tool, calls it, and reasons over the JSON. Nothing is invented; the data is straight from the database.
License
MIT
Available Tools
8 toolsanalyseA
Short Stockfish evaluation at a position. Returns the top-N candidate moves with score (centipawns from side-to-move POV, positive = advantage; or mate distance) and the principal variation for each. Defaults: 2s think time, top-3 lines. PV moves come back in UCI notation (e2e4, not e4). Use this to sanity-check candidate lines from get_position_stats or get_player_preparation — human game frequency tells you what people play, engine evaluation tells you what's actually good.
Inputs: fen (required), multipv, movetime_ms.
get_player_preparationA
For a given player, colour and starting position, return both the moves the player actually chose (frequency + win rate) and the underlying games. Position is specified either as a move sequence in SAN (line) or a raw FEN. Use line iteratively to walk the opening tree: call once with empty line, pick a move, call again with line extended by that move, etc. When preparing for a real game, weight recent games (last 12-24 months) more heavily than old ones, classical over-the-board > rapid/blitz > online, and look for variations the player scores poorly in (below ~40%) or plays with less variety (shallower prep).
Inputs: color (required), fide_id (required), fen, line, +2 more.
get_player_profileA
Full stats for one player: identity, monthly rating history, peak / trend stats, career W/D/L by color and time control, top-10 openings as White and Black, opponent analysis by rating bracket, notable wins and worst losses, top events with performance ratings. Often enough on its own for 'how strong is X, what do they play, who have they beaten'.
Inputs: fide_id (required).
get_position_statsA
Move statistics from all 11.7M+ indexed games at a given position — game counts, win percentages, top continuations. Answers 'from position P, how often does White play 4. O-O vs 4. d3, and which scores better'.
Inputs: fen (required), limit.
list_live_tournamentsA
Tournaments currently being broadcast live on chess.ceo. Use this when the user asks 'what's on right now' / 'live tournaments today'.
Inputs: no named parameters.
list_tournament_playersC
Players participating in one live-broadcast tournament.
Inputs: tour_id (required).
prep_snapshotA
One call, three parallel fetches at the same position: opponent's stats on their side, your stats on your side, and the 11.7M-game general database at that position. Use this while walking the opening tree — one round trip instead of three separate calls, and you can compare the three views directly (e.g. opponent has 2 games here but the general DB has 8k → prep candidate).
Inputs: my_color (required), fide_id_me (required), fide_id_opponent (required), fen, +1 more.
search_playerA
Fuzzy name lookup for FIDE-rated chess players. Returns candidate matches with their FIDE ID, current rating, title (GM/IM/etc.), and country. Use this to resolve a plain-English name (e.g. 'Carlsen', 'Ding Liren') to the FIDE ID that every other tool needs.
Inputs: name (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool targets a distinct resource or data source: tournament listings, player search, player profile, player-specific prep, general position stats, engine evaluation, tournament roster, and combined prep snapshot. The four position-related tools are clearly differentiated by their descriptions: player-specific moves, general database move statistics, engine evaluation, and a combined one-call convenience.
Most tools follow a clear verb_noun pattern with get_/list_/search_ prefixes (e.g., get_player_profile, list_live_tournaments, search_player). The exceptions are 'analyse' as a bare verb and 'prep_snapshot' as an abbreviated noun form, which break the otherwise consistent convention.
Eight tools is well-scoped for a chess preparation and live-tournament server. Each tool covers a distinct function and none feels redundant, with the possible convenience overlap of prep_snapshot being acceptable as a single-round-trip optimization.
The set covers the core workflow: player discovery, profile stats, opening-tree walking with personal and general statistics, engine evaluation, and tournament browsing. Minor gaps exist such as no full game viewer or tournament standings, but they do not block the primary preparation-focused purpose.
Related MCP Connectors
Lichess MCP — public read-only API for users, games, explorer, tablebase.
Chess.com MCP — wraps the Chess.com public API (free, no auth)
Chess MCP for Claude: engine analysis, attack maps, game review. One URL, no install.
Chess tools: game reviews for Chess.com and Lichess, FIDE ratings, openings, positions, puzzles.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn enterprise-grade Chess.com MCP server built with MXCP, featuring caching, analytics, audit trails, and advanced data analysis capabilities. https://mxcp.dev/-
- AlicenseNot gradedqualityDmaintenanceA powerful chess engine and game server built with the Model Context Protocol (MCP). Play chess against AI, analyze positions, and integrate chess functionality into your AI applications.48 npm1ISC
- FlicenseNot gradedqualityDmaintenanceAn MCP server that fetches and filters chess.com game data, returning compact summaries instead of massive JSON, enabling LLMs to answer questions about player performance and head-to-head records.-
- AlicenseAqualityDmaintenanceMCP server that exposes the Lichess public API through tools for querying player profiles, games, analysis, openings, puzzles, and tournaments, allowing natural-language chess questions without an API key.8MIT