Skip to main content
Glama
mcp-server-steam-backlog

mcp-server-steam-backlog

by SDNick484

mcp-server-steam-backlog

An MCP server for Steam Backlog Triage, the self-hosted dashboard for working through a Steam backlog with an eye on the Steam Deck. It lets an MCP client such as Claude answer "what should I play tonight on the Deck, under 10 hours?" in one call, search and filter the library with the dashboard's filters, and triage games into lanes, add notes, reorder Up next and refresh the library, all saved to the same dashboard. Optionally, it also knows what your Steam Deck is running right now (see Now playing on the Steam Deck).

Status: alpha. Tested against a wire-level fake of the backlog server, against steam-backlog-triage's real backlog_server.py (both today's version and a prototype of the API it's built for), and its installer against a stubbed Alpine run. Some features need a newer steam-backlog-triage (see API versions); everything else works with the current one.

This project isn't affiliated with Valve, HowLongToBeat or ProtonDB.

How it works

MCP client ──stdio, or HTTPS through Cloudflare Access──▶ mcp-server-steam-backlog
                                                               │  HTTP, loopback only
                                                               ▼
                                         backlog_server.py (steam-backlog-triage)
                                                               │  one writer: lock + atomic writes
                                                               ▼
                                   steam_backlog.json, triage.json, notes.json, order.json
  • The MCP server is a client of backlog_server.py's JSON API. It never opens the backlog's files, so there's still one writer, and the dashboard and Claude never race each other. It runs as its own user and can't read the backlog's keys.

  • The couch score is the dashboard's score(), ported term by term and checked against shared test vectors generated from backlog.html itself, so Claude and the dashboard never disagree about the best pick. backlog://scoring explains it.

  • The interface is specified in docs/backlog-api-contract.md.

Related MCP server: steam-mcp

Tools

Tool

What it does

backlog_get_overview

Start here: library size, never/tried/played, Deck ratings, the backlog by Deck rating × length, lane counts, Up next length, export age, data coverage

backlog_find_games

Search and filter with the dashboard's filters (genres, Steam tags spelled loosely, publishers and developers, Steam review levels, HLTB length, ProtonDB, Metacritic min and max, year, Deck rating, controller, play state, lane, notes); sort and page; relaxes filters instead of answering "not found"

backlog_get_game

Everything about one game, with its score breakdown and store link

backlog_suggest_picks

Couch picks with the same filters, each with a score breakdown to explain it

backlog_get_stats

Breakdowns of the library by dimension (genre, publisher, developer, review level, Deck rating, year and more) and metric, the same ones the dashboard's Ask uses

backlog_get_next_queue

The Up next lane in order, with notes

backlog_set_lane

Move 1–50 games to next, someday, skip, done, or out of every lane

backlog_set_note

Write, replace or clear a game's note

backlog_reorder_next

Move a game within Up next, or set the order

backlog_start_export

Refresh the library (runs on the backlog server; minutes to an hour)

backlog_get_export_status

How the refresh is going, with redacted log lines

backlog_now_playing

Only with MQTT_HOST set: what each Steam Deck is running, joined to the library by app id (lane, note, Up next position, playtime, HLTB main)

Resources: backlog://scoring (how the score works) and backlog://game/{appid}. Prompts: triage_session (walk untriaged games one at a time) and pick_for_tonight.

Not exposed, on purpose: replacing the library, deleting data, anything touching keys or settings.

Safety design

  • Writes never guess. A game argument is an app id or an exact name. A name that matches several games (two called "DOOM") or none returns candidates and changes nothing.

  • Confirmation for bulk and destructive-feeling changes. A single game the user named can move to any lane, done and skip included. Moving more than five games, or replacing an existing note, returns needs_confirmation with the planned change until the call is repeated with confirmed=true. The server instructions also ask the model to confirm skip/done for games it inferred.

  • Bounded. At most 50 games per call; a token bucket limits writes (60 a minute by default) and exports (two, then one per five minutes), so a looping agent can't churn the files.

  • Reversible. Every write returns what it replaced: previous lanes, the previous note, the previous Up next order.

  • No lost updates. Reorders use If-Match; if the dashboard reordered at the same moment, the server re-reads once and retries, then reports a conflict rather than overwriting.

  • Data isn't instructions. Game names and notes only ever appear in their own fields.

  • Private. The export's SteamID and persona are dropped when it's parsed; SteamIDs are redacted from every log line even with --no-redact. Errors to the client are generic and actionable; details go to the log.

  • Dry run. BACKLOG_DRY_RUN=1 (or --dry-run): writes validate and report, and send nothing.

