Skip to main content

How to connect Lichess to Claude Code, ChatGPT and any AI agent

Yes, Claude, ChatGPT and other AI agents can work in your Lichess account. Cotlet.dev connects your own signed-in Lichess account to any AI agent, so you can ask in plain words and the AI accepts team join requests and sends updates to your team for you.

What you can ask

Accept the join requests from tom_k and anna_plays to my "Riverside Chess Club" team.

Show me all pending join requests for my team and who sent them this week.

Send a message to all members of "Riverside Chess Club": our blitz arena starts Thursday at 7 pm.

Accept every join request from today, then tell the team that 4 new players joined.

Message my team that Saturday's lesson with coach Maria moves to 10 am.

Connect in 2 minutes

Get your API key at https://cotlet.dev/app and export it as COTLET_API_KEY.

Claude Code

claude mcp add --transport http cotlet https://cotlet.dev/mcp/v1 --header "Authorization: Bearer $COTLET_API_KEY"

ChatGPT

Settings → Apps → add connector URL https://cotlet.dev/mcp/v1, then sign in with Cotlet.dev. No API key needed.

Cursor

Copy .cursor/mcp.json from this repo into your project:

{
  "mcpServers": {
    "cotlet": {
      "url": "https://cotlet.dev/mcp/v1",
      "headers": {
        "Authorization": "Bearer ${COTLET_API_KEY}"
      }
    }
  }
}

Run it locally (stdio)

This repo is a real MCP server. It speaks MCP over stdio, lists its Lichess tools without any key, and forwards every tool call to the hosted Cotlet.dev server. The hosted URL above stays the recommended way. Use this when your client only starts local servers.

{"mcpServers":{"lichess":{"command":"uvx","args":["lichess-mcp"],"env":{"COTLET_API_KEY":"your-key"}}}}

Or with Docker:

docker build -t lichess-mcp .
docker run -i --rm -e COTLET_API_KEY lichess-mcp

Tools: lichess_guide, lichess_status, lichess_open, lichess_read, lichess_click, lichess_type, lichess_close. Without COTLET_API_KEY a tool call answers: "Set COTLET_API_KEY. Get a key at https://cotlet.dev/app".

Command line

Python 3.10+, nothing else to install. From PyPI:

pip install lichess-mcp        # or run it once: uvx lichess-mcp connect
lichess-mcp connect

Or straight from this repo:

export COTLET_API_KEY="your-key"
python3 lichess_agent.py connect   # ready config for Claude Code, Cursor, ChatGPT
python3 lichess_agent.py status    # is Lichess ready in your Cotlet.dev account
python3 lichess_agent.py guide     # Lichess screens and sign-in link
python3 lichess_agent.py read      # open Lichess, read the page, close the browser
python3 lichess_agent.py tools     # list Cotlet.dev tools
python3 lichess_agent.py serve     # start the stdio MCP server (same as no argument)

Questions from Lichess users

Does Lichess have an API?

Lichess has a full, free REST API with personal and OAuth tokens, but no official MCP server (checked 17 Oct 2026). The API covers teams, Arena and Swiss tournaments, studies, broadcasts, challenges and game export, so the gap is a hosted, maintained MCP with no token to create, scope or revoke. Cotlet.dev works in your own signed-in Lichess account, so your AI agent can accept team join requests and message your team with no API key and no code.

How do I connect Lichess to ChatGPT?

Add Cotlet.dev as an app in ChatGPT (Settings → Apps, connector URL https://cotlet.dev/mcp/v1), sign in to Lichess once in your Cotlet.dev Cloud Browser, and ask ChatGPT in plain words. No code and no Lichess API key.

Is there a way to use Claude with Lichess?

Yes. In Claude Code run the one-line claude mcp add command above; in the Claude app add https://cotlet.dev/mcp/v1 as a custom connector. Claude then works in your own Lichess account.

Is there a Lichess MCP server?

We found no official Lichess app in the ChatGPT or Claude directories. Cotlet.dev is a hosted MCP server that works in Lichess for you, 24/7, with Claude, ChatGPT, Cursor, Codex, n8n, Make and Zapier.

Find it on

Also works with


More: https://cotlet.dev/integrations/lichess-api-mcp-server?utm_source=github&utm_medium=readme&utm_campaign=lichess

Start free: https://cotlet.dev/signup?app=lichess&utm_source=github&utm_medium=readme&utm_campaign=lichess

Metadata

Release files for lichess-mcp 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lichess-mcp 1.1.0
File Size Uploaded Provenance Actions
lichess_mcp-1.1.0.tar.gz 8.9 kB Without provenance Details for lichess_mcp-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lichess-mcp 1.1.0
File Interpreter ABI Platform Actions
lichess_mcp-1.1.0-py3-none-any.whl Python 3 none any Details for lichess_mcp-1.1.0-py3-none-any.whl

Total release size: 17.8 kB

Release files / lichess_mcp-1.1.0.tar.gz

Download URL lichess_mcp-1.1.0.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3a2877edad30d1af1ed107798de3150bb3a5f7d5fba205ef35c3aac73f06a033
BLAKE2b-256 checksum
How to use checksums
f489de6ccf3de8d899ed3f7f3e45972aae4259b03bcdf113aed3907b6c97b2c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / lichess_mcp-1.1.0-py3-none-any.whl

Download URL lichess_mcp-1.1.0-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fd6101d57f92f0b3eb1f13f2c0abc20d023db790ac886272a596b3f59b075441
BLAKE2b-256 checksum
How to use checksums
03b29a2ca5d8200f4905540e50673e39de7438433e5ef8487eae5f819db60651
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for lichess-mcp 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page