Lets agents play games, analyze positions, manage the account and join tournaments on Lichess through natural language.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add lichess --env LICHESS_TOKEN='<LICHESS_TOKEN>' -- npx -y @smithery/cli install @karayaman/lichess-mcp --client claude~/.codex/config.toml
[mcp_servers.lichess]
command = "npx"
args = ["-y", "@smithery/cli", "install", "@karayaman/lichess-mcp", "--client", "claude"]
env = { LICHESS_TOKEN = "<LICHESS_TOKEN>" }
# codex mcp add lichess --env LICHESS_TOKEN='<LICHESS_TOKEN>' -- npx -y @smithery/cli install @karayaman/lichess-mcp --client claude~/.cursor/mcp.json
{
"mcpServers": {
"lichess": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@karayaman/lichess-mcp",
"--client",
"claude"
],
"env": {
"LICHESS_TOKEN": "<LICHESS_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"lichess": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@karayaman/lichess-mcp",
"--client",
"claude"
],
"env": {
"LICHESS_TOKEN": "<LICHESS_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"lichess": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@karayaman/lichess-mcp",
"--client",
"claude"
],
"env": {
"LICHESS_TOKEN": "<LICHESS_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"lichess": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@karayaman/lichess-mcp",
"--client",
"claude"
],
"env": {
"LICHESS_TOKEN": "<LICHESS_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"lichess": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@karayaman/lichess-mcp",
"--client",
"claude"
],
"env": {
"LICHESS_TOKEN": "<LICHESS_TOKEN>"
}
}
}
}需要的环境变量
LICHESS_TOKEN
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。