
boardgamearena-mcp
io.github.chrischall/boardgamearena-mcp
Board Game Arena for Claude — your tables, game state, advice and confirmed moves via your session
Documentation
boardgamearena-mcp
Board Game Arena MCP server for Claude. It reads your tables, whose turn it is, game state and history. For Can't Stop, Pickomino, Downforce and 6 nimmt! it can advise on a move and, after you confirm, send it.
This project was developed and is maintained by AI (Claude Code). Use at your own discretion.
Ranked play: read this first
Board Game Arena's rules treat outside assistance in RANKED games as cheating. That
includes advice from this server. Use the advisor and move tools to learn the games, or
at friendly / unranked tables. Every advisor and move tool says so in its
description. Every move preview says whether the table is ranked: unranked in BGA's
table record, where "0" means ranked. When BGA doesn't say, the preview treats the
table as ranked.
How it works
Board Game Arena has no public API for players, so the server uses the same requests the BGA website does, with your session (cookies plus a per-session request token). It gets that session in one of two ways:
- Direct sign-in (the default). Set
BGA_USERNAMEandBGA_PASSWORDand the server signs in to boardgamearena.com itself, on the first call, using BGA's own password sign-in. No browser is needed, so it also works hosted, with your computer off. - Browser bridge (the fallback when those are not set). Every request runs in
your already-signed-in boardgamearena.com tab, relayed by the
ContextMint Bridge extension over
the fetchproxy bridge (
127.0.0.1:37149). Your password never leaves the browser.
The direct sign-in needs a BGA password. If you sign in to BGA with Google, Apple or Facebook, set a password in your BGA account first, or use the bridge. A wrong password is never retried: BGA locks sign-in after 3 wrong attempts, so the server stops and says which variables to fix. Fix them and restart.
Setup
-
Add the server to your MCP client, with your BGA sign-in:
{ "mcpServers": { "boardgamearena": { "command": "npx", "args": ["-y", "boardgamearena-mcp"], "env": { "BGA_USERNAME": "your-username", "BGA_PASSWORD": "your-password" } } } } -
Call
bga_healthcheck. It signs in and reports whether that worked.
Running from a clone? Copy .env.example to .env in the repo root and fill in the
two values instead of putting them in the client config. .env is git-ignored, and real
environment variables win over it. An installed package (npx, .mcpb) does not read it.
To use the browser bridge instead, leave out the env block, install the ContextMint
Bridge extension and sign in to https://boardgamearena.com in that browser. On the first
bga_healthcheck you get a pair code; approve it in the ContextMint Bridge popup. You only
do this once; the pairing persists. After that, the healthcheck tells you which hop is
broken, if any: the bridge, the extension pairing, or your BGA sign-in.
| Variable | Required | |
|---|---|---|
BGA_USERNAME | no | Your BGA username (or email). With BGA_PASSWORD, the server signs in directly. |
BGA_PASSWORD | no | Your BGA password. Leave both unset to use the browser bridge. |
BGA_WS_PORT | no | Bridge mode: override the fetchproxy WebSocket port (default 37149). |
BGA_PLUGINS_DIR | no | Directory of extra game plugins (.js / .mjs) to load at startup (default ~/.boardgamearena-mcp/plugins). See Game plugins. |
Nothing else needs configuring. A rejected password or a signed-out browser shows up on the first call, with a message saying what to fix.
Hosted (claude.ai connector)
The server can also run on mcp-host as a claude.ai custom connector. When you connect, the authorize page asks for your own Board Game Arena username and password. Each person who connects gets their own server process, signed in as them, and no browser is involved. A wrong password is not retried: reconnect with the right one.
Tools
| Tool | What it does |
|---|---|
bga_healthcheck | Checks your BGA sign-in end to end (and, in bridge mode, the bridge and the extension pairing) |
bga_list_tables | Your tables in play: game, ranked or not, players, progression and whose turn (view: "brief" gives one line per table, your turn first) |
bga_get_table | One table record: status, ranked flag, game server, players, game page URL, and why it ended once archived |
bga_get_game_state | The live state: state name, possible actions and their args, whose turn, scores, plus the game's own fields as BGA sends them |
bga_game_data | Any game: its own data (board, circuit, pieces, private hands) as the seat to act — an outline to find where things are, then any dotted path in full (e.g. Heat's circuitDatas.corners, each corner's speed limit) |
bga_search_game_code | Any game: search its client code for a field or word, to learn what the data means from how the game uses it |
bga_game_actions | Any game: how it sends each action (the argument names, which are JSON, and the game's code around the call), read from the game's own client code. With bga_get_game_state and bga_perform_action it plays games no typed tool covers |
bga_game_rules | Any game: what it is, its ratings and tie-breaker, this table's settings with what each means, the rules summary and strategy tips from the BGA wiki as text, and the most-liked rulebooks and videos |
bga_get_history | The game log as text, newest moves with last |
bga_cantstop_advise | Can't Stop: the board per column, the exact chance the next roll busts, the dice choices ranked, and whether to continue or stop (rule of 28 plus the one-roll expectation) |
bga_cantstop_choose_dice | Can't Stop move: pick a dice pairing |
bga_cantstop_continue | Can't Stop move: roll again or stop and save progress |
bga_cantstop_confirm_bust | Can't Stop move: acknowledge a bust |
bga_cantstop_play_recommended | Can't Stop move: play the advisor's pick for whatever decision is pending. Refused on ranked tables |
bga_pickomino_advise | Pickomino: pure maths, no table read. Ranks which face to keep by exact expected worms, and says whether to stop or roll on |
bga_pickomino_roll | Pickomino move: roll the remaining dice |
bga_pickomino_take_die | Pickomino move: keep every die of one face |
bga_pickomino_take_tile | Pickomino move: take a tile from the grill or steal an opponent's top tile |
bga_pickomino_play_recommended | Pickomino move: play the advisor's pick (roll, keep a face, or take a tile), with the position read from the game. Refused on ranked tables |
bga_downforce_bid | Downforce move: bid a card in the auction, or pass |
bga_downforce_play_speed_card | Downforce move: play a speed card |
bga_downforce_move_car | Downforce move: move a car |
bga_downforce_decline_move | Downforce move: decline a movement |
bga_downforce_choose | Downforce move: keep a power, choose a joker colour, bet colour, colour to remove, or the movement order |
bga_sechsnimmt_advise | 6 nimmt!: pure maths, no table read. Ranks your hand by the bullheads each card is expected to take this turn |
bga_sechsnimmt_play_card | 6 nimmt! move: choose the card to play (by its number) |
bga_sechsnimmt_take_row | 6 nimmt! move: take a row when your card is below every row |
bga_sechsnimmt_play_recommended | 6 nimmt! move: play the advisor's card, or take the cheapest row, with the rows and hand read from the game. Refused on ranked tables |
bga_wait_for_turn | Any game: wait (polling) until it is your move, the game ends, or a timeout |
bga_play_recommended | Any game with an advisor (Can't Stop, Pickomino, 6 nimmt!, Heat): play the advisor's move for whatever decision is pending — the game is read from the table. Refused on ranked tables |
bga_perform_action | Any game: send any named action with raw args, as an escape hatch for actions no typed tool covers |
Moves are confirm-gated. The first call sends nothing. It returns a preview and a
confirmToken: the table, the game, the move, the current state, and whether the table
is ranked. Repeat the call with that token to send the move. A token is bound to the
table's move number, so one approved before the game moved on is refused. Each typed move
tool refuses when it is clearly someone else's turn. If a move gets no answer from BGA,
the result's status is unknown: the move may have been played. Re-read the table with
bga_get_game_state before you try again.
Which moves are live-verified. On 2026-12-01 two whole hot-seat games verified the
request format and these moves: Can't Stop's dice choices and continue / stop (130
moves, bga_cantstop_play_recommended), and Pickomino's roll, keep, take a grill tile
and steal (bga_pickomino_play_recommended). A third, a Downforce race, verified the
auction (bid and pass), speed cards, car moves, joker colours and bets. A fourth, 6 nimmt!
(135 moves, bga_sechsnimmt_play_recommended), verified playing a card and taking a row.
Confirming a Can't
Stop bust, Downforce's decline / power / colour to remove / movement order, and the
generic action still come only from each game's client code:
make your first one at a friendly / unranked table, then check the game page.
Hot seat. At a hot-seat table, the move tools play whichever of your seats is to move
(BGA's testuser), and bga_wait_for_turn counts every one of them as your turn. Where
everyone acts at once (a 6 nimmt! card, a Downforce auction), your own seat plays first,
then each hot-seat seat still to act, from its own hand.
Pickomino's moves fill in lastop (the last game operation) from the table.
Reads return player names, table options and game-log text written by other players. They come back inside an untrusted-data envelope.
The endpoints, request token, envelope and every move action are documented in
docs/BGA-API.md.
Game plugins
Each game this MCP knows (its actions, data notes, position reader, advisor and typed
tools) is one plugin file. The built-in ones are src/plugins/<game>.ts. Drop a .js /
.mjs plugin into ~/.boardgamearena-mcp/plugins (or BGA_PLUGINS_DIR) and restart:
bga_get_game_state, bga_game_actions, bga_perform_action and bga_play_recommended
pick the game up, and its typed tools are registered with the ranked-play warning and the
confirm flow enforced. A plugin for a built-in game overrides it. A broken plugin is
skipped with a warning on stderr. docs/PLUGINS.md documents the
interface, with a minimal example in docs/plugins/example.mjs.
Without the server: the boardgamearena-fpx skill
skills/boardgamearena-fpx gives the same reads
from a shell, using the fpx CLI and a
sourceable helper (scripts/bga.sh), with jq recipes for each endpoint. It also has
a preview-then---send move helper.
Development
npm install
npm run build # regenerate the built-in plugin index, tsc --noEmit + esbuild bundle → dist/bundle.js
npm test # typecheck + vitest (all mocked; no network)
npm run typecheck
License
MIT
boardgamearena-mcpnpm install boardgamearena-mcpRelated Servers
io.github.chrischall/accessoticketing-mcp
Read accesso mobile ticket links: orders, admissions, barcodes and Google Wallet passes.
io.github.chrischall/alexa-mcp
Amazon Alexa for Claude — Echo devices, announcements, routines, smart home, lists
io.github.chrischall/alltrails-mcp
Unofficial AllTrails MCP for Claude — search trails, get details, reviews, photos, saved lists