# The Board Game Database API > An open database of board games, read over a JSON API with no key needed. Find a game despite typos, show its cover, respect the limits. Search by name in any language, with misspellings corrected and a light endpoint for search boxes. [Read the guide](https://docs.theboardgamedb.com/guides/find-a-game/). Scan the box: the exact edition, its language and publisher, and its game. [Read the guide](https://docs.theboardgamedb.com/guides/identify-an-edition/). Three sizes of every cover, all served by us, with their dimensions and what they show. [Read the guide](https://docs.theboardgamedb.com/guides/covers-and-credits/). The limits as numbers, the headers on every answer, and what to keep and for how long. [Read the guide](https://docs.theboardgamedb.com/guides/limits-and-caching/). An MCP server for assistants, and these docs as plain text: [llms.txt](https://docs.theboardgamedb.com/llms.txt) and [llms-full.txt](https://docs.theboardgamedb.com/llms-full.txt). [Read the guide](https://docs.theboardgamedb.com/guides/mcp/). ## The API in one call ```sh curl "https://api.theboardgamedb.com/v1/search?q=wingspn" ``` Every answer is JSON. A successful answer puts its payload under `data`; a refusal sends `{ "error": "…", "code": "…" }`, where `code` is a stable name a program can act on ([every code](https://docs.theboardgamedb.com/errors/)). The full description of the API is an OpenAPI 3.1 file: [openapi.json](https://docs.theboardgamedb.com/openapi.json), also served by the API itself at `https://api.theboardgamedb.com/v1/openapi.json`. ## Plans Reading needs no key, and reading is all the API does: nothing in it changes the catalog or an account. The game data is the same for everyone; a free account and its API token raise the limits, and a plan adds volume, commercial use and integration features: Hobby or Starter, at [theboardgamedb.com/pricing](https://theboardgamedb.com/pricing), or Pro and Enterprise by contract, at contact@theboardgamedb.com. Commercial use starts with Hobby. What each plan includes, and the numbers, are in [Limits and caching](https://docs.theboardgamedb.com/guides/limits-and-caching/). --- # Make your first call > Search the catalog, read one game and show its cover, in three requests and no key. The API is at `https://api.theboardgamedb.com/v1`. Reading needs no key and no account. Three calls take you from a name typed with a mistake to a game's cover on screen. ## 1. Search, with a typo ```sh curl "https://api.theboardgamedb.com/v1/search?q=wingspn&limit=2" ``` ```json { "query": "wingspn", "total": 2, "page": 1, "pages": 1, "nextCursor": "2", "data": [ { "id": "2e8eb86c-73f6-4343-a04a-c546debfd484", "slug": "wingspan", "name": "Wingspan", "yearPublished": 2019, "players": { "min": 1, "max": 5 }, "thumbnail": "/v1/media/covers/1520…-w250.jpg", "approximate": true } ] } ``` `approximate: true` says the game was found by correcting the query, not as written. The answer is shortened here: every game in a list carries the same fields (`GameSummary` in the [reference](https://docs.theboardgamedb.com/reference/)). ## 2. Read one game Use the `id` or the `slug`: ```sh curl "https://api.theboardgamedb.com/v1/games/wingspan" ``` The answer holds everything the catalog knows about the game: its names in every language, credits, players, playing time, age, members' ratings and polls, its covers. A fact nobody knows is `null`, never a guess. ## 3. Show its cover `image`, `medium` and `thumbnail` are paths on the API. Put the API's address in front: ```html Wingspan ``` Every file is ours: the API never sends another site's address for an image. See [Show the right cover](https://docs.theboardgamedb.com/guides/covers-and-credits/). ## In TypeScript and Python ```ts const base = "https://api.theboardgamedb.com/v1"; const found = await fetch(`${base}/search?q=${encodeURIComponent("wingspn")}`); const { data } = await found.json(); const game = await (await fetch(`${base}/games/${data[0].slug}`)).json(); console.log(game.data.name, game.data.yearPublished); ``` ```python base = "https://api.theboardgamedb.com/v1" found = requests.get(f"{base}/search", params={"q": "wingspn"}, timeout=10).json() game = requests.get(f"{base}/games/{found['data'][0]['slug']}", timeout=10).json() print(game["data"]["name"], game["data"]["yearPublished"]) ``` ## Next - [Find a game despite typos](https://docs.theboardgamedb.com/guides/find-a-game/): search boxes, languages, paging. - [Limits and caching](https://docs.theboardgamedb.com/guides/limits-and-caching/): before you go to production. --- # Find a game despite typos > Search games by name in any language, with misspellings corrected, and offer suggestions while someone types. People type game names badly, in their own language, and with the punctuation left out. Two endpoints cover it: | | `GET /search` | `GET /suggest` | | ------- | -------------------------------------------------------------- | ---------------------------------------- | | For | a results page | a search box, at every key press | | Returns | games (and, with `type=all`, people and publishers in `terms`) | games and up to 3 people or publishers | | Paging | `page` or `cursor` | none: one short list | | Answer | full `GameSummary` objects | a slimmer `Suggestion`, with `thumbnail` | ## Search ```sh curl "https://api.theboardgamedb.com/v1/search?q=brass%20birmigham" ``` - **Every word, any order, any name.** A game matches when one of its names (the main one or an alternate one, in any language) contains every word of `q`. Case, accents and punctuation are ignored: `flugelschlag` finds Flügelschlag, `catan!` finds Catan. - **Misspellings.** When fewer than `limit` games match as written, games with a close name are added after them, each marked `approximate: true`. `cattan` finds Catan, `wingspn` finds Wingspan. Show these as "Did you mean…" if your interface tells them apart. - **Which name matched.** `matchedName` says which alternate name was found when it was not the main one, so you can show "Die Siedler von Catan (Catan)". - **Order.** A name equal to the query first, then names starting with it, then a word starting with it, then names containing it; within each, the better-known games first. ### Names in the reader's language Send `lang` (a BCP 47 code such as `fr`, `ja` or `pt-BR`): ```sh curl "https://api.theboardgamedb.com/v1/search?q=aventuriers&lang=fr" ``` A game with a name in that language comes back with it as `name`, and its main name as `originalName`. A regional code falls back on its language (`fr-CA` on `fr`). ### Pages `limit` sets the page size. Go on with the `nextCursor` of the previous answer as `cursor`, or ask for a numbered `page`: ```sh curl "https://api.theboardgamedb.com/v1/search?q=catan&limit=24&page=2" ``` Send one of `page` or `cursor`, not both (`invalid_page`). A page past the last is refused with `page_out_of_range`. ### People and publishers `type=people` finds designers and artists, `type=publishers` publishers, and `type=all` games plus up to 10 people and publishers in `terms` on the first page: ```sh curl "https://api.theboardgamedb.com/v1/search?q=feld&type=people" ``` ## Suggestions for a search box `GET /suggest` answers in a few milliseconds from the search index, with the same matching and order: ```sh curl "https://api.theboardgamedb.com/v1/suggest?q=wings&lang=en" ``` Each game carries its `thumbnail` (our small copy of the cover), so the list can show covers at once. Designers, artists and publishers come back with their `kind`. Call it as the person types, after a short pause (150 to 250 ms) so a fast typist does not send a request per letter. ## In code ```ts async function findGames(query: string, lang = "en") { const url = new URL("https://api.theboardgamedb.com/v1/search"); url.searchParams.set("q", query); url.searchParams.set("lang", lang); const response = await fetch(url); if (!response.ok) throw new Error((await response.json()).code); const { data } = await response.json(); return data.map((game) => ({ slug: game.slug, name: game.name, guessed: game.approximate === true, })); } ``` ```python def find_games(query, lang="en"): response = requests.get( "https://api.theboardgamedb.com/v1/search", params={"q": query, "lang": lang}, timeout=10, ) body = response.json() if not response.ok: raise RuntimeError(body["code"]) return [(g["slug"], g["name"], g.get("approximate", False)) for g in body["data"]] ``` :::tip[What to cache, and for how long] Search and suggestion answers are cached by us for everyone until the catalog changes, and a cached answer does not count against your limits. On your side, keep a query's results for a few minutes; keep the `id` of the game someone picked for good: `GET /games/{id}` also accepts a slug the game had before, or the id of an entry merged into it, and answers with the game under its current address. ::: --- # Identify an edition by its barcode > Turn the barcode on a box into the exact edition and its game, one at a time or a hundred at once, and handle a barcode we do not know yet. The barcode on the back of a box names an edition: its language, its publisher, its print run. Scan it, and the API tells you which game it is and which edition of it. ## One barcode ```sh curl "https://api.theboardgamedb.com/v1/editions?ean=4002051694104" ``` `ean` takes the 13 digits of an EAN-13, or the 12 of a UPC-A (boxes sold in North America). Spaces and dashes are ignored; the check digit must be right, so a misread scan is refused (`invalid_ean`, 400) instead of matching another box. The answer gives the barcode as EAN-13 and every edition it is printed on, each with its game: ```json { "ean": "4002051694104", "data": [ { "edition": { "id": "…", "slug": "de-kosmos-2015-k3x9q2", "name": null, "original": false, "language": "de", "publisher": { "slug": "kosmos", "name": "Kosmos" }, "year": 2015, "ean": "4002051694104", "cover": { "image": "/v1/media/covers/….jpg", "thumbnail": "/v1/media/covers/…-w250.jpg" } }, "game": { "id": "…", "slug": "catan", "name": "Catan" } } ] } ``` The answer is shortened here; `game` is a full game summary, the same as in search results. There is usually one result. A publisher sometimes reuses a barcode for a reprint, and then you get each edition it is printed on. A barcode can match in three ways: an edition's own barcode, the game's barcode (which is its original edition's), or a barcode a source gave the game. Each call counts as one game read against the weekly [limits](https://docs.theboardgamedb.com/guides/limits-and-caching/). ### A barcode we do not know yet `barcode_not_found` (404) means no edition in the catalog carries it yet. Offer the person a name search instead ([Find a game despite typos](https://docs.theboardgamedb.com/guides/find-a-game/)), and keep the barcode: the catalog grows every day. ```ts async function fromBarcode(scanned: string) { const url = new URL("https://api.theboardgamedb.com/v1/editions"); url.searchParams.set("ean", scanned); const response = await fetch(url); const body = await response.json(); if (response.ok) return body.data; // [{ edition, game }, …] if (body.code === "barcode_not_found") return []; // Ask for the name instead. if (body.code === "invalid_ean") throw new Error("Scan it again"); throw new Error(body.code); } ``` ```python def from_barcode(scanned): response = requests.get( "https://api.theboardgamedb.com/v1/editions", params={"ean": scanned}, timeout=10 ) body = response.json() if response.ok: return body["data"] # [{"edition": ..., "game": ...}, ...] if body["code"] == "barcode_not_found": return [] # Ask for the name instead. raise RuntimeError(body["code"]) ``` ## The edition's own page Each edition has a `slug`, its address under its game. Read everything we hold about it (the front and back of its box, the languages of its rules, its rulebooks, what differs from the original edition): ```sh curl "https://api.theboardgamedb.com/v1/games/catan/editions/de-kosmos-2015-k3x9q2" ``` The same edition is shown to people at `https://theboardgamedb.com/games/catan/editions/de-kosmos-2015-k3x9q2`. ## A hundred at once Starter plan On the Starter plan or a larger one, `POST /lookup` takes up to 100 barcodes and ids in one request, for a shop's catalog or a collection import: ```sh curl -X POST "https://api.theboardgamedb.com/v1/lookup" \ -H "Authorization: Bearer bgdb_…" \ -H "Content-Type: application/json" \ -d '{ "eans": ["4002051694104", "0841333100667"], "ids": ["catan"] }' ``` Each result names what was sent (`ean` or `id`) and what it found (`found`, a list of editions with their games); a barcode that cannot be read has an `error`. Every item counts as a request and a game read. On a smaller plan the answer is `paid_plan_required` (403): look barcodes up one at a time with `GET /editions?ean=`, which every plan may do. :::tip[What to cache, and for how long] A barcode keeps naming the same edition: keep a match for a month. Ask again for a `barcode_not_found` after a week or so, when the person comes back. ::: --- # Show the right cover > Pick the right size of a game's cover, lay it out before it loads, choose the box of the reader's language, and credit what needs credit. Every game that has a cover comes with it in three sizes, its dimensions and what the picture shows. Every file is stored and served by us: the API never sends another site's address for an image. ## The three sizes Each game object (in lists and on its own) carries: | Field | What it is | | --------------------------- | ----------------------------------------------------------------- | | `image` | The main cover, the original edition's box front. | | `medium` | The same, 500 pixels wide: cards and small screens. | | `thumbnail` | The same, 250 pixels wide: lists and search results. | | `imageWidth`, `imageHeight` | The size of `image` in pixels, to keep its place before it loads. | All three are paths on the API (they start with `/v1/media/`): put `https://api.theboardgamedb.com` in front. `medium` and `thumbnail` are the same path as `image` when the cover is no wider than that size, and for members' photos. A game with no cover we hold has `null` in all three. ```html Wingspan ``` Set `width` and `height` from `imageWidth` and `imageHeight` (they can be `null`: then reserve a square), so the page does not jump when the image arrives. Covers are not all square: show them whole (`object-fit: contain`), never cropped. ## Is it a good cover? - `imageKind` says what the picture shows: `box_front` is the whole front of the box; the [reference](https://docs.theboardgamedb.com/reference/) lists the others. - `imageAcceptable` is `true` for a good cover: the whole front of the box, no person in it, a sharp enough picture, at least 300 pixels on its short side. `false` means a better one is wanted; you may prefer your own placeholder then. - `imageLanguage` is the language of the edition on the box, when a source states it. It is usually `null`. To list only games with a good cover, filter the list: ```sh curl "https://api.theboardgamedb.com/v1/games?cover=ok&order=ranked&limit=24" ``` ## The box in the reader's language `GET /games/{id}` also returns `covers`: the main cover first (`primary: true`), then the box of each other edition or name the game is sold under, and members' photos of a box that say which edition they show. Each carries its `language`, its `edition` and the `name` printed on it: ```ts function coverFor(game, lang: string) { const local = game.covers.find( (c) => c.language === lang && c.kind === "box_front", ); return local ?? game.covers.find((c) => c.primary) ?? null; } ``` ```python def cover_for(game, lang): local = next((c for c in game["covers"] if c["language"] == lang and c["kind"] == "box_front"), None) return local or next((c for c in game["covers"] if c["primary"]), None) ``` ## Credits Some covers come from Wikimedia Commons, and some descriptions from Wikipedia, under licences that ask for credit. `GET /credits` lists exactly those, with the source, the licence and the author: ```sh curl "https://api.theboardgamedb.com/v1/credits?kind=image&limit=50" ``` Show the credit wherever you show such an image. Nothing else needs a credit line. Using the images and data is subject to the [terms](https://theboardgamedb.com/terms#images). :::tip[What to cache, and for how long] A file's address never changes its content: cache images for as long as you like (we send `immutable`). When a game's cover is replaced, the game points to a new address. Re-read a game's fields at least daily if you show them. ::: --- # Follow a game's tree > Get every game of one line in one request, the root game, its remakes, their expansions and its spin-offs, with the editions and names of each, and use it to tell what someone owns. Games come in lines. Carcassonne has its expansions and a junior version; Twilight Imperium was made again three times, and each making has expansions of its own. A **game tree** is one such line: every game of it, what each is to the others, and the editions and names each goes by. Use it when one game is not the right unit: to show a collection grouped by line, to offer "you own the base game, here are its expansions", or to decide whether a title someone typed is a game you already have under another name. ## The tree of a game ```sh curl "https://api.theboardgamedb.com/v1/games/twilight-imperium-fourth-edition/tree" ``` Any game of the line gives the same tree. The answer, shortened: ```json { "data": { "id": "0b6d2a0e-…", "root": { "id": "…", "slug": "twilight-imperium", "name": "Twilight Imperium", "yearPublished": 1997 }, "size": 5, "truncated": false, "nodes": [ { "game": { "name": "Twilight Imperium" }, "role": "root", "parent": null, "line": true, "depth": 0, "editions": [], "names": [] }, { "game": { "name": "Twilight Imperium: Fourth Edition" }, "role": "remake", "parent": "…", "line": true, "depth": 1, "editions": [{ "id": "…", "name": null, "language": "fr", "year": 2018 }], "names": [{ "name": "Twilight Imperium: Fourth Edition", "language": "en" }] }, { "game": { "name": "Twilight Imperium: Prophecy of Kings" }, "role": "expansion", "parent": "…", "line": true, "depth": 2, "editions": [], "names": [] } ], "edges": [ { "from": "…", "to": "…", "kind": "reimplements", "outside": null }, { "from": "…", "to": "…", "kind": "expansion_of", "outside": null } ] } } ``` Each entry of `nodes` is a game of the tree; `game` is a full game summary, the same as in search results. `role` says what it is in the line: | `role` | What it is | | ----------- | ---------------------------------------------------------------------------------- | | `root` | The game the line starts from. | | `remake` | Its parent made again: a new edition that is a game of its own. | | `expansion` | It needs its parent to be played. | | `spin_off` | A game of its own built on its parent (a junior version, a dice game, a sequel). | | `sibling` | Another game of the line that plays on its own, tied to it by a shared expansion. | `parent` is the id of the game it hangs from, so the nodes draw as a tree without reading `edges`; `depth` counts the steps down from the root. `line` tells the main line from its branches: it is `true` for the root, its remakes and the expansions of each, and `false` for a spin-off and everything that hangs from it. To list "Catan and its expansions" without Catan Junior, keep the nodes whose `line` is `true`. ## How the root is chosen The root is a game of the tree that plays on its own, redoes no other game of the tree and is built on none. When several qualify, it is the oldest; a game whose year is not known comes after those that have one, then the game with the most links wins. So the root of Twilight Imperium is the 1997 game, not its best-known edition, and it may change when an older game of the line is added to the catalog. The tree's `id` does not change with it. ## Editions and names are not nodes A French printing, a tenth-anniversary box, a new cover: these are editions of one game, listed in that game's `editions`. A remake is a node because its rules changed enough to be another game. The names a game goes by in every language are in `names`, main names first. That split is what makes the tree useful for matching. To decide whether "Die Siedler von Catan" is a game you already hold, look for it in the `names` of the nodes rather than comparing titles yourself. ## Links to other trees `edges` holds every link, one per pair of games whichever of the two it was stated on. Three kinds tie the games of the tree together (`expansion_of`, `reimplements`, `based_on`). Two more lead out of it: `contains`, from a box to a game that comes in it, and `integrates_with`, between two games that can be combined. A big box of three unrelated games does not make them one line, so the game at the other end is not a node: it is given in the edge's `outside`. ## A game on its own Most games are tied to no other. Their tree is one node, `size` is 1 and `id` is `null`; the game's own `tree` field is `null` too, so you know before asking: ```sh curl "https://api.theboardgamedb.com/v1/games/hive" ``` A game in a line carries `tree` with the tree's `id` and `size`. ## Keeping a tree `GET /trees/{id}` answers the same body by the tree's id. The id is stable. When two trees turn out to be one line, the older id stays and the other answers that tree: compare the `id` you get with the one you asked for and keep the new one. An id whose tree no longer exists answers 404 `tree_not_found`. Trees follow the catalog: a new expansion joins its base game's tree within minutes of being listed. An answer holds 200 games at most, the nearest to the root first, and says so with `truncated`. --- # Limits, caching and terms > The request limits as numbers, the headers on every answer, what to do on a 429, and what to cache for how long. Reading needs no key. Limits keep the catalog fast for everyone; they are counted per address without an account, and per member with one. The game data is the same for everyone: a plan adds volume, the right to use the data commercially and integration features. ## The limits | | No account | Free account | Hobby plan | Starter plan | Pro, Enterprise | | ----------------- | ------------------------------------ | --------------------------------- | ------------------------ | ----------------------- | --------------- | | Requests a minute | 60 | 90 | 180 | 180 | by contract | | Requests a day | none | none | 2,000 | 6,000 | by contract | | Requests a week | 250 | 1,500 | 10,000 | 30,000 | by contract | | Games read a week | 50 | 250 | 1,000 | 3,000 | by contract | | Counted per | address (an IPv6 address by its /64) | member, all their tokens together | member | member | member | "Games read" counts `GET /games/{id}` and the routes under it. Days are UTC days; weeks start on Monday at 00:00 UTC. Without a paid plan there is no daily limit: the week's is the one that counts. - **Free account**: a member whose email address is confirmed creates up to 2 API tokens on their account page at theboardgamedb.com, and sends one as `Authorization: Bearer bgdb_…`. - **Hobby and Starter**: the plans and their prices are at [theboardgamedb.com/pricing](https://theboardgamedb.com/pricing). - **Pro and Enterprise**: limits and service levels by contract, on request at contact@theboardgamedb.com. ## What each plan includes | | No account | Free account | Hobby | Starter | Pro, Enterprise | | ------------------------------------------------- | ---------- | ------------ | ----- | -------------------- | -------------------------- | | Commercial use | no | no | yes | yes | yes | | Search and autocomplete | yes | yes | yes | yes | yes | | Games and editions | yes | yes | yes | yes | yes | | One barcode (EAN or UPC) at a time | yes | yes | yes | yes | yes | | The changes feed | no | no | yes | yes | yes | | Critics' reviews of a game | their number | their number | the full list | the full list | the full list | | Up to 100 barcodes or ids at once (`POST /lookup`) | no | no | no | yes | yes | | Covers shown on your own sites, as your own copies | no | no | no | yes, under conditions | yes, under conditions | | An export of the full catalog | no | no | no | no | by specific agreement only | In the [reference](https://docs.theboardgamedb.com/reference/), an endpoint that needs a paid plan carries its badge: Hobby plan on the changes feed (`GET /changes`) and on a game's critics' reviews (`GET /games/{id}/reviews`), Starter plan on `POST /lookup`. Everyone reads how many critics reviewed a game, in its `criticReviews.count`. Everything else is open to every plan. Commercial use is a product, a service, an app or a site that earns money. Nobody may link to or embed the addresses of our files on another site, on any plan: to show a cover you download it and serve your own copy, with credit, a link back to the game's page and respect for its publisher's rights. The conditions are in the [terms](https://theboardgamedb.com/terms#covers). Going over a limit never costs anything: the API answers `429` until the limit starts again, and nothing is billed automatically. The same numbers, as JSON, with your own limits when you send a token: ```sh curl "https://api.theboardgamedb.com/v1/limits" ``` ## The headers Every counted answer carries: | Header | Meaning | | -------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- | | `X-RateLimit-Limit` | Your tightest limit: the day's on a paid plan, the week's without one. | | `X-RateLimit-Remaining` | What is left of it. | | `X-RateLimit-Reset` | When it starts again, in seconds since 1970. | | `x-ratelimit-weekly-limit`, `x-ratelimit-weekly-remaining`, `x-ratelimit-weekly-reset` | The same for the week. | | `x-ratelimit-weekly-detail-*` | The same for the games read this week, on `GET /games/{id}`. | ## When you are refused Beyond a limit the API answers `429` with a `retry-after` header (seconds to wait) and the code `rate_limited` (a minute's or a day's limit) or `weekly_limit` (a week's). The refusal also says where higher limits are: `links.pricing` (the [plans and prices](https://theboardgamedb.com/pricing)) and `links.token` (the account page, for a free API token) in its body, and a `Link: ; rel="payment"` header: ```ts async function get(url: string): Promise { for (let attempt = 0; attempt < 3; attempt++) { const response = await fetch(url); if (response.status !== 429) return response; const wait = Number(response.headers.get("retry-after") ?? 60); const { code } = await response.json(); if (code === "weekly_limit" || wait > 120) return response; // Not worth waiting for. await new Promise((resolve) => setTimeout(resolve, wait * 1000)); } return fetch(url); } ``` ```python def get(url, **params): for _ in range(3): response = requests.get(url, params=params, timeout=10) if response.status_code != 429: return response wait = int(response.headers.get("retry-after", "60")) if response.json()["code"] == "weekly_limit" or wait > 120: return response time.sleep(wait) return requests.get(url, params=params, timeout=10) ``` ## Caching - **Catalog answers** are cached by us for up to five minutes, so a change can take that long to show. Search and suggestion answers are cached for everyone until the catalog changes, and a cached answer is not counted against your limits. - **Images** never change at a given address: keep them as long as you like. - **On your side**, keep a game you show for a day before reading it again; keep search results for a few minutes; keep the `id` of a game for good. - **Do not** walk the whole catalog game by game: `GET /games` lists games a page at a time with their summaries, and `GET /index/games` gives names and slugs by the hundred. ## Terms Using the API and what it returns is subject to the [terms](https://theboardgamedb.com/terms#api): the licence of the data and texts is CC BY-NC 4.0 ([details](https://theboardgamedb.com/terms#license)): credit us as **Data from theboardgamedb.com** with a link to https://theboardgamedb.com (or to the game's page). Commercial use is not allowed without an account or with a free account; it is allowed from the Hobby plan up. An export of the full catalog is only by specific agreement. --- # 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). :::