# Lichess player ratings and leaderboards for AI agents (/use-cases/lichess-api)

Ask "who are the top blitz players on Lichess?" and your agent returns the leaderboard with ratings and recent rating change.

Ratings change daily, so run it again for current numbers. The calls only read.

## What you can call

| Function                                  | What it does                                            |
| ----------------------------------------- | ------------------------------------------------------- |
| `bowmark.providers.lichess.topPlayers`    | Lists the leaderboard for a time control such as blitz. |
| `bowmark.providers.lichess.searchPlayers` | Finds players by username prefix.                       |
| `bowmark.providers.lichess.getUser`       | Reads a player's ratings and win, loss and draw record. |
| `bowmark.providers.lichess.exportGame`    | Reads one game as PGN with its opening.                 |

## Try it

```js
const { players } = await bowmark.providers.lichess.topPlayers({ perf: "blitz", limit: 10 });
return players;
```

Add the MCP server to Claude Code with this command, then ask your agent. Other clients are on [Installation](/docs/installation).

```sh
claude mcp add bowmark --transport http https://api.bowmark.ai/mcp --header "Authorization: Bearer $BOWMARK_API_KEY"
```

## FAQ

### Does it need an API key?

No.

### Can I read a single game?

Yes. `exportGame` returns one game as PGN with its opening.

### What does it cost?

Your first $10 is free, then you pay per call. See [Pricing](/docs/pricing).

## Next

Follow the [Quickstart](/docs/quickstart), or see [Websites without an API](/use-cases/websites-without-an-api).
