Lichess MCP
Lichess MCP gives Claude natural-language access to the Lichess chess platform through ~190 tools (about 70 enabled by default).
Account: read profile, email, preferences, timeline, kid mode; set kid mode; test/revoke tokens; upgrade to a bot account.
Users & social: profiles, trophies, status, leaderboards, top 10, rating history, performance stats, activity; follow/unfollow, block/unblock, private notes.
Playing chess: create/accept/decline/cancel challenges; make moves, offer/accept draws, abort, resign, claim victory, write in game chat.
Games & analysis: export single, ongoing, or bulk games as PGN/JSON; get cloud evaluations for a position.
Tournaments: browse/create/join/withdraw arenas and Swiss tournaments, view games and results, team battle results, create/join simuls.
Teams: info, members, search, join/leave, manage and answer join requests, kick users.
Messaging: send private messages and read message threads.
Studies & broadcasts: export study chapters, list user studies, fetch official broadcasts and rounds, push PGN to a round.
Puzzles & TV: puzzle activity, dashboard, storm dashboard, races (create/get); TV channels and current TV games.
Reference data: FIDE player lookup and name search.
Interactive UIs (Claude Desktop): solve puzzles, step through PGN, explore opening trees.
Configuration: token via keychain, env, or .env; toolset selection with
LICHESS_TOOLSETSor mid-sessionenable_toolset.
Provides support for loading environment variables from a .env file for configuring the Lichess API token.
Enables comprehensive interaction with the Lichess chess platform, including account management, playing chess games, creating challenges, analyzing positions, managing tournaments, joining teams, and connecting with other players.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Lichess MCP What's my current rating in bullet chess?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Lichess MCP
Speak to Lichess in natural language to interact with the chess platform. Use it with Claude Desktop to play games, analyze positions, and manage your chess activities.
Built using the Model Context Protocol.
The server enables:
Managing your Lichess account
Playing chess games and challenges
Analyzing positions and games
Joining tournaments and teams
Interacting with other players
Lichess Token
Create a token at https://lichess.org/account/oauth/token. Tick only the scopes you need. Some tools act on your account (sending messages, creating challenges, upgrading to a bot account), and the model reads text other Lichess users wrote. The token's scopes limit what a misled model can do.
Ways to give the server your token, most secure first:
Recommended: keep it in your OS secret store and pass it in at launch. The token never sits in a plaintext file or in the chat.
macOS (Keychain). Store it once; the command prompts for the token:
security add-generic-password -s lichess-mcp -a "$USER" -wThen have your MCP client start the server like this:
"lichess": { "command": "/bin/sh", "args": ["-c", "LICHESS_TOKEN=\"$(security find-generic-password -s lichess-mcp -w)\" exec lichess-mcp"] }Linux (libsecret): store it with
secret-tool store --label="Lichess MCP" service lichess-mcpand read it with$(secret-tool lookup service lichess-mcp)in the same way. A password manager CLI works too, for example$(op read "op://Private/Lichess/token")with 1Password.The
envblock of your MCP client's config. Simple, but the token sits in plaintext in that config file. Don't share or commit the file."lichess": { "command": "lichess-mcp", "env": { "LICHESS_TOKEN": "your-lichess-api-token" } }A
.envfile containingLICHESS_TOKEN=your-lichess-api-token. Also plaintext. The server reads.envfrom the directory it starts in, and MCP clients often start it somewhere else, so this suits running from a clone withnpm start..envis in.gitignore; keep it private withchmod 600 .env.Not recommended: the
set_tokentool. The token passes through the conversation, so it's stored in your chat history and sent to the model provider. If you use it for a quick test, use a short-lived token and revoke it afterwards at https://lichess.org/account/oauth/token.
Related MCP server: Lichess MCP
Available Tools
1. Account Management
// Get your Lichess profile
get_my_profile();
// Get another user's profile
get_user_profile({
username: "player_name",
trophies: true // include trophies, optional
});2. Game Play
Needs the challenges and board toolsets (see Toolsets).
// Create a challenge against another player
create_challenge({
username: "opponent_username",
timeControl: "10+0", // 10 minutes, no increment
color: "random" // or "white", "black"
});
// Make a move in a game
make_move({
gameId: "abcd1234",
move: "e2e4",
offeringDraw: false
});
// Get your ongoing games
get_ongoing_games({
nb: 10 // number of games to fetch
});3. Game Analysis
// Export a game in PGN format
export_game({
gameId: "abcd1234",
clocks: true,
evals: true
});
// Get cloud evaluation for a position
get_cloud_eval({
fen: "rnbqkbnr/ppp1pppp/8/3p4/4P3/8/PPPP1PPP/RNBQKBNR w KQkq - 0 2"
});4. Tournaments
Needs the arena toolset (see Toolsets).
// List current tournaments
get_arena_tournaments();
// Join a tournament
join_arena({
tournamentId: "abc123"
});
// Create a new tournament
create_arena({
name: "My Tournament",
clockTime: 3,
clockIncrement: 2,
minutes: 45
});5. Interactive UIs (Claude Desktop)
These tools open a real chess board inside the chat — drag pieces, navigate moves, and click through opening trees — using the MCP Apps extension. In clients without UI support, each tool falls back to a text response containing FEN/PGN/Lichess links.
// Open today's daily puzzle (or a specific id) as an interactive solver.
play_puzzle({ puzzleId: "Bmfot" });
// Step through a Lichess game or raw PGN with prev/next/play controls.
view_pgn({ gameId: "abcd1234" });
view_pgn({ pgn: "1. e4 e5 2. Nf3 ..." });
// Walk the opening tree: click moves to drill down; toggle masters/lichess.
explore_openings({ source: "masters" });Toolsets
The server has about 190 tools. Every enabled tool's description is sent to the model at the start of each session, so by default only the core toolsets are on: about 70 tools, a third of the full list's size.
Choose toolsets with LICHESS_TOOLSETS, a comma-separated list:
Value | Enables |
(unset) or |
|
| core, plus challenging players and playing games |
| every toolset |
The other toolsets are board, bot, bulk-pairings, engine, challenges, arena, swiss, simuls, teams, studies and broadcasts. A name not on this list stops the server at startup with the valid names.
Set it alongside the token, for example "env": { "LICHESS_TOOLSETS": "core,arena,swiss" } in your MCP client's config.
The model can also turn toolsets on mid-session with the enable_toolset tool, whose description lists the toolsets that are off, one line each. This needs a client that refreshes its tool list when the server says it changed; otherwise set LICHESS_TOOLSETS and restart. Because the model can turn any toolset on, LICHESS_TOOLSETS saves context but doesn't restrict what the model can do. Your token's scopes do that (see Lichess Token).
Chess Notation
Move Formats
The Lichess API accepts moves in these formats:
UCI: Universal Chess Interface format (e.g.,
e2e4,g8f6)SAN: Standard Algebraic Notation (e.g.,
e4,Nf6) - only for some endpoints
FEN Format
The Forsyth-Edwards Notation (FEN) is used to represent chess positions:
rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1This represents:
Piece positions (from 8th rank to 1st rank)
Active color (w/b)
Castling availability (KQkq)
En passant target square
Halfmove clock
Fullmove number
Error Handling
The server provides detailed error messages for:
Invalid moves or positions
Authentication issues
Rate limits
Resource not found cases
Setup Instructions
Installing via Smithery
To install Lichess Integration for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @karayaman/lichess-mcp --client claudeManual Installation
Clone the repository:
git clone https://github.com/karayaman/lichess-mcp.git cd lichess-mcpInstall dependencies:
npm installSet up your token: see Lichess Token.
Build the project:
npm run buildInstall the package globally (recommended for Claude Desktop integration):
npm install -gStart the server (for standalone usage):
npm start
Configuring Claude Desktop
To use this MCP server with Claude Desktop:
Locate your Claude Desktop configuration file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Add the Lichess MCP server to your configuration:
{ "mcpServers": { "lichess": { "command": "/bin/sh", "args": ["-c", "LICHESS_TOKEN=\"$(security find-generic-password -s lichess-mcp -w)\" exec lichess-mcp"] } } }This reads the token from the macOS Keychain (see Lichess Token for storing it, and for the other options). To troubleshoot, add
"env": { "DEBUG": "*" }.(Optional) You can add other MCP servers as well:
{ "mcpServers": { "filesystem": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-filesystem", "/Users/username/Desktop", "/Users/username/Downloads" ] }, "lichess": { "command": "/bin/sh", "args": ["-c", "LICHESS_TOKEN=\"$(security find-generic-password -s lichess-mcp -w)\" exec lichess-mcp"] } } }Restart Claude Desktop to apply the changes.
Make sure to completely close Claude Desktop (including from the system tray/menu bar)
Launch Claude Desktop again
Look for a hammer icon in the interface, which indicates that MCP servers are connected
Test the integration by asking Claude about your Lichess account:
"Show me my Lichess profile"
"Start a new chess game with 10 minutes time control"
Troubleshooting
If you encounter issues with the MCP server connection:
Ensure you've installed the package globally with
npm install -gVerify that the
lichess-mcpcommand is available in your PATH (which lichess-mcp)Check that your configuration file has the correct format (the newer
mcpServersformat instead ofmcp_servers)Restart Claude Desktop completely
Try enabling Developer Mode in Claude Desktop (if available) for additional logging
Verify your Lichess API token is valid
References
Available Tools
88 toolsabort_board_gameC
Abort a board game
Inputs: gameId (required).
accept_challengeC
Accept an incoming challenge
Inputs: challengeId (required).
accept_join_requestB
Accept a join request for your team
Inputs: teamId (required), userId (required).
add_user_noteC
Add a private note about a user
Inputs: username (required), text (required).
block_userC
Block a player
Inputs: username (required).
cancel_challengeC
Cancel an outgoing challenge
Inputs: challengeId (required).
claim_victoryC
Claim victory if opponent abandoned the game
Inputs: gameId (required).
create_arenaC
Create a new arena tournament
Inputs: name (required), clockTime, clockIncrement, minutes, +10 more.
create_challengeC
Challenge another player
Inputs: username (required), rated, clock, days, +3 more.
create_puzzle_raceD
Create a puzzle race
Inputs: no named parameters.
create_simulC
Create a new simul
Inputs: name (required), variant, clockTime, clockIncrement, +4 more.
create_swissC
Create a new Swiss tournament
Inputs: name (required), teamId (required), clock (required), nbRounds, +4 more.
decline_challengeC
Decline an incoming challenge
Inputs: challengeId (required), reason.
decline_join_requestC
Decline a join request for your team
Inputs: teamId (required), userId (required).
export_all_study_chaptersC
Export all chapters of a study in PGN format
Inputs: studyId (required).
export_gameC
Export one game in PGN or JSON format
Inputs: gameId (required), moves, pgnInJson, tags, +5 more.
export_games_by_idsC
Export multiple games by IDs
Inputs: ids (required), moves, pgnInJson, tags, +3 more.
export_ongoing_gameC
Export ongoing game of a user
Inputs: username (required), moves, pgnInJson, tags, +3 more.
export_study_chapterC
Export one study chapter in PGN format
Inputs: studyId (required), chapterId (required).
export_user_gamesC
Export all games of a user
Inputs: username (required), since, until, max, +16 more.
follow_userC
Follow a player
Inputs: username (required).
get_all_top_10B
Get the top 10 players for each speed and variant
Inputs: no named parameters.
get_arena_gamesC
Get games of an arena tournament
Inputs: tournamentId (required).
get_arena_infoC
Get info about an arena tournament
Inputs: tournamentId (required).
get_arena_resultsC
Get results of an arena tournament
Inputs: tournamentId (required).
get_arena_tournamentsC
Get current tournaments
Inputs: no named parameters.
get_broadcastC
Get a broadcast by its ID
Inputs: broadcastId (required).
get_broadcast_roundC
Get one round of a broadcast
Inputs: broadcastId (required), roundId (required).
get_cloud_evalC
Get cloud evaluation for a position
Inputs: fen (required), multiPv.
get_current_simulsB
Get recently started simuls
Inputs: no named parameters.
get_fide_playerC
Get FIDE player information
Inputs: playerId (required).
get_followingB
Get users followed by the logged in user
Inputs: no named parameters.
get_kid_modeC
Get kid mode status
Inputs: no named parameters.
get_leaderboardC
Get the leaderboard for a single speed or variant
Inputs: perfType (required), nb.
get_my_emailB
Get your email address
Inputs: no named parameters.
get_my_profileB
Get your Lichess profile information
Inputs: no named parameters.
get_official_broadcastsC
Get official broadcasts (TV shows)
Inputs: no named parameters.
get_ongoing_gamesC
Get your ongoing games (real-time and correspondence)
Inputs: nb.
get_preferencesC
Get your preferences
Inputs: no named parameters.
get_puzzle_activityC
Get your puzzle activity
Inputs: max.
get_puzzle_dashboardC
Get your puzzle dashboard
Inputs: days.
get_puzzle_raceC
Get info about a puzzle race
Inputs: raceId (required).
get_puzzle_storm_dashboardC
Get your puzzle storm dashboard
Inputs: days.
get_rating_historyC
Get rating history of a user for all perf types
Inputs: username (required).
get_swiss_gamesC
Get games of a Swiss tournament
Inputs: swissId (required).
get_swiss_infoB
Get info about a Swiss tournament
Inputs: swissId (required).
get_swiss_resultsC
Get results of a Swiss tournament
Inputs: swissId (required).
get_team_battle_resultsC
Get results of a team battle tournament
Inputs: tournamentId (required).
get_team_infoC
Get team information by ID
Inputs: teamId (required).
get_team_join_requestsB
Get join requests for a team
Inputs: teamId (required).
get_team_membersC
Get members of a team
Inputs: teamId (required), max.
get_threadC
Get a message thread
Inputs: userId (required).
get_timelineC
Get your timeline
Inputs: since, nb.
get_tv_channelsB
Get all TV channels and their current games
Inputs: no named parameters.
get_tv_gameB
Get current TV game in PGN format
Inputs: channel.
get_user_activityC
Get activity feed of a user
Inputs: username (required).
get_user_performanceC
Get performance statistics of a user
Inputs: username (required), perf (required).
get_user_profileC
Get a user's Lichess profile information
Inputs: username (required), trophies.
get_user_public_dataC
Get public data of a user
Inputs: username (required), withTrophies.
get_users_by_idC
Get multiple users by their IDs
Inputs: ids (required).
get_users_statusC
Get real-time users status
Inputs: ids (required), withSignal, withGameIds, withGameMetas.
get_user_studiesC
Get studies created by a user
Inputs: username (required).
handle_draw_board_gameC
Handle draw offers for a board game
Inputs: gameId (required), accept.
join_arenaC
Join an arena tournament
Inputs: tournamentId (required).
join_simulC
Join a simul
Inputs: simulId (required).
join_swissC
Join a Swiss tournament
Inputs: swissId (required).
join_teamC
Join a team
Inputs: teamId (required), message.
kick_user_from_teamC
Kick a user from your team
Inputs: teamId (required), userId (required).
leave_teamC
Leave a team
Inputs: teamId (required).
list_challengesC
List incoming and outgoing challenges
Inputs: no named parameters.
make_board_moveC
Make a move in a board game
Inputs: gameId (required), move (required), offeringDraw.
make_moveC
Make a move in an ongoing game
Inputs: gameId (required), move (required), offeringDraw.
push_broadcast_round_pgnC
Push PGN to a broadcast round
Inputs: broadcastId (required), roundId (required), pgn (required).
resign_board_gameC
Resign a board game
Inputs: gameId (required).
revoke_tokenB
Revoke the current access token
Inputs: no named parameters.
search_fide_playersC
Search FIDE players by name
Inputs: name (required).
search_teamsC
Search for teams
Inputs: text (required), page.
send_messageC
Send a private message to another player
Inputs: username (required), text (required).
set_kid_modeC
Set kid mode status
Inputs: value (required).
set_tokenB
Set your Lichess API token
Inputs: token (required).
test_tokensC
Test multiple OAuth tokens
Inputs: tokens (required).
unblock_userC
Unblock a user
Inputs: username (required).
unfollow_userC
Unfollow a player
Inputs: username (required).
upgrade_to_botA
Upgrade to Bot account. WARNING: This is irreversible and the account must not have played any games.
Inputs: no named parameters.
withdraw_from_arenaC
Withdraw from an arena tournament
Inputs: tournamentId (required).
withdraw_from_simulC
Withdraw from a simul
Inputs: simulId (required).
withdraw_from_swissC
Withdraw from a Swiss tournament
Inputs: swissId (required).
write_in_chatC
Write in the chat of a board game
Inputs: gameId (required), room (required), text (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 88 tools
Most tools have distinct purposes, such as 'create_arena' for tournaments and 'make_board_move' for gameplay, but there is some overlap between 'make_board_move' and 'make_move' which could cause confusion. Descriptions clarify that 'make_board_move' is for board games and 'make_move' for ongoing games, but the similarity in naming might lead to misselection without careful reading.
Tool names consistently follow a verb_noun pattern, such as 'accept_challenge', 'export_game', and 'get_user_profile'. There are no deviations in naming conventions, making the set predictable and easy to parse for agents.
With 88 tools, the count is excessive for the Lichess domain, leading to potential overwhelm and inefficiency. While the server covers many features, the high number suggests over-fragmentation, such as having separate tools for each tournament type (arena, swiss, simul) and multiple export functions, which could be consolidated.
The tool set comprehensively covers the Lichess domain, including user management, gameplay, tournaments, puzzles, studies, broadcasts, and team interactions. There are no obvious gaps; it supports full CRUD operations and lifecycle management across all major features, ensuring agents can handle diverse tasks without dead ends.
Maintenance
Related MCP Connectors
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
MCP server for AI dialogue using various LLM models via AceDataCloud
Hosted X (Twitter) MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Hosted Notion MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables natural language interaction with Lichess chess platform to play games, analyze positions, manage challenges and tournaments, and interact with other players through Claude Desktop.MIT
- AlicenseAqualityDmaintenanceConnects Claude to Lichess for playing chess games, analyzing positions with Stockfish cloud evaluation, and solving puzzles. Supports real-time gameplay including moves, challenges, draw offers, and accessing user profiles and game history.28MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server that exposes Stockfish chess analysis to LLM chat clients, enabling move analysis, game review, and explanation of engine choices.-
- 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