Listed from the MCP registry; nobody on Odel publishes it.
Local MCP server for official Xbox Live APIs: playtime, Game Pass, achievements, and friends.
Runs on your machine from its package; the steps are below.
At most: creates or changes data: records, files, settings.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
uvx xbox-mcp
MCP client config
{
"mcpServers": {
"xbox-live-mcp": {
"command": "uvx",
"args": [
"xbox-mcp"
]
}
}
}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.
xbox-webapi (TitleHub, UserStats, Achievements, Profile, Presence, PeopleHub).MinutesPlayed in chunks of 50 titles per userstats/batch request so even large libraries resolve in ~1–2 seconds.Win32) logged by Windows Xbox Game Bar.uv run xbox-auth) and in-chat callback code exchange (get_auth_status + complete_auth), with automatic token refresh and 0600 file permissions.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
Choose either method:
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.
If you prefer not to run a local HTTP listener (or port 8080 is occupied):
get_auth_status — it returns the official Microsoft login_url.http://localhost:8080/auth/callback?code=... (an unreachable localhost page is expected).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.jsonon macOS (or~/.local/share/xbox/tokens.jsonon Linux, overrideable viaXBOX_TOKENS_FILE) with0600permissions.xbox-mcpautomatically refreshes expired access/XSTS tokens and persists rotated refresh tokens back to disk.
~/.gemini/config/mcp_config.json) / Claude Desktop / CursorUsing 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"
}
}
}
}
| Variable | Default | Description |
|---|---|---|
XBOX_TOKENS_FILE | OS app data xbox/tokens.json | Custom path for local OAuth2 token persistence |
XBOX_LANGUAGE | en-US | Accept-Language header for titles/achievements (e.g. zh-CN, ja-JP) |
XBOX_CLIENT_ID | OpenXbox public client ID | Override with your own Azure App Registration Client ID |
XBOX_CLIENT_SECRET | (empty) | Optional Azure App Client Secret if using a confidential app |
XBOX_REDIRECT_URI | http://localhost:8080/auth/callback | Custom OAuth2 redirect URI matching your app registration |
| Tool | Description |
|---|---|
get_auth_status | Verify local Xbox OAuth token validity; returns the Microsoft login URL if unauthenticated |
complete_auth | Exchange an OAuth callback URL (http://localhost:8080/auth/callback?code=...) or raw code and save tokens locally |
get_profile | Fetch Gamertag, Modern Gamertag, Gamerscore, Account Tier, Tenure, Bio, Location, and Avatar |
get_presence | Check online status and currently playing title/device (Xbox console, PC, Cloud) |
get_game_library | Fetch 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_played | Quick view of most recently played titles with playtime and achievement progress |
get_playtime_summary | Aggregate 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_achievements | Per-title achievement list with unlock timestamps, Gamerscore, and global rarity percentage (sort_by: default, rarity, gamerscore, unlock_time) |
get_game_stats | Fetch MinutesPlayed and Hero stats for a specific title_id or scid |
get_friends_list | List Xbox Live friends with Gamertags, Gamerscore, online status, and currently playing game |
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.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.uv sync
uv run python -m unittest discover -s tests -v
0600 file permissions and are never sent to any third-party service..gitignore excludes tokens.json, *tokens*.json, and .env* by default.tokens.json file to version control.