Skip to main content
Glama
boardgame-collection-mcp-server

boardgame-collection-mcp-server

boardgame-collection-mcp-server

A local-first MCP server over a plain-file board game log. Plain files in, chat-ready text out: catalog the games on your shelf, record plays with winners, and let an AI agent answer the questions you actually ask on game night — what did we play lately, which boxes are still unplayed, and what fits five players on a weeknight?

Built and published by Asdale Dynamics, LLC as part of a beginner-friendly collection of open-source tools and MCP servers. Written in plain English, step by step, never condescending.

Physical board games only — this is not for video game backlogs, and it's not a party-game kit. If you want those, they live elsewhere.

Why a plain file?

The whole database is one human-readable JSON file. You can:

  • open it in any editor and fix a typo,

  • keep it in git (it's your game history!),

  • email it to a friend, or

  • start fresh by deleting it.

No daemon, no cloud, no accounts, no secrets. The server just reads and writes that file.

Related MCP server: agent-board

Quick start

pip install -e .

python -m boardgame_mcp.server            # stdio MCP server (what clients expect)
# or: boardgame-mcp

By default the log lives at ./boardgames.json. Choose your own:

python -m boardgame_mcp.server --log ~/Documents/boardgames.json
# or: BOARDGAME_LOG=~/Documents/boardgames.json boardgame-mcp

On a weeknight when nobody has edited the file yet, it just starts empty.

Try it with example data

cp examples/example_collection.json boardgames.json && python -m boardgame_mcp.server

Connect it to an MCP client

Point any MCP-capable client (e.g. Claude Desktop, another agent host) at the command above. Example config entry:

{
  "mcpServers": {
    "board-game-collection": {
      "command": "python",
      "args": ["-m", "boardgame_mcp.server", "--log", "/path/to/boardgames.json"]
    }
  }
}

There's no network listener by default; everything stays on your machine.

The tools an agent gets

Tool

What it does

add_game

Catalog a title: player range, typical play time, optional weeknight flag and notes

list_games

The whole catalog, with play counts and last-play dates

search_games

Loose text search over titles and ids

remove_game

Take a game (and its history) out of the log

record_play

One session: date (default today), players, optional winner, actual minutes

recent_plays

"What did we play recently?" — newest first, weekday and winner included

unplayed_games

"What's still on the shelf?" — never played

weeknight_picks

"What fits 5 people on a weeknight?" — player range + time budget (default 90 min), quickest first

collection_summary

Totals, most-played title, top winner

"What fits a weeknight" means the game seats the group and its typical play time is within the default 90-minute budget. If you stamp a game with weeknight: true yourself, that flag wins — and the catalog output will show every kind.

Game ids are friendly slugs (Wingspan: Oceania → wingspan-oceania), so the file is easy to read and edit by hand. Play records validate themselves: dates must be real calendar dates, winners must be among the recorded players, and a solo play of a 3-of-5-player game gets a polite no.

Example: chat-ready answers

Ask an agent "what fits five players on a weeknight?" and it gets back text like:

4 titles fit 5 players in under 90 minutes (quickest first):
- **Tick Tock Brrr Baah** · 3-6 players · ~30 min
- **The Crew: Mission Deep Sea** · 2-5 players · ~45 min
- **Heat: Pedal to the Metal** · 1-7 players · ~60 min
- **Wingspan** · 1-5 players · ~60 min

The log file

{
  "_updated": "2026-11-07T13:20:00",
  "games": [
    {"id": "wingspan", "title": "Wingspan", "min_players": 1, "max_players": 5,
     "play_minutes": 60, "weeknight": null, "notes": "Europe expansion added."}
  ],
  "plays": [
    {"game_id": "wingspan", "date": "2026-10-20",
     "players": ["Dana", "Riley", "Priya"], "winner": "Priya", "minutes": null}
  ]
}

winner stays empty for co-op wins and honest ties. The example collection uses fictional player names only — put in whatever names you like; the file stays on your disk.

Tests

pip install -e ".[dev]"
pytest            # 69 tests: catalog rules, stats, formatting, tools, live stdio round-trip

The suite covers validation (player ranges, dates, winners), load/save round-trips of hand-corruptible files, the report logic (recent plays, shelf, weeknight picks, leaderboards), every text formatter, all nine tools through the MCP layer, and a real subprocess stdio handshake with a genuine MCP client.

Project layout

boardgame_mcp/
  catalog.py    # Game, Play, Collection, JSON load/save, validation
  stats.py      # recent plays, shelf, weeknight picks, counts, leaderboards
  text.py       # chat-ready formatting (local files in, chat text out)
  server.py     # nine MCP tools + stdio entry point
examples/
  example_collection.json   # ~8 games and plays to explore with
tests/          # pytest suite, incl. real stdio integration

Known limits

  • One file, one machine: no locking, so two servers on the same log could clobber each other (keep to one at a time).

  • Weeknight fit is judged by the typical (often box-recommended) play time; it doesn't learn that your Avalon group takes twenty minutes to pick a leader — that's what the optional minutes field on each play is for, for later tuning.

License

MIT — see LICENSE. Copyright (c) 2026 Asdale Dynamics, LLC.

Available Tools

9 tools
add_gameB

Add a board game to the catalog: title, supported player count, typical play time in minutes. weeknight (optional) is a manual flag meaning "fine for a weeknight"; notes are free text.

Inputs: title (required), max_players (required), min_players (required), play_minutes (required), +2 more. Returns: result

collection_summaryA

Quick totals: games cataloged, plays recorded, top game and top winner.

Inputs: no named parameters. Returns: result

list_gamesA

List every game in the catalog with play counts and last-play dates.

Inputs: no named parameters. Returns: result

recent_playsB

The most recent plays, newest first, with players and winners.

Inputs: limit. Returns: result

record_playA

Record one session of a game (title or id). date is YYYY-MM-DD (defaults to today). players is an optional list of names; winner (optional) must be on that list; minutes is actual table time.

Inputs: query (required), date, winner, minutes, +1 more. Returns: result

remove_gameA

Remove a game (by title or id) and its play history from the log.

Inputs: query (required). Returns: result

search_gamesB

Find games whose title or id contains the given text.

Inputs: query (required). Returns: result

unplayed_gamesA

Games in the catalog that have never been played (the shelf).

Inputs: no named parameters. Returns: result

weeknight_picksA

Which titles fit a group size within a weeknight time budget (default: 5 players, 90 minutes). Quickest first.

Inputs: max_minutes, player_count. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 9 tools

    Disambiguation4/5

    Each tool has a distinct purpose: mutations (add_game, remove_game, record_play) versus reads (list_games, search_games, recent_plays, unplayed_games, weeknight_picks, collection_summary). The read tools are all retrieval-oriented, and search_games vs list_games and unplayed_games vs list_games could be momentarily confused, but descriptions clarify the semantics (substring match vs full list vs unplayed subset). No two tools do the same thing.

    Naming Consistency4/5

    All snake_case with a readable, implicit convention: action tools use verb_noun (add_game, remove_game, record_play, search_games, list_games) while view/query tools use noun phrases (recent_plays, unplayed_games, weeknight_picks, collection_summary). This split is coherent but the mix of verb-led and noun-led names is a minor deviation from a strict single pattern.

    Tool Count5/5

    Nine tools is well-scoped for a board game collection tracker, covering catalog management, play logging, and a few useful views. Each tool earns its place with no redundant filler.

    Completeness3/5

    Create/read/delete for games and record/read for plays are covered, but there is no update_game (e.g. editing notes, player count, or the weeknight flag set at add time) and no way to delete or edit an individual play. There is also no per-game detail/history view, only global recent_plays, which leaves notable lifecycle gaps.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to read, write, query, and manage JSON data files with automatic ID and timestamp generation.
      6
      14 npm
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agent sessions to read, search, and post durable messages to a private local JSON-file message board, letting them share preferences, lessons, warnings, questions, and replies without a cloud service or database.
      10 npm
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to read and write a self-hosted game journal over MCP, including managing games, play chapters, ratings, tags, platforms, metadata lookups, and personalized recommendations through typed tools, prompts, and resources.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to query and manage a unified multi-platform game library, including playtime, achievements, ratings, backlog status, recommendations, duplicate reconciliation, and genre enrichment through MCP tools.
      MIT