Classic Chess MCP
Connect an assistant to Classic Chess to find games, read PGNs, biographies and
published annotations, search Master DB and the site, explore openings and
endgames, save study plans with notes and shared progress, work with your
collections and imported games, and play your puzzles.
The hosted MCP URL is https://classicchess.com/mcp/.
Release availability
Version 0.1.3 connects to the hosted MCP endpoint and documents the research, library and import tools in the matching Classic Chess server release. The relay passes tools through from the server, so an earlier server lists only the tools it has. Use the browser setup guide below to connect an assistant, or install the optional Python stdio relay.
Browser users
Claude and ChatGPT browser users connect to the hosted URL and sign in with their own Classic Chess account. Follow the browser setup guide for the current menus, account-plan requirements and workspace permissions. Choose automatic OAuth client registration in Claude. ChatGPT's available read and write actions depend on its plan and workspace permissions.
Public searches work without account access. Approve library read and write access to save plans, read progress, read your collections and imported games, and import games, and puzzle read and write access to play your puzzles and save the results. Revoke the connection in Classic Chess Settings. A Python installation is needed only for the optional stdio relay below.
Claude Code
claude mcp add --scope user --transport http classicchess https://classicchess.com/mcp/
claude mcp login classicchess
Complete browser sign-in and approve library access. Enable Classic Chess in a new session and ask, for example: “Build a five-game rook-endgame study plan and save it to my account.”
Codex
codex mcp add classicchess --url https://classicchess.com/mcp/
codex mcp login classicchess --scopes library:read,library:write,puzzles:read,puzzles:write
Codex may start browser sign-in when adding the server. The login command also lets you connect again later. Plans, progress and puzzle results belong to the account you approve, and are shared with the Classic Chess website.
Optional Python stdio relay
This MIT-licensed package needs Python 3.10 or later and has no runtime dependencies. It relays newline-delimited MCP messages to the same server. Install it from PyPI into a virtual environment.
On Linux or macOS:
python3 -m venv classicchess-mcp-env
classicchess-mcp-env/bin/python -m pip install classicchess-mcp
classicchess-mcp-env/bin/classicchess-mcp --help
On Windows:
py -m venv classicchess-mcp-env
classicchess-mcp-env\Scripts\python -m pip install classicchess-mcp
classicchess-mcp-env\Scripts\classicchess-mcp --help
In a source checkout, install with python3 -m pip install . inside your virtual
environment. The distribution name is classicchess-mcp. The
website source ZIP
is also available from the website.
Create a personal token in Settings with
library:read and library:write, and with puzzles:read and puzzles:write
for puzzles, then configure your MCP client's private environment:
{
"mcpServers": {
"classicchess": {
"command": "FULL_PATH_TO_CLASSICCHESS_MCP",
"env": {"CLASSICCHESS_API_TOKEN": "YOUR_PERSONAL_TOKEN"}
}
}
}
Replace FULL_PATH_TO_CLASSICCHESS_MCP with the absolute path to the executable
in the virtual environment above (bin/classicchess-mcp on Linux/macOS,
Scripts\classicchess-mcp.exe on Windows). Replace YOUR_PERSONAL_TOKEN only
in your client's private configuration. Revoke the token in Settings.
The relay writes only MCP messages to stdout and never prints credentials,
follows redirects or sends credentials to another origin.
For local development, pass --base-url http://127.0.0.1:PORT, replacing PORT
with your development server's port. The canonical HTTPS site and an explicitly
selected HTTP loopback origin are accepted.
Tools and protocol
The study tools are search_players, search_events, search_games, get_game_pgn,
get_annotations, get_player_bio, create_plan, update_plan, mark_studied
and get_progress. Plan creation accepts 1–100 ordered game slugs and original
notes. Reuse a stable idempotency key when retrying the same plan. update_plan
performs one operation per call: metadata, reorder, a note, add a game or
remove an item. Theme rules and evidence are at /api/v1/public/themes/.
Collection tools are create_collection (an empty collection), find_collection
(exact name, ignoring case), delete_collection, and add_curated_games.
Find requires library:read; the other three require library:write and act
only on the signed-in account. Deleting a collection removes its notes and
progress but keeps the underlying games.
For bulk additions, first find or create a collection, then pass its
collection_id and filters to add_curated_games. Only curated archive games
are eligible, never Master DB or user imports. Examples:
{"collection_id": 12, "filters": [{"since": 1920, "until": 1920}]}
{"collection_id": 12, "filters": [{"notable": true}]}
{"collection_id": 12, "filters": [{"players": ["Mikhail_Tal"], "since": 1960, "until": 1961}, {"events": ["new-york-1924"]}], "exclude": [{"result": "1/2-1/2"}], "dry_run": true}
Use search_players and search_events to resolve actual catalog slugs. Criteria
inside a group intersect (AND); groups combine (OR); exclude subtracts any
matching groups. Lists of players or events match any listed slug. Player
filters match either participant, including event games. Other criteria are
q, theme (comma-separated taxonomy slugs), eco (prefix), result,
annotation_q, annotation_author and annotation_book.
dry_run:true previews counts without writes. Each call processes at most
batch_size games (default and maximum 1000). While has_more is true, repeat
the same selection with after_game_id set to next_after_game_id. Stop only
when has_more is false. matched counts the whole selection; processed,
added and already_present count this batch. Retrying a batch adds no
duplicate memberships and preserves existing notes, ordering and progress.
Selections use the current curated catalog on each call.
The research tools need no account: list_themes, search_site,
list_site_updates, list_annotated_books, search_book_games,
resolve_players, search_master_games, get_master_game,
get_player_stats, explore_opening, probe_tablebase and
resolve_game_link. Master DB is the large reference database kept apart from
the curated archive. probe_tablebase asks the Lichess tablebase for positions
the site's tables do not cover. resolve_game_link reads the PGN of a public
Lichess or Chess.com game from its link and saves nothing; it shares the
website's limit of 12 links per 15 minutes from one address.
The library tools act only on the signed-in account. list_collections,
list_collection_games, get_game_library_state, list_imported_games and
get_imported_game require library:read; they read collections with their
notes and progress, whether a game is starred and which collections hold it,
and imported games with their PGNs, private ones included.
remove_collection_game and import_game require library:write. Removing a
game from a collection removes its note and progress there and keeps the game.
import_game takes PGN text with source pgn, or a public game link as
remote_url with source lichess or chesscom. Imported games are private
unless visibility is public, and each call adds a game. A browser sign-in
connection approved before November 12, 2026 is asked to approve again before
it uses the star and imported-game tools; personal tokens are not affected.
The puzzle tools are get_puzzle_summary, next_puzzle, get_puzzle,
get_puzzle_history and record_puzzle_result. Puzzles are for signed-in
accounts. next_puzzle returns a random puzzle from the account's rotation with
every accepted solver move; keep the solution hidden while the learner solves.
Record each play once: missed at the first wrong move or when the solution is
shown, solved for a clean finish. A first-try solve leaves the rotation until
the learner resets puzzles on the website or in the app.
The server uses stateless Streamable HTTP with JSON responses. It supports
protocol 2026-07-28 with per-request metadata and bound routing headers, plus
the initialization flows for 2025-11-25, 2025-06-18 and 2025-03-26.
It publishes OAuth discovery, supports dynamic client registration, requires
S256 PKCE and accepts native loopback callbacks when the issuer is production
HTTPS. Clients supporting fixed headers can use personal API tokens instead.
Source-attributed annotations retain their source and reuse terms.
Metadata
Release files for classicchess-mcp 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| classicchess_mcp-0.1.3.tar.gz | 8.8 kB | Without provenance | Details for classicchess_mcp-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| classicchess_mcp-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for classicchess_mcp-0.1.3-py3-none-any.whl |
Total release size: 17.8 kB
Release files / classicchess_mcp-0.1.3.tar.gz
| Download URL | classicchess_mcp-0.1.3.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c0228be59698ff2fc493b1a60fa00c650bad4452fe1a9ec5c5b81c761d89616a
|
|
BLAKE2b-256 checksum How to use checksums |
ffb770c06351a14c5db6fbefdeaf24efa50de19bbb3d128a54764eacecd86279
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / classicchess_mcp-0.1.3-py3-none-any.whl
| Download URL | classicchess_mcp-0.1.3-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d278075d90280cfe1be4d9671f03050353f18827ac35a45c4a1fd86fddd1db01
|
|
BLAKE2b-256 checksum How to use checksums |
c02e7fc553b9b25f8147c7355aed322cbdbdad94f65d8a9943cd3537336954ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Security for classicchess-mcp 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.