
karayaman/lichess-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
Claude Desktopが自然言語でLichessプラットフォームとやりとりすることを可能にするモデルコンテキストプロトコル(MCP)サーバー.
概要
チェスプラットフォームと相互作用するために自然言語でリッチに話します。 Claude Desktopでゲームを再生したり、ポジションを分析したり、チェスの活動を管理したりできます。 - あなたのLichessアカウントを管理する - チェスゲームと課題を再生 - ポジションやゲームを分析 - トーナメントやチームに参加 - 他のプレーヤーと相互作用 https://lichess.org/account/oauth/token.でトークンを作成する 必要な範囲だけを切って下さい。 一部のツールは、アカウント(メッセージの送信、課題の作成、ボットアカウントへのアップグレード)に作用し、他のLichessユーザーが書いたテキストを読み取ります。 トークンのスコープは、誤ったモデルができることを制限します。 トークンをサーバーに与える方法、最も安全な方法: 1。 トークンは、プレーンテキストファイルやチャットに座っていません。 macOS(Keychain).
概要(AI 翻訳)
チェスプラットフォームと相互作用するために自然言語でリッチに話します。 Claude Desktopでゲームを再生したり、ポジションを分析したり、チェスの活動を管理したりできます。
モデルコンテクストプロトコルを用いて構築
サーバは、以下の機能を有効にします。
- Lichessアカウントの管理
- チェスゲームと課題を再生する
- 位置とゲームを分析する
- 大会やチームに参加する ・他のプレイヤーとの交流
トークンをキャッシュする
https://lichess.org/account/oauth/token.でトークンを作成する 必要な範囲だけを切って下さい。 一部のツールは、アカウント(メッセージの送信、課題の作成、ボットアカウントへのアップグレード)に作用し、他のLichessユーザーが書いたテキストを読み取ります。 トークンのスコープは、誤ったモデルができることを制限します。
トークンをサーバーに与える方法、最も安全な方法:
1。推奨:OSの秘密ストアに保管し、起動時に渡します。 トークンは、プレーンテキストファイルやチャットに座っていません。
macOS(Keychain)。 一度保存します。 コマンドは、トークンのプロンプトを表示します。
次に、MCP クライアントがこのサーバーを起動します
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
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.
Available Tools
1. Account Management
// Get your Lichess profile
get_my_profile();
// Get another user's profile
get_user_profile({
username: "player_name",
インストール
npx -y @modelcontextprotocol/server-filesystem /Users/username/Desktop /Users/username/Downloads設定
{
"mcpServers": {
"lichess": {
"command": "/bin/sh",
"args": ["-c", "LICHESS_TOKEN=\"$(security find-generic-password -s lichess-mcp -w)\" exec lichess-mcp"]
}
}
}