Skip to main content
Glama
README.md
# steam-mcp

An [MCP](https://modelcontextprotocol.io) server (and a CLI, `steamctl`) that gives an AI agent the
Steam surface a game studio actually uses: store data, reviews, current players, news, community
discussions, the build each branch **really** serves, builds and branches, players, achievements,
leaderboards, sales, SteamPipe uploads, and every other publisher Web API method your key may call.

Built for a small studio running several Steam games with Claude Code; nothing in it is specific to
those games: everything game-specific lives in a JSON config.

| Layer | How | Key needed |
|---|---|---|
| **Store & community** | store API, `IUserReviewsService`, `ISteamUserStats`, `IStoreBrowseService`, events feed, community hub pages | none |
| **PICS** | forced `steamcmd +app_info_update 1` from a private steamcmd copy (falls back to the publisher API for prerelease apps, and to a labelled mirror) | none |
| **Publisher Web API** | `partner.steam-api.com`, locally or **executed on the server the key is allowlisted to, over SSH** | publisher key |
| **Financial API** | `IPartnerFinancialsService` sales, grouped by app / package / date / country / platform / type | financial key |
| **SteamPipe** | `steamcmd +run_app_build` with your builder account's cached login, as a detached job | builder login |

## Why the SSH transport

Publisher Web API keys are normally IP-allowlisted to a game server. An `ssh` key profile sends a
tiny bootstrap on the command line and the request script over stdin; the HTTPS call is made **on
that server**, the key is read there from its `.env` (or key file), redacted from everything, and only
the response comes back. Nothing is written on the server, there is no command-line length limit,
and one SSH round trip can carry several requests. Windows servers use PowerShell 5.1+; Linux
servers use `sh` + `curl` (`"shell": "sh"`).

## Install

```
uv tool install git+https://github.com/wjrosa/steam-mcp
claude mcp add steam -s user -e STEAM_MCP_CONFIG=/path/to/steam-mcp.json -- steam-mcp
```

On Windows, register the tool's Python instead of the `steam-mcp.exe` shim, so you can update the
package while sessions are running (a running `.exe` cannot be replaced):

```
claude mcp add steam -s user -e STEAM_MCP_CONFIG=C:\path\steam-mcp.json -- %APPDATA%\uv\tools\steam-mcp\Scripts\python.exe -m steam_mcp.server
uv pip install --python %APPDATA%\uv\tools\steam-mcp\Scripts\python.exe --reinstall-package steam-mcp <repo>   # update
```

With no config at all, the keyless tools (store, reviews, players, news, discussions, PICS) work for
any app id. `STEAM_WEB_API_KEY` / `STEAM_FINANCIAL_KEY` in the environment are picked up too.

## Config

```json
{
  "games": {
    "mygame": { "name": "My Game", "appid": 480, "aliases": ["mg"],
                "apps": { "demo": 481, "soundtrack": 482 }, "depots": [481], "packages": [1234],
                "store_item": 98765, "key": "mygame-box" }
  },
  "keys": {
    "mygame-box": { "ssh": "mygame-box", "env_file": "C:/api/.env", "env_key": "STEAM_WEB_API_KEY", "shell": "powershell" },
    "financial":  { "key_file": "~/.steam/financial-key" },
    "local":      { "env": "STEAM_WEB_API_KEY" }
  },
  "financial_key": "financial",
  "default_key": "mygame-box",
  "steamcmd": { "pics_dir": "~/.steam-mcp/steamcmd",
                "builder_exe": "C:/steamworks_sdk/tools/ContentBuilder/builder/steamcmd.exe",
                "builder_account": "my_builder" },
  "browser_lock": "~/.steam-mcp/steamworks-browser.lock",
  "read_only": false,
  "protect_default_branch": true,
  "promote_note": "Promote default-branch builds through our release gate."
}
```

Games are addressed by id, alias, name or app id; `mygame:demo` picks a related app.
A publisher key only covers the apps of **its own Steamworks group**: give each game the profile of
the group that owns it (`partner_key_coverage` tells you what a key covers; a 403 means wrong group).

## Tools (38)

- **Overview**: `game_snapshot` (players, review summary + latest reviews, latest news, threads waiting)
- **Store**: `store_app_details`, `store_items`, `store_package`, `store_search`, `steamspy_estimates` (third party)
- **Reviews**: `reviews_list` (since_days, languages, positive/negative, unanswered_only, paging), `reviews_summary`
- **Players & stats**: `players_current`, `achievements_global_percentages`, `achievements_schema`,
  `player_achievements`, `user_stats_set` (write), `leaderboards`
- **News & community**: `news_list`, `discussions_list`, `discussion_read`, `discussions_waiting`
- **Builds**: `pics_app_info`, `pics_live_build` (`expect_buildid` -> `is_live`), `builds_status`,
  `build_set_live` (write, beta branches unless allowed), `build_upload` / `build_upload_status` /
  `build_script_inspect`
- **Players (support)**: `players_lookup` (summary + bans, vanity or profile URL), `ownership_check`, `player_owned_apps`
- **Money**: `sales_report`, `sales_changed_dates`
- **Everything else**: `partner_api_list` (every interface/method/parameter your key may call, from
  `ISteamWebAPIUtil/GetSupportedAPIList`), `partner_api_call`, `public_api_call`
- **Website work that has no API**: `steamworks_links`, `steamworks_browser_lock`
- **Config**: `steam_config`, `steam_reload_config`

CLI: `steamctl list`, `steamctl <tool> name=value ...` or `steamctl <tool> '{"json": "args"}'`; prints JSON.

## Safety

- Every write is explicit: `confirm=true` (`build_set_live`, `user_stats_set`, `build_upload`) or
  `allow_write=true` (`partner_api_call` on a POST method). `STEAM_MCP_READ_ONLY=1` refuses them all.
- `protect_default_branch` (default on) refuses setting a build live on the default branch, both in
  `build_set_live`, in `partner_api_call ISteamApps/SetAppBuildLive` and in an app_build script with
  `SetLive "default"`. Keep promotion in your human-approved release process.
- Keys are never returned; responses are redacted on the server side.
- SSH reads that hang are retried once; writes are never re-sent.

## Things Steam does not tell you (learned the hard way)

- `store.steampowered.com/appreviews/<app>?json=1` is **retired** (302 to the store home). Use
  `IUserReviewsService/GetAppReviews`; its filters are enum NUMBERS (`purchase_type=1` = all; the
  string `all` is silently ignored and you get only English Steam purchases).
- Anonymous PICS shows **no depots/branches for prerelease apps**: a "forced" anonymous read then
  either prints nothing or a stale cached value. `pics_live_build` falls back to the publisher API.
- `SetAppBuildLive` answers **HTTP 200 on failure** (`result 2`, "unknown beta branch"); success is
  `result 1`, and **HTTP 201** means the change waits for the Steam mobile app confirmation of the
  `steamid` you passed. With a `steamid`, Steam asks the phone *before* validating the branch.
- `ISteamNews/GetNewsForApp` misses some published announcements; the store events feed does not.
- Many release scripts treat *any* `steamcmd` process as "an upload is running". The PICS copy runs
  under the image name `steammcp-pics.exe` so a read never blocks a release.
- `IGameServersService/GetAccountList` does not work with a publisher key ("Missing required routing parameter").

## Limits

Steam has no Web API for posting announcements/events, replying in discussions, responding to
reviews, editing the store page, discounts, wishlist or UTM reports. Those stay browser jobs;
`steamworks_links` and `steamworks_browser_lock` help an agent do them one at a time.

## License

MIT

TDQS

B3.2/5.0

Scored across 38 tools

Disambiguation3/5

Several clusters overlap: store_app_details, store_items, and pics_app_info all fetch app metadata from different sources; ownership_check vs player_owned_apps both answer ownership questions; builds_status, pics_live_build, and build_set_live all report or change live build state. Descriptions do explain the source/scope differences, but an agent must read carefully to pick correctly. Broad generic escape hatches (public_api_call, partner_api_call) further blur boundaries with the specific tools.

Naming Consistency4/5

Almost everything is snake_case with domain prefixes (store_*, reviews_*, players_*, build_*, pics_*, partner_*, discussions_*), which is quite readable. Minor deviations: some names are noun-only (leaderboards, news_list, sales_report) rather than verb_noun, and the prefix families aren't applied uniformly (leaderboards, game_snapshot, ownership_check are unprefixed).

Tool Count3/5

38 tools is heavy, but the server genuinely spans store, reviews, players, achievements, builds/SteamPipe, sales, and partner API surfaces, so each tool maps to a real operation. Still, three near-duplicate build-status tools and three app-info tools suggest consolidation was possible instead of a 38-tool surface.

Completeness4/5

Coverage is broad and lifecycle-aware: read tools for store/reviews/players/achievements/builds/sales, write tools for build upload/SetLive and user stats, plus generic API escape hatches and config reload. Minor gaps remain: leaderboards are read-only, replying to discussions and some wishlist/marketing actions are explicitly deferred to browser jobs, and there is no direct wishlist/follower data tool.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues