# Use the MCP server

> Connect an AI assistant to the catalog with the Model Context Protocol, openly or as a member with OAuth.

The Board Game Database runs a [Model Context Protocol](https://modelcontextprotocol.io)
server, so an assistant (Claude, ChatGPT, an IDE agent) can search the
catalog and read games itself. Like the API, it only reads: no tool
changes the catalog or a member's account. It speaks streamable HTTP and
has two endpoints:

| Endpoint                         | Who                               | Authentication                                                         |
| -------------------------------- | --------------------------------- | ---------------------------------------------------------------------- |
| `https://mcp.theboardgamedb.com/mcp`    | anyone                            | none; optionally `Authorization: Bearer bgdb_…` (a personal API token) |
| `https://mcp.theboardgamedb.com/member` | a member, through their assistant | OAuth 2.1 with PKCE, dynamic client registration                       |

## The open endpoint

Add it to your assistant as a remote MCP server:

```json
{
"mcpServers": {
"thebgdb": { "url": "https://mcp.theboardgamedb.com/mcp" }
}
}
```

It offers the catalog tools: searching games, reading one game, listing
games with filters, credits, anniversaries, and the generic `search` and
`fetch` tools that research assistants expect. Calls count against the same
[limits](https://docs.theboardgamedb.com/guides/limits-and-caching/) as the API: per address, or per member
when you send a personal API token, which also reads the member's own
lists, ratings and corrections.

## The member endpoint

For an assistant that reads what is a member's own (their lists, ratings,
corrections), connect to `/member`. The assistant registers itself, sends
the member to theboardgamedb.com to sign in, and the member chooses what it may see
on the consent page:

| Scope              | Allows                                                                     |
| ------------------ | -------------------------------------------------------------------------- |
| `catalog:read`     | Read the public catalog: games, credits, rules, tutorials (always granted) |
| `lists:read`       | See the member's lists, private ones included                              |
| `ratings:read`     | See the games the member rated                                             |
| `corrections:read` | See the corrections the member proposed and what moderators decided        |
| `offline_access`   | Stay connected without asking again for 30 days                            |

Each tool needs one scope; an assistant only sees the tools its scopes
allow. There is no scope to change anything: members make lists, rate games
and propose corrections on the website. A connection that was allowed
`lists:write`, `ratings:write` or `corrections:write` before 2026-11-28
keeps reading what it read.

## What the server says about itself

```sh
curl "https://mcp.theboardgamedb.com/"
```

returns its endpoints, how to authenticate and every scope with its meaning.

:::tip[For agents reading these docs]
These pages are also plain Markdown: add `.md` to any guide's address, or
read [llms.txt](https://docs.theboardgamedb.com/llms.txt) (an index) and [llms-full.txt](https://docs.theboardgamedb.com/llms-full.txt)
(every guide in one file). The API itself is described by
[openapi.json](https://docs.theboardgamedb.com/openapi.json).
:::
