# 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 DB 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. It speaks streamable HTTP and has two
endpoints:

| Endpoint                         | Who                               | Authentication                                                         |
| -------------------------------- | --------------------------------- | ---------------------------------------------------------------------- |
| `https://mcp.thebgdb.org/mcp`    | anyone                            | none; optionally `Authorization: Bearer bgdb_…` (a personal API token) |
| `https://mcp.thebgdb.org/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.thebgdb.org/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.thebgdb.org/guides/limits-and-caching/) as the API: per address, or per member
when you send a personal API token, which also unlocks the member tools.

## The member endpoint

For an assistant acting for a member (their lists, ratings, corrections),
connect to `/member`. The assistant registers itself, sends the member to
thebgdb.org to sign in, and the member chooses what it may do 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                              |
| `lists:write`       | Create, change and delete lists, add or remove games                       |
| `ratings:read`      | See the games the member rated                                             |
| `ratings:write`     | Rate games and take ratings back                                           |
| `corrections:read`  | See the corrections the member proposed and what moderators decided        |
| `corrections:write` | Propose corrections to games in the member's name                          |
| `offline_access`    | Stay connected without asking again for 30 days                            |

Each tool needs one scope; an assistant only sees the tools its scopes
allow. A write scope includes the matching read scope.

## What the server says about itself

```sh
curl "https://mcp.thebgdb.org/"
```

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.thebgdb.org/llms.txt) (an index) and [llms-full.txt](https://docs.thebgdb.org/llms-full.txt)
(every guide in one file). The API itself is described by
[openapi.json](https://docs.thebgdb.org/openapi.json).
:::
