Skip to content
MCP server
Registry

Xbox Live MCP Server

Local MCP server for official Xbox Live APIs: playtime, Game Pass, achievements, and friends.

Xbox Live MCP scores 66 (Good), licensed MIT and written in Python. It installs as a local process. It declares 10 tools. Filed under Uncategorized. GitHub shows 0 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by vinsentyMITPython0 stars
Trust score
66Good
Trust score 66 of 100, Good

Good trust

66 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 66 comes from

22 + 20 + 0 + 10 + 4 + 10 = 66. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity0 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 0 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "vinsenty-xbox-mcp": {      "command": "uvx",      "args": [        "xbox-mcp"      ],      "env": {        "XBOX_LANGUAGE": "",        "XBOX_TOKENS_FILE": ""      }    }  }}

Environment variables

NameRequiredNotes
XBOX_LANGUAGEOptionalOptional Accept-Language locale for titles and achievements (e.g., en-US, zh-CN).
XBOX_TOKENS_FILEOptionalOptional custom path to store local Microsoft OAuth2 tokens.

Tools10Tool docs quality grade C

All capabilities
  • Exchange an OAuth callback URL (http://localhost:8080/auth/callback?code=...) or raw code and save tokens locally

  • Verify local Xbox OAuth token validity; returns the Microsoft login URL if unauthenticated

  • List Xbox Live friends with Gamertags, Gamerscore, online status, and currently playing game

  • Per-title achievement list with unlock timestamps, Gamerscore, and global rarity percentage (sortby: default, rarity, gamerscore, unlocktime)

  • Fetch full Xbox / PC Game Pass history enriched with exact MinutesPlayed, sortable by playtime, recent, achievements, or name, with platform, gamepassonly, trackedonly, and excludewin32footprints filters

  • Fetch MinutesPlayed and Hero stats for a specific titleid or scid

  • Aggregate report: total hours, Xbox console vs. PC breakdown, Game Pass share, playtime buckets, 100% completed games, Win32 footprint count, and Top 20 titles

  • Check online status and currently playing title/device (Xbox console, PC, Cloud)

  • Fetch Gamertag, Modern Gamertag, Gamerscore, Account Tier, Tenure, Bio, Location, and Avatar

  • Quick view of most recently played titles with playtime and achievement progress

About

xbox-mcp

English | 简体中文

Python 3.12+ MCP License: MIT

A lightweight, local Model Context Protocol (MCP) server that connects directly to official Microsoft Xbox Live APIs — no third-party proxy API keys (like OpenXBL), no rate-limit paywalls, and all OAuth tokens stay strictly on your local machine.

Query your Xbox console & PC Game Pass game library, exact MinutesPlayed playtime, achievements & global rarity percentages, live online presence, friends list, and full playtime summaries right from your AI assistant.


Highlights

  • Direct Official API Access: Built on xbox-webapi (TitleHub, UserStats, Achievements, Profile, Presence, PeopleHub).
  • Fast Batched Playtime Lookup: Fetches MinutesPlayed in chunks of 50 titles per userstats/batch request so even large libraries resolve in ~1–2 seconds.
  • Xbox vs. Win32 Game Bar Separation: Automatically distinguishes tracked Xbox / PC Game Pass games from third-party PC games (Win32) logged by Windows Xbox Game Bar.
  • Zero-Hassle Local Auth: Supports both one-command CLI browser OAuth (uv run xbox-auth) and in-chat callback code exchange (get_auth_status + complete_auth), with automatic token refresh and 0600 file permissions.
  • Cross-Generation Achievements: Supports Xbox One / Series X|S / PC achievements (with global unlock rarity percentages) and automatically falls back to Xbox 360 titles.

Requirements

  • Python 3.12+
  • uv (recommended)
  • A Microsoft / Xbox account

Quick Start

1. Run via uvx (Recommended — No Clone Needed)

# Authenticate once with Microsoft / Xbox Live
uvx --from xbox-mcp xbox-auth

# Run the MCP server
uvx xbox-mcp

Or clone locally for development:

git clone https://github.com/VinsentY/xbox-mcp.git
cd xbox-mcp
uv sync
uv run xbox-auth

2. Authenticate with Microsoft / Xbox Live (One-Time Setup)

Choose either method:

Option A: CLI Auto-Callback (Recommended)

uv run xbox-auth

This starts a temporary local listener on http://localhost:8080/auth/callback, opens Microsoft's official OAuth2 sign-in page in your browser, exchanges the authorization code for OAuth2 + XBL + XSTS tokens, and saves them locally with 0600 permissions.

Option B: In-Chat / Manual Callback URL

If you prefer not to run a local HTTP listener (or port 8080 is occupied):

  1. Ask your AI assistant to call get_auth_status — it returns the official Microsoft login_url.
  2. Sign in in your browser. After consent, the browser redirects to http://localhost:8080/auth/callback?code=... (an unreachable localhost page is expected).
  3. Copy the full URL from your browser's address bar and pass it to complete_auth (or run uv run xbox-auth --code "<callback_url>").

Note on Token Storage & Auto-Refresh Tokens are stored locally at ~/Library/Application Support/xbox/tokens.json on macOS (or ~/.local/share/xbox/tokens.json on Linux, overrideable via XBOX_TOKENS_FILE) with 0600 permissions. xbox-mcp automatically refreshes expired access/XSTS tokens and persists rotated refresh tokens back to disk.


MCP Client Configuration

Antigravity (~/.gemini/config/mcp_config.json) / Claude Desktop / Cursor

Using uvx (recommended — zero local clone required):

{
  "mcpServers": {
    "xbox": {
      "command": "uvx",
      "args": ["xbox-mcp"],
      "env": {
        "XBOX_LANGUAGE": "en-US"
      }
    }
  }
}

Or using a local clone's virtual environment binary:

{
  "mcpServers": {
    "xbox": {
      "command": "/absolute/path/to/xbox-mcp/.venv/bin/xbox-mcp",
      "args": [],
      "env": {
        "XBOX_LANGUAGE": "en-US"
      }
    }
  }
}

Environment Variables (All Optional)

VariableDefaultDescription
XBOX_TOKENS_FILEOS app data xbox/tokens.jsonCustom path for local OAuth2 token persistence
XBOX_LANGUAGEen-USAccept-Language header for titles/achievements (e.g. zh-CN, ja-JP)
XBOX_CLIENT_IDOpenXbox public client IDOverride with your own Azure App Registration Client ID
XBOX_CLIENT_SECRET(empty)Optional Azure App Client Secret if using a confidential app
XBOX_REDIRECT_URIhttp://localhost:8080/auth/callbackCustom OAuth2 redirect URI matching your app registration

Available Tools (10)

ToolDescription
get_auth_statusVerify local Xbox OAuth token validity; returns the Microsoft login URL if unauthenticated
complete_authExchange an OAuth callback URL (http://localhost:8080/auth/callback?code=...) or raw code and save tokens locally
get_profileFetch Gamertag, Modern Gamertag, Gamerscore, Account Tier, Tenure, Bio, Location, and Avatar
get_presenceCheck online status and currently playing title/device (Xbox console, PC, Cloud)
get_game_libraryFetch full Xbox / PC Game Pass history enriched with exact MinutesPlayed, sortable by playtime, recent, achievements, or name, with platform, game_pass_only, tracked_only, and exclude_win32_footprints filters
get_recently_playedQuick view of most recently played titles with playtime and achievement progress
get_playtime_summaryAggregate report: total hours, Xbox console vs. PC breakdown, Game Pass share, playtime buckets, 100% completed games, Win32 footprint count, and Top 20 titles
get_game_achievementsPer-title achievement list with unlock timestamps, Gamerscore, and global rarity percentage (sort_by: default, rarity, gamerscore, unlock_time)
get_game_statsFetch MinutesPlayed and Hero stats for a specific title_id or scid
get_friends_listList Xbox Live friends with Gamertags, Gamerscore, online status, and currently playing game

Example Prompts

  • "Summarize my Xbox and PC Game Pass playtime and build a gamer profile."
  • "Show my top 20 most-played Xbox / Game Pass games, excluding Win32 Game Bar footprints."
  • "What are my rarest unlocked achievements in Clair Obscur: Expedition 33?"
  • "Compare my Steam library with my Xbox / Game Pass library and find games I've played on both."
  • "Which of my Xbox friends are online right now and what are they playing?"

Troubleshooting

  • Passkey interstitial (account.live.com/interrupt/passkey) during login: Click Skip for now / Cancel on the Microsoft Passkey prompt, then approve the Xbox Live consent screen until the browser redirects to http://localhost:8080/auth/callback?code=....
  • account.live.com connection closed (ERR_CONNECTION_CLOSED): In regions with unstable routing to Microsoft Live endpoints, make sure login.live.com, account.live.com, and *.xboxlive.com route consistently through your network/proxy.
  • Win32 games showing 0m / null playtime: Windows Xbox Game Bar automatically records non-Xbox PC games (e.g., Steam, Riot, Battle.net titles) in TitleHub without MinutesPlayed telemetry. Pass exclude_win32_footprints=true or tracked_only=true to get_game_library to focus purely on Xbox / Game Pass titles.

Development & Tests

uv sync
uv run python -m unittest discover -s tests -v

Security & Privacy

  • OAuth2 tokens are stored only on your local machine with 0600 file permissions and are never sent to any third-party service.
  • .gitignore excludes tokens.json, *tokens*.json, and .env* by default.
  • Never commit your local tokens.json file to version control.

License

MIT

Frequently asked questions

What is Xbox Live MCP Server?

Local MCP server for official Xbox Live APIs: playtime, Game Pass, achievements, and friends.

How do I install Xbox Live MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Xbox Live MCP Server runs locally from the PyPI package xbox-mcp with the command uvx xbox-mcp.

Is Xbox Live MCP Server free and open source?

Yes. Xbox Live MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does Xbox Live MCP Server support remote (HTTP) connections?

No remote endpoint is listed for Xbox Live MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does Xbox Live MCP Server provide?

Xbox Live MCP Server provides 10 tools, including complete_auth, get_auth_status, get_friends_list, and get_game_achievements. See the full tool list for descriptions and parameters.

How is Xbox Live MCP Server's trust score calculated?

Xbox Live MCP Server scores 66 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server