K
karayaman/lichess-mcp
Play and analyze games on Lichess
在 GitHub 查看 ↗链接已于 2026-11-12 核查 · HTTP 200 · 打开的是厂商自己的官网
安装与配置
客户端配置(取自该仓库的安装命令)
{
"mcpServers": {
"karayaman-lichess-mcp": {
"command": "npx",
"args": ["-y", "@smithery/cli"]
}
}
}解析自我们于 2026-11-06 抓取的该仓库 README;我们未执行过。
command/args 来自仓库写明的安装命令;不确定时请以该项目 README 为准。
VS Code(.vscode/mcp.json —— 键名是 servers)
{
"servers": {
"karayaman-lichess-mcp": {
"command": "npx",
"args": ["-y", "@smithery/cli"]
}
}
}VS Code 顶层键是 <code>servers</code>,其余与上面那份相同。
Claude Code(命令行)
claude mcp add --transport stdio karayaman-lichess-mcp -- npx -y @smithery/cli
Claude Code 不收 JSON 文件,用这条命令直接加。
配置项的键名以你的客户端为准:客户端与 CLI
- 来源明细
- 收录自 abordage/awesome-mcp 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
- 收录与活跃
- 收录于 2026-11-05 · 最近见到 2026-11-14 · 共见到 10 次 · 被 10 个来源列出
- 评分构成
- 综合分 1,003 · 10 个来源 · mcp
- 安装
npx -y @smithery/cli
常见问题(答案都来自我们的记录)
怎么安装?
该仓库给出的安装命令是
npx -y @smithery/cli。我们的记录里它是仓库自己提供的;不保证在你的客户端上直接可用。它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
我们收录于 2026-11-05;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
# Lichess MCP
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
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:
1. 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:
bash
security add-generic-password -s lichess-mcp -a "$USER" -w
Then have your MCP client start the server like this:
json
"lichess": {
"command": "/bin/sh",
"args": ["-c", "LICHESSTOKEN=\"$(security find-generic-password -s lichess-mcp -w)\" exec lichess-mcp"]
Linux (libsecret): store it with secret-tool store --label="Lichess MCP" service lichess-mcp and 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.
2. The env block of your MCP client's config. Simple, but the token sits in plaintext in that config file. Don't share or commit the file.
json
"lichess": {
"command": "lichess-mcp",
"env": { "LICHESSTOKEN": "your-lichess-api-token" }
3. A .env file containing LICHESSTOKEN=your-lichess-api-token. Also plaintext. The server reads .env from the directory it starts in, and MCP clients often start it somewhere else, so this suits running from a clone with npm start. .env is in .gitignore; keep it private with chmod 600 .env.
4. Not recommended: the settoken tool. 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
typescript
// Get your Lichess profile
getmyprofile();
// Get another user's profile
getuserprofile({
username: "playername",
trophies: true // include trophies, optional
});
### 2. Game Play
Needs the challenges and board toolsets (see Toolsets).
typescript
// Create a challenge against another player
createchallenge({
username: "opponentusername",
timeControl: "10+0", // 10 minutes, no increment
color: "random" // or "white", "black"
});
// Make a move in a game
makemove({
gameId: "abcd1234",
move: "e2e4",
offeringDraw: false
});
// Get your ongoing games
getongoinggames({
nb: 10 // number of games to fetch
});
### 3. Game Analysis
typescript
// Export a game in PGN format
exportgame({
gameId: "abcd1234",
clocks: true,
evals: true
});
// Get cloud evaluation for a position
getcloudeval({
fen: "rnbqkbnr/ppp1pppp/8/3p4/4P3/8/PPPP1PPP/RNBQKBNR w KQkq - 0 2"
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:
1. 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:
bash
security add-generic-password -s lichess-mcp -a "$USER" -w
Then have your MCP client start the server like this:
json
"lichess": {
"command": "/bin/sh",
"args": ["-c", "LICHESSTOKEN=\"$(security find-generic-password -s lichess-mcp -w)\" exec lichess-mcp"]
Linux (libsecret): store it with secret-tool store --label="Lichess MCP" service lichess-mcp and 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.
2. The env block of your MCP client's config. Simple, but the token sits in plaintext in that config file. Don't share or commit the file.
json
"lichess": {
"command": "lichess-mcp",
"env": { "LICHESSTOKEN": "your-lichess-api-token" }
3. A .env file containing LICHESSTOKEN=your-lichess-api-token. Also plaintext. The server reads .env from the directory it starts in, and MCP clients often start it somewhere else, so this suits running from a clone with npm start. .env is in .gitignore; keep it private with chmod 600 .env.
4. Not recommended: the settoken tool. 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
typescript
// Get your Lichess profile
getmyprofile();
// Get another user's profile
getuserprofile({
username: "playername",
trophies: true // include trophies, optional
});
### 2. Game Play
Needs the challenges and board toolsets (see Toolsets).
typescript
// Create a challenge against another player
createchallenge({
username: "opponentusername",
timeControl: "10+0", // 10 minutes, no increment
color: "random" // or "white", "black"
});
// Make a move in a game
makemove({
gameId: "abcd1234",
move: "e2e4",
offeringDraw: false
});
// Get your ongoing games
getongoinggames({
nb: 10 // number of games to fetch
});
### 3. Game Analysis
typescript
// Export a game in PGN format
exportgame({
gameId: "abcd1234",
clocks: true,
evals: true
});
// Get cloud evaluation for a position
getcloudeval({
fen: "rnbqkbnr/ppp1pppp/8/3p4/4P3/8/PPPP1PPP/RNBQKBNR w KQkq - 0 2"
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[](https://anclum.com/zh/s/karayaman-lichess-mcp/)
- 来源
- awesome · https://github.com/karayaman/lichess-mcp
- 按领域浏览
- MCP 服务
- 收录来源
- 10 个独立来源
- 收录于
- 今天
同类推荐
所属领域与标签
每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。