Now playing on the Steam Deck

Optional. With steam-deck-ha-bridge on the Deck, the server can subscribe to the Deck's state on your MQTT broker and add one read-only tool, backlog_now_playing: "what am I playing?", answered with the game's lane, note, Up next position, playtime and length from the library, so Claude can offer to move it to next or done.

steam-deck-ha-bridge ──publish, retained──▶ MQTT broker ──subscribe, read-only──▶ mcp-server-steam-backlog
  deck-ha-bridge/<node>/state          (JSON, docs/state-schema.md in the bridge's repo)
  deck-ha-bridge/<node>/availability   (online / offline)
  • Off unless MQTT_HOST is set. Without it there's no MQTT connection and the tool isn't listed.

  • Never publishes, not even a last will. Give its login read access to the bridge's topics and nothing else. With Mosquitto's ACL file, for example:

    user mcp-steam-backlog
    topic read deck-ha-bridge/#

    mcp-server-steam-backlog doctor --probe-acl checks it: it publishes one empty, non-retained message under deck-ha-bridge/acl-probe/ and warns if the broker lets it through. (An MQTT 3.1.1 broker can't tell a client its publish was refused, so the probe subscribes to its own topic and watches for the message to come back.) Some brokers grant every login full access whatever their ACL says; the probe is how you find out.

  • By app id, never by name. Non-Steam shortcuts (app ids of 2^31 and up) and Steam games that aren't in the library are reported as such.

  • Stale is flagged. A Deck that went offline, a lost broker connection, or a malformed message comes back with stale: true and a reason, instead of being presented as live.

  • Retained messages arrive right after subscribing, so the first call after a start waits up to three seconds for them. The connection retries with backoff from 1 to 60 seconds.

  • doctor checks the login, the subscription and that a retained state arrives within 5 seconds.

API versions

Feature

API 1 (steam-backlog-triage today)

API 2 (after its API PR)

Reading, filtering, picks, triage, notes, reorder

✓

✓

Library cached and revalidated with ETags

refetched at most once a minute

✓

Previous values read atomically

read just before writing (flagged atomic: false)

✓

Reorders safe against a concurrent dashboard edit

no (flagged protected: false)

✓

Start an export, see its status

"not available"

✓

mcp-server-steam-backlog doctor says which the server has.

Install

You need steam-backlog-triage running (its backlog_server.py on port 8484).

Trying it without the backlog

pip install git+https://github.com/SDNick484/mcp-server-steam-backlog
mcp-server-steam-backlog simulate --port 8484      # a fake backlog server with a sample library
# in another terminal:
mcp-server-steam-backlog doctor
mcp-server-steam-backlog call suggest_picks count=3

simulate --api 1 imitates today's steam-backlog-triage.

Claude Code or Claude Desktop (stdio)

On the machine that runs the backlog, or with BACKLOG_URL pointing at it over a private network:

claude mcp add steam-backlog -e BACKLOG_URL=http://127.0.0.1:8484 -- \
  uvx --from git+https://github.com/SDNick484/mcp-server-steam-backlog mcp-server-steam-backlog

(Once it's published to PyPI, plain uvx mcp-server-steam-backlog works.) Or in a client's JSON config:

{
  "mcpServers": {
    "steam-backlog": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/SDNick484/mcp-server-steam-backlog", "mcp-server-steam-backlog"],
      "env": { "BACKLOG_URL": "http://127.0.0.1:8484" }
    }
  }
}

On Alpine (OpenRC), next to the backlog

git clone https://github.com/SDNick484/mcp-server-steam-backlog.git
cd mcp-server-steam-backlog
sh deploy/alpine/install.sh "$PWD"
mcp-server-steam-backlog doctor
rc-update add mcp-server-steam-backlog default && rc-service mcp-server-steam-backlog start

The installer creates the mcp-steam-backlog user, a venv in /opt/mcp-server-steam-backlog, settings in /etc/mcp-server-steam-backlog/env (kept on re-runs), and an OpenRC service on 127.0.0.1:8486/mcp/backlog. Re-running it upgrades the code. To edit the settings: vim /etc/mcp-server-steam-backlog/env, then rc-service mcp-server-steam-backlog restart.

systemd hosts: see contrib/systemd/. A non-root container: deploy/docker/Dockerfile (optional).

Remote access: HTTP behind Cloudflare Access

For Claude on the web and mobile, the service speaks Streamable HTTP and checks a Cloudflare Access assertion on every request (remote.py, shared with the sibling servers). With no Access settings it answers only requests that start on the same machine.

  1. Snapshot first if this shares a container with other services.

  2. In Cloudflare Zero Trust, create an Access application for the MCP path (for example backlog.example.com/mcp/backlog) with Managed OAuth, and note its AUD tag.

  3. Add a tunnel rule sending ^/mcp/ to http://localhost:8486, above any broader rule for the same hostname.

  4. Put the settings in the env file (placeholders shown):

    MCP_PUBLIC_HOSTS=backlog.example.com
    CF_ACCESS_TEAM_DOMAIN=example.cloudflareaccess.com
    CF_ACCESS_AUD=<the Access application's AUD tag>

    then rc-service mcp-server-steam-backlog restart and mcp-server-steam-backlog doctor.

  5. Check that an unauthenticated request gets Access's 401 (with WWW-Authenticate), not a 302 to a login page:

    curl -si -X POST https://backlog.example.com/mcp/backlog | head -5

    If it redirects, give the MCP its own hostname instead.

  6. Add https://backlog.example.com/mcp/backlog as a custom connector in Claude.

Settings

Variable

Default

BACKLOG_URL

http://127.0.0.1:8484

The backlog server

BACKLOG_DRY_RUN

off

Report writes without sending them

BACKLOG_WRITE_RATE

60

Writes per minute (1–600)

BACKLOG_DEBUG

off

Debug logging

BACKLOG_LOG_UNREDACTED

off

Show LAN addresses in logs (secrets and SteamIDs stay hidden)

MCP_HTTP_BIND, MCP_HTTP_PORT, MCP_HTTP_PATH

127.0.0.1, 8486, /mcp/backlog

The HTTP service

MCP_PUBLIC_HOSTS, CF_ACCESS_TEAM_DOMAIN, CF_ACCESS_AUD, MCP_ALLOWED_EMAILS

Cloudflare Access

MQTT_HOST

unset (now playing off)

The MQTT broker the Deck bridge publishes to

MQTT_PORT

1883, or 8883 with TLS

MQTT_USER, MQTT_PASSWORD

A read-only login; the password is redacted from every log line

MQTT_TLS

off

TLS with the system's CA certificates

DECK_STATE_TOPIC

deck-ha-bridge/+/state

The bridge's state topic; availability is the same with availability

Checking it with the MCP Inspector

npx @modelcontextprotocol/inspector mcp-server-steam-backlog
  • Eleven tools listed, each with a title, annotations and an output schema

  • backlog_get_overview returns the library size and export age

  • backlog_suggest_picks returns picks with score_breakdown

  • backlog_set_lane with games=["DOOM"] (or any duplicated name) returns not_resolved and changes nothing

  • backlog_set_lane with six games returns needs_confirmation; with confirmed=true, done

  • backlog_set_note over an existing note returns needs_confirmation

  • With BACKLOG_DRY_RUN=1, writes return dry_run and the dashboard doesn't change

  • backlog://scoring reads; backlog://game/620 reads for a game in the library

  • Prompts triage_session and pick_for_tonight render

  • With MQTT_HOST set: a twelfth tool, backlog_now_playing, answers with the Deck's state; without it, it isn't listed

Development

pip install -e ".[dev]"
ruff check . && ruff format --check . && mypy && pytest --cov
  • The contract tests run against a fake, against the fake imitating API 1, and against a real backlog_server.py: BACKLOG_REF=<ref> clones steam-backlog-triage at that ref (default: steam-backlog-triage main after its CLAUDE.md and pin PR, 4d0b53c, set in tests/conftest.py), BACKLOG_CHECKOUT=<dir> uses a local checkout. See docs/handoff-pr-a.md.

  • tests/fixtures/state_playing.json and state_idle.json are copied from steam-deck-ha-bridge's tests/fixtures (its code produces them). tests/fake_mqtt.py is a small MQTT 3.1.1 broker for the now-playing and doctor tests.

  • tests/fixtures/score_vectors.json comes from node scripts/gen_score_vectors.mjs path/to/backlog.html. CI regenerates it and fails if the page's score() changed.

  • src/steam_backlog_mcp/backlog_query.py is the dashboard's query layer, copied verbatim from steam-backlog-triage at the commit in query.lock. Don't edit it here: change it there, then python scripts/sync_query.py --update. python scripts/sync_query.py --check (CI runs it with --require-online) fails on an edited copy, and on a lock whose commit or sha256 doesn't match GitHub; without --require-online, a network error skips the online half with a notice.

  • mcp-server-steam-backlog --version (and doctor) show the build commit for wheels built from git archive, and unknown otherwise.

  • Files shared with the sibling MCP servers (remote.py, logsafe.py, lookup.py, ratelimit.py, tools.py, tasks.py and their tests) come from mcp-server-shared; change them there, then python scripts/sync_shared.py --update.

License

MIT

Available Tools

10 tools
backlog_find_gamesFind gamesA
Read-only

<use_case> Search and filter the whole Steam library with the dashboard's filters: name or genre words, genres, HowLongToBeat length, ProtonDB tier, Metacritic, release year, Steam Deck rating, controller support, play state, triage lane (list/bucket/shelf) and notes. Use it to find a game's app id before changing it, or to answer questions like "which Verified RPGs have I never played?". </use_case> <important_notes>

  • Filters combine with AND. Games with no data for a filter are excluded unless include_unknown.

  • length uses the dashboard's presets on one HLTB measure; hours_min/hours_max set an exact range.

  • When nothing matches, it returns the closest games instead (exact=false) and says which filters it dropped (relaxed) or that it matched the name loosely (fuzzy_query). Tell the user that.

  • To recommend what to play, use backlog_suggest_picks instead: it ranks and explains. </important_notes> backlog_find_games(genres=["RPG"], deck=["verified"], play_state=["never"], sort="short")

Inputs: deck, lane, sort, limit, +18 more. Returns: exact, games, detail, offset, +4 more

backlog_get_export_statusExport statusA
Read-only

<use_case> How the library refresh is going: running, finished or failed, with the phase (deck, details, proton, hltb), progress, elapsed time, the last lines of its log, and whether the library changed. </use_case> <important_notes>

  • available=false: this backlog server is too old to run exports from here.

  • After a successful export, the other tools see the new library automatically. </important_notes> backlog_get_export_status()

Inputs: no named parameters. Returns: lines, phase, state, detail, +10 more

backlog_get_gameGet one gameA
Read-only

<use_case> Everything about one game: playtime and Deck playtime, last played, Steam Deck rating, ProtonDB tier and report count, HowLongToBeat times, genres, Metacritic, controller support, triage lane, note, position in Up next, couch score with its breakdown, and the Steam store link. </use_case> <important_notes>

  • game is an app id or the exact name. If the name matches several games or none, found is false and unresolved lists candidates (reason ambiguous/no_match): pick one by app id or ask the user.

  • null fields are unknown, not zero. </important_notes> backlog_get_game(game="Hades")

Inputs: game (required). Returns: game, found, unresolved

backlog_get_next_queueUp next queueA
Read-only

<use_case> The Up next lane (queue, play soon) in the user's order, with each game's note. </use_case> <important_notes>

  • Same order as the dashboard: the saved order first, then any unordered Up next games by score.

  • Change the order with backlog_reorder_next; add or remove games with backlog_set_lane. </important_notes> backlog_get_next_queue()

Inputs: no named parameters. Returns: queue, detail

backlog_get_overviewBacklog overviewA
Read-only

<use_case> Start here. Summarizes the user's Steam library and backlog (pile of shame): how many games are never played, tried or played; Steam Deck ratings; the backlog by Deck rating and length; triage lane counts; the Up next queue length; how old the library export is; and how complete each data source is. </use_case> <important_notes>

  • coverage says how much data exists (e.g. hltb 0.8 = 80% of games have HowLongToBeat times). Low coverage means many unknowns, not bad games.

  • export.age_days: the library is as of the last export; offer backlog_start_export if it's stale and the user asks about recent purchases.

  • dry_run true: writes are simulated. </important_notes> backlog_get_overview()

Inputs: no named parameters. Returns: deck, grid, games, lanes, +8 more

backlog_reorder_nextReorder Up nextA
Idempotent

<use_case> Change the order of the Up next lane (queue): move one game to a position ("put Celeste first"), or give the order of several games. </use_case> <important_notes>

  • Give either game + position, or order; not both.

  • Only games already in Up next can be ordered; add a game with backlog_set_lane(lane="next") first.

  • Positions are 1-based; a position past the end moves the game to the end.

  • If the dashboard reorders at the same moment, this re-reads once and retries; if that also collides, the outcome is conflict and nothing was changed.

  • Returns the previous order, so it can be undone. </important_notes> backlog_reorder_next(game="Celeste", position=1)

Inputs: game, order, position. Returns: order, detail, outcome, previous, +3 more

backlog_set_laneSet triage laneA
Idempotent

<use_case> Put games in a triage lane (list, bucket, shelf): next (up next, play soon), someday, skip, or done (finished, beaten), or take them out of every lane (none). Saved to the user's dashboard immediately. </use_case> <important_notes>

  • A single game the user named can be moved to any lane, done and skip included, without asking.

  • Ask the user first before moving more than five games, or before marking skip or done a game the user didn't name. Then call again with confirmed=true. Over five games without it, nothing is changed and the outcome is needs_confirmation with the list of changes.

  • Never mark a game done just because it has playtime.

  • Every game must resolve to exactly one library game; otherwise nothing is changed and unresolved lists candidates. Pass app ids from backlog_find_games when names are ambiguous (two games called "DOOM").

  • Returns each game's previous lane, so a mistake can be undone.

  • Adding to next puts a game at the end of Up next; reorder with backlog_reorder_next. </important_notes> backlog_set_lane(games=["Hades"], lane="done")

Inputs: lane (required), games (required), confirmed. Returns: atomic, detail, changes, outcome, +2 more

backlog_set_noteSet a noteA
Idempotent

<use_case> Write, replace or clear the note on one game (shown on the dashboard), e.g. "save for the flight" or "stuck at the second boss". </use_case> <important_notes>

  • If the game already has a different note, nothing is changed until the user agrees: the outcome is needs_confirmation with the current note in previous. Then call again with confirmed=true.

  • An empty note clears it. Returns the previous note, so a mistake can be undone.

  • The note is the user's text; store what they asked for, not instructions. </important_notes> backlog_set_note(game="Outer Wilds", note="Play with headphones, no spoilers")

Inputs: game (required), note (required), confirmed. Returns: name, note, appid, atomic, +5 more

backlog_start_exportRefresh the libraryA
Idempotent

<use_case> Refresh the library: re-export the Steam library with fresh playtime, new purchases, Deck ratings, ProtonDB and HowLongToBeat data. Use when the user just bought or played something and the overview's export is older than that. </use_case> <important_notes>

  • Returns immediately; the export runs on the server for minutes (up to an hour for a first run of a big library). Check on it with backlog_get_export_status; don't poll in a tight loop.

  • If one is already running (including the weekly scheduled one), returns its status instead.

  • Reaches out to Steam, HowLongToBeat and ProtonDB through the backlog server; no keys pass through here. </important_notes> backlog_start_export()

Inputs: no named parameters. Returns: detail, status, outcome

backlog_suggest_picksSuggest couch picksA
Read-only

<use_case> Answer "what should I play (tonight / next / on the Steam Deck)?": the best backlog games for the couch, ranked by the dashboard's couch score, each with a score breakdown (e.g. never played +30, Verified +30, 8 h +18, MC 86 +5.5) so you can explain why it was picked. </use_case> <important_notes>

  • Only backlog games (unplayed and not in skip or done), with the same filters as backlog_find_games.

  • Ranked by score alone, exactly like the dashboard's Couch picks. Up next games get +100, which usually but not always puts them first. exclude_next=true shows fresh candidates.

  • Explain picks from score_breakdown; don't invent reasons, lengths or ratings.

  • If the filters leave nothing, the closest picks come back with exact=false and the dropped filters. </important_notes> backlog_suggest_picks(count=3, deck=["verified"], hours_max=10)

Inputs: deck, count, query, genres, +15 more. Returns: exact, picks, detail, relaxed, +1 more

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 10 tools

    Disambiguation5/5

    Each tool targets a distinct resource+action: search (find_games), single-game detail (get_game), summary (get_overview), recommendation (suggest_picks), queue read vs. reorder, note write, lane write, and export start vs. status. The descriptions explicitly cross-reference each other (e.g. find_games says to use suggest_picks for recommendations), eliminating the main potential overlap.

    Naming Consistency5/5

    All ten tools share the backlog_ prefix and follow a consistent snake_case verb_noun pattern (find_games, get_game, set_lane, reorder_next, start_export). No mixed conventions or vague verbs.

    Tool Count5/5

    Ten tools is well within the ideal 3-15 range and each maps to a clear, non-redundant capability for a backlog dashboard: read, filter, recommend, triage, annotate, order, and refresh. Nothing feels padded or missing a counterpart.

    Completeness4/5

    The lifecycle is well covered: overview, filtered search, per-game detail, ranked picks, lane transitions, note management (including clearing), queue ordering, and export start/status. Minor gaps exist (no dedicated lane-listing beyond filter-by-lane in find_games, no batch note operations), but agents can work around them.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Connects Claude to your Steam library via the Steam Web API. Query your games, playtime, recently played history, and store metadata using natural language. Zero-config install via npx steam-mcp.
      5
      24 npm
      6
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      An MCP server that connects AI assistants to the Steam Web API and storefront, enabling game library analysis, mood-based backlog recommendations, wishlist evaluation, and storefront searches.
      8
      12 npm
      MIT