Lichess

liveGamesSports

Lichess public API — players, ratings, top lists, cloud eval, tablebase, opening explorer. Keyless.

10tools
0msauth
free tier50 calls/day

Tools

userrequired: username

Player profile.

Parameters
NameTypeDescription
usernamereqstring
Try it
usersrequired: usernames

Bulk lookup (up to 300).

Parameters
NameTypeDescription
usernamesreqarray
Try it
user_statusrequired: usernames

Online / playing status.

Parameters
NameTypeDescription
usernamesreqarray
Try it
user_performancerequired: username, perf

Single-variant performance + best rated game.

Parameters
NameTypeDescription
usernamereqstring
perfreqstring
Try it
top_playersrequired: perf

Top-rated players for one variant.

Parameters
NameTypeDescription
perfreqstring
limitoptnumber
Try it
leaderboards

Top-10 across all variants.

No parameters required.

Try it
tv_channels

Currently-featured TV games.

No parameters required.

Try it
cloud_evalrequired: fen

Stockfish cloud evaluation for a FEN.

Parameters
NameTypeDescription
fenreqstring
multi_pvoptnumber
Try it
tablebaserequired: fen

Syzygy tablebase lookup.

Parameters
NameTypeDescription
fenreqstring
variantoptstring
Try it
opening_explorerrequired: scope

Lichess/Masters/Player opening DB.

Parameters
NameTypeDescription
scopereqstring
fenoptstring
playoptstring
playeroptstring
speedsoptstring
ratingsoptstring
movesoptnumber
Try it

Test with curl

The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.

List available tools
bash
curl -X POST https://gateway.pipeworx.io/lichess/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Call a tool
bash
curl -X POST https://gateway.pipeworx.io/lichess/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"user","arguments":{"username": "octocat"}}}'

Use with the SDK

Install @pipeworx/sdk to call tools from any TypeScript/Node project.

TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("user", {"username":"example"});
ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("lichess public api — players, ratings, top lists, cloud eval, tablebase, opening explorer");