KL

karayaman/lichess-mcp

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

20 stars 10 forks Качество 82 Тренд 24MIT

Сервер Model Context Protocol (MCP), который позволяет Claude Desktop взаимодействовать с шахматной платформой Lichess на естественном языке.

Обзор

Говорите с Лихвой на естественном языке для взаимодействия с шахматной платформой. Используйте его с Claude Desktop, чтобы играть в игры, анализировать позиции и управлять своей шахматной деятельностью. - Управление учетной записью Lichess - Игра в шахматы и вызовы - Анализ позиций и игр - Присоединение к турнирам и командам - Взаимодействие с другими игроками Создайте токен в https://lichess.org/account/oauth/token. Нажмите только те области, которые вам нужны. Некоторые инструменты действуют в вашей учетной записи (отправка сообщений, создание проблем, обновление до учетной записи бота), а модель читает текст, написанный другими пользователями Lichess. Масштабы токена ограничивают то, что может сделать введенная в заблуждение модель. Способы предоставления серверу вашего токена, наиболее безопасные в первую очередь: 1.Токен никогда не находится в файле с открытым текстом или в чате. macOS (Keychain).

Обзор (машинный перевод)

Говорите с Лихвой на естественном языке для взаимодействия с шахматной платформой. Используйте его с Claude Desktop, чтобы играть в игры, анализировать позиции и управлять своей шахматной деятельностью.

Используется протокол Model Context.

Сервер позволяет:

  • Управление вашим аккаунтом Lichess
  • Игра в шахматы и вызовы Анализ позиций и игр
  • Присоединение к турнирам и командам Взаимодействие с другими игроками

# Lichess Token

Создайте токен в https://lichess.org/account/oauth/token. Нажмите только те области, которые вам нужны. Некоторые инструменты действуют в вашей учетной записи (отправка сообщений, создание проблем, обновление до учетной записи бота), а модель читает текст, написанный другими пользователями Lichess. Масштабы токена ограничивают то, что может сделать введенная в заблуждение модель.

Способы предоставления серверу вашего токена, наиболее безопасные в первую очередь:

  1. ** Рекомендовано: хранить его в секретном магазине ОС и передавать при запуске. ** Токен никогда не находится в простом текстовом файле или в чате.

macOS (Keychain). Храните его один раз; команда подсказывает токен:

Затем ваш клиент MCP запустит такой сервер:

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

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:

  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:

    security add-generic-password -s lichess-mcp -a "$USER" -w
    

    Then 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-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.

    "lichess": {
      "command": "lichess-mcp",
      "env": { "LICHESS_TOKEN": "your-lichess-api-token" }
    }
    
  3. A .env file containing LICHESS_TOKEN=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 set_token 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

// Get your Lichess profile
get_my_profile();

// Get another user's profile
get_user_profile({
  username: "player_name",
Открыть полный README на GitHub

Установка

npx -y @modelcontextprotocol/server-filesystem /Users/username/Desktop /Users/username/Downloads
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "lichess": { "command": "/bin/sh", "args": ["-c", "LICHESS_TOKEN=\"$(security find-generic-password -s lichess-mcp -w)\" exec lichess-mcp"] } } }