Skip to main content
Glama

Steam MCP Server

A local MCP server that lets Claude fetch data from your Steam game library via the Steam Web API. All tools are read-only — the server never modifies your account.

Tools

Tool

What it does

steam_get_owned_games

Lists owned games with total playtime, sorted by playtime or name

steam_get_recently_played_games

Games played in the last ~2 weeks

steam_get_player_summary

Profile info: name, status, currently playing, account creation date

steam_get_player_achievements

Achievements for a specific game (requires appid)

steam_resolve_vanity_url

Converts a custom profile URL to a SteamID64

Related MCP server: steam-mcp

Prerequisites

  1. Steam Web API key — get one for free at https://steamcommunity.com/dev/apikey (requires a logged-in Steam account; enter any domain, e.g. localhost).

  2. Your SteamID64 — the 17-digit number for your account. Find it via your profile URL, or use steam_resolve_vanity_url if you have a custom URL.

  3. Profile must be public — under Steam → Profile → Edit Profile → Privacy, "Game details" must be set to Public, otherwise library and achievement calls will return empty.

  4. uv installed — curl -LsSf https://astral.sh/uv/install.sh | sh

  5. Python 3.10+ (uv will manage this automatically).

Installation

uv sync

Connecting to Claude

The server uses stdio transport and runs as a local subprocess. It works with MCP clients such as Claude Desktop and Claude Code.

Claude Desktop

Open the config file (Settings → Developer → Edit Config) and add the server. Replace the paths and values with your own:

{
  "mcpServers": {
    "steam": {
      "command": "uv",
      "args": ["run", "--directory", "/full/path/to/steam-api-mcp", "src/steam_mcp.py"],
      "env": {
        "STEAM_API_KEY": "YOUR_API_KEY_HERE",
        "STEAM_ID": "YOUR_STEAMID64_HERE"
      }
    }
  }
}

STEAM_ID is optional. If set, you won't need to provide your own ID in every request — the tools fall back to this value. You can still pass a different steam_id to look at a friend's (public) profile.

Restart Claude Desktop after saving. You can then ask things like:

  • "Which 10 games have I played the most on Steam?"

  • "What have I played in the last two weeks?"

  • "How many achievements do I have in appid 570?"

Claude Code

claude mcp add steam uv run --directory /full/path/to/steam-api-mcp src/steam_mcp.py \
  --env STEAM_API_KEY=YOUR_KEY --env STEAM_ID=YOUR_STEAMID64

Testing Outside a Client

With MCP Inspector you can click through the tools manually:

STEAM_API_KEY=your_key STEAM_ID=your_id \
  npx @modelcontextprotocol/inspector uv run src/steam_mcp.py

Privacy and Limitations

  • The API only returns data a profile has made public.

  • Your key is stored in the client config / environment variables and is never sent anywhere other than Steam.

  • The Steam Web API has reasonable rate limits (approx. 100,000 calls/day). The server returns a clear 429 message if you hit a temporary limit.

Available Tools

5 tools
steam_get_owned_gamesA
Read-onlyIdempotent

List the games owned by a Steam user, with total playtime per game.

This is the core library tool. It returns each owned game with its appid, name, total playtime, recent (2-week) playtime, and last-played date. The target profile's "Game details" must be public for this to return data.

Args: params (OwnedGamesInput): Validated input containing: - steam_id (Optional[str]): SteamID64; falls back to STEAM_ID env var. - limit (Optional[int]): Max games to return after sorting (1-500, default 25). - sort_by (str): 'playtime' (default) or 'name'. - include_free_games (bool): Include launched free-to-play games (default True). - response_format (ResponseFormat): 'markdown' or 'json'.

Returns: str: Markdown or JSON. JSON schema: { "total_games_owned": int, # total count in the library "returned": int, # number of games in this response "games": [ { "appid": int, "name": str, "playtime_hours": float, # total, all time "playtime_2weeks_hours": float, # last 2 weeks "last_played": str | null, # UTC timestamp "icon_url": str | null } ] } On error, an "Error: ..." string.

Inputs: params (required). Returns: result

steam_get_player_achievementsA
Read-onlyIdempotent

Get a player's achievements for a specific game.

Args: params (AchievementsInput): Validated input containing: - appid (int): The game's Steam application ID (required). - steam_id (Optional[str]): SteamID64; falls back to STEAM_ID env var. - only_unlocked (bool): Return only unlocked achievements (default False). - response_format (ResponseFormat): 'markdown' or 'json'.

Returns: str: Markdown or JSON with the game name, unlocked/total counts, and a list of achievements (name, unlocked flag, unlock time), or an "Error: ..." string. Some games have no achievements, which returns a note.

Inputs: params (required). Returns: result

steam_get_player_summaryA
Read-onlyIdempotent

Get profile summary information for a Steam user.

Returns display name, profile URL, avatar, online status, and (if public) the currently played game and account creation date.

Args: params (PlayerInput): Validated input containing: - steam_id (Optional[str]): SteamID64; falls back to STEAM_ID env var. - response_format (ResponseFormat): 'markdown' or 'json'.

Returns: str: Markdown or JSON describing the profile, or an "Error: ..." string.

Inputs: params (required). Returns: result

steam_get_recently_played_gamesA
Read-onlyIdempotent

List games a Steam user has played in roughly the last two weeks.

Args: params (RecentlyPlayedInput): Validated input containing: - steam_id (Optional[str]): SteamID64; falls back to STEAM_ID env var. - count (Optional[int]): Max games to return (1-50, default 10). - response_format (ResponseFormat): 'markdown' or 'json'.

Returns: str: Markdown or JSON listing recent games with 2-week and total playtime, or an "Error: ..." string.

Inputs: params (required). Returns: result

steam_resolve_vanity_urlA
Read-onlyIdempotent

Resolve a Steam custom (vanity) profile URL name into a SteamID64.

Many Steam profiles use a custom URL like steamcommunity.com/id/ instead of a numeric ID. Other tools in this server need the numeric SteamID64, so use this first if you only have a custom URL name.

Args: params (VanityUrlInput): Validated input containing: - vanity_name (str): The custom URL name (without the full URL).

Returns: str: On success, the resolved SteamID64 and original name. On failure, an "Error: ..." string. If the name doesn't match a profile, returns a message saying no match was found.

Inputs: params (required). Returns: result

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 5 tools

    Disambiguation5/5

    Each tool serves a distinct Steam function: owned games, achievements, profile summary, recently played games, and vanity URL resolution. No two tools overlap in purpose.

    Naming Consistency5/5

    All tools follow a consistent 'steam_verb_noun' pattern in snake_case, with clear and predictable naming.

    Tool Count5/5

    With 5 tools, the server is focused and well-scoped, covering essential Steam user data queries without unnecessary bloat.

    Completeness4/5

    The set covers core user data (owned games, recent games, achievements, profile, vanity resolution). A minor gap is the lack of game detail retrieval, but it is reasonable for a focused server.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers