Lichess MCP
Lichess MCP
자연어로 Lichess와 대화하여 체스 플랫폼과 상호작용하세요. Claude Desktop과 함께 사용하여 게임을 플레이하고, 포지션을 분석하고, 체스 활동을 관리하세요.
Model Context Protocol을 사용하여 구축되었습니다.
이 서버는 다음 기능을 제공합니다:
Lichess 계정 관리
체스 게임 및 도전 플레이
포지션 및 게임 분석
토너먼트 및 팀 가입
다른 플레이어와 상호작용
구성
Lichess API 토큰은 두 가지 방법으로 설정할 수 있습니다:
환경 변수: 프로젝트 루트의
.env파일에 추가하거나 직접 설정:LICHESS_TOKEN=your-lichess-api-token런타임 중
set_token도구 사용:set_token({ token: "your-lichess-api-token" });
토큰은 https://lichess.org/account/oauth/token 에서 생성할 수 있습니다.
Related MCP server: Lichess MCP
사용 가능한 도구
1. 계정 관리
// Set your Lichess API token
set_token({
token: "your-lichess-api-token"
});
// Get your Lichess profile
get_my_profile();
// Get another user's profile
get_user_profile({
username: "player_name",
trophies: true // include trophies, optional
});2. 게임 플레이
// 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. 게임 분석
// 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. 토너먼트
// 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. 대화형 UI (Claude Desktop)
이 도구들은 MCP Apps 확장을 사용하여 채팅 내에서 실제 체스 보드를 열어줍니다. 기물을 드래그하고, 수를 탐색하고, 오프닝 트리를 클릭할 수 있습니다. UI를 지원하지 않는 클라이언트에서는 각 도구가 FEN/PGN/Lichess 링크가 포함된 텍스트 응답으로 대체됩니다.
// 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" });체스 표기법
수 표기 형식
Lichess API는 다음 형식의 수를 허용합니다:
UCI: Universal Chess Interface 형식 (예:
e2e4,g8f6)SAN: Standard Algebraic Notation (예:
e4,Nf6) - 일부 엔드포인트에서만 사용 가능
FEN 형식
Forsyth-Edwards Notation (FEN)은 체스 포지션을 나타내는 데 사용됩니다:
rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1이는 다음을 나타냅니다:
기물 위치 (8번째 랭크에서 1번째 랭크까지)
활성 색상 (w/b)
캐슬링 가능 여부 (KQkq)
앙파상 타겟 칸
하프무브 클록
풀무브 번호
오류 처리
서버는 다음 상황에 대해 상세한 오류 메시지를 제공합니다:
잘못된 수 또는 포지션
인증 문제
속도 제한
리소스를 찾을 수 없는 경우
설정 지침
Smithery를 통한 설치
Smithery를 통해 Claude Desktop용 Lichess 통합을 자동으로 설치하려면:
npx -y @smithery/cli install @karayaman/lichess-mcp --client claude수동 설치
저장소 복제:
git clone https://github.com/karayaman/lichess-mcp.git cd lichess-mcp의존성 설치:
npm install환경 변수 구성: 루트 디렉토리에
.env파일을 생성하세요:LICHESS_TOKEN=your-lichess-api-token프로젝트 빌드:
npm run build패키지를 전역으로 설치 (Claude Desktop 통합을 위해 권장):
npm install -g서버 시작 (독립 실행형 사용 시):
npm start
Claude Desktop 구성
이 MCP 서버를 Claude Desktop과 함께 사용하려면:
Claude Desktop 구성 파일을 찾으세요:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
구성에 Lichess MCP 서버를 추가하세요:
{ "mcpServers": { "lichess": { "command": "lichess-mcp", "env": { "LICHESS_TOKEN": "your-lichess-api-token", "DEBUG": "*" } } } }참고:
your-lichess-api-token을 실제 Lichess API 토큰으로 바꾸세요.DEBUG환경 변수는 선택 사항이지만 문제 해결에 도움이 됩니다.(선택 사항) 다른 MCP 서버도 추가할 수 있습니다:
{ "mcpServers": { "filesystem": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-filesystem", "/Users/username/Desktop", "/Users/username/Downloads" ] }, "lichess": { "command": "lichess-mcp", "env": { "LICHESS_TOKEN": "your-lichess-api-token" } } } }변경 사항을 적용하려면 Claude Desktop을 다시 시작하세요.
Claude Desktop을 완전히 종료했는지 확인하세요 (시스템 트레이/메뉴 바 포함)
Claude Desktop을 다시 실행하세요
인터페이스에서 MCP 서버가 연결되었음을 나타내는 망치 아이콘을 확인하세요
Claude에게 Lichess 계정에 대해 물어보며 통합을 테스트하세요:
"내 Lichess 프로필 보여줘"
"10분 시간 제한으로 새로운 체스 게임 시작해줘"
문제 해결
MCP 서버 연결에 문제가 발생하면:
npm install -g를 사용하여 패키지를 전역으로 설치했는지 확인하세요lichess-mcp명령을 PATH에서 사용할 수 있는지 확인하세요 (which lichess-mcp)구성 파일 형식이 올바른지 확인하세요 (이전의
mcp_servers대신 최신mcpServers형식)Claude Desktop을 완전히 다시 시작하세요
추가 로깅을 위해 Claude Desktop에서 개발자 모드(사용 가능한 경우)를 활성화해보세요
Lichess API 토큰이 유효한지 확인하세요
참조
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