xbox-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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.
Highlights
Direct Official API Access: Built on
xbox-webapi(TitleHub,UserStats,Achievements,Profile,Presence,PeopleHub).Fast Batched Playtime Lookup: Fetches
MinutesPlayedin chunks of 50 titles peruserstats/batchrequest 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 and0600file 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.
Related MCP server: Learn MCP Server
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-mcpOr clone locally for development:
git clone https://github.com/VinsentY/xbox-mcp.git
cd xbox-mcp
uv sync
uv run xbox-auth2. Authenticate with Microsoft / Xbox Live (One-Time Setup)
Choose either method:
Option A: CLI Auto-Callback (Recommended)
uv run xbox-authThis 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):
Ask your AI assistant to call
get_auth_status— it returns the official Microsoftlogin_url.Sign in in your browser. After consent, the browser redirects to
http://localhost:8080/auth/callback?code=...(an unreachable localhost page is expected).Copy the full URL from your browser's address bar and pass it to
complete_auth(or runuv 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.
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)
Variable | Default | Description |
| OS app data | Custom path for local OAuth2 token persistence |
|
|
|
| OpenXbox public client ID | Override with your own Azure App Registration Client ID |
| (empty) | Optional Azure App Client Secret if using a confidential app |
|
| Custom OAuth2 redirect URI matching your app registration |
Available Tools (10)
Tool | Description |
| Verify local Xbox OAuth token validity; returns the Microsoft login URL if unauthenticated |
| Exchange an OAuth callback URL ( |
| Fetch Gamertag, Modern Gamertag, Gamerscore, Account Tier, Tenure, Bio, Location, and Avatar |
| Check online status and currently playing title/device (Xbox console, PC, Cloud) |
| Fetch full Xbox / PC Game Pass history enriched with exact |
| Quick view of most recently played titles with playtime and achievement progress |
| Aggregate report: total hours, Xbox console vs. PC breakdown, Game Pass share, playtime buckets, 100% completed games, Win32 footprint count, and Top 20 titles |
| Per-title achievement list with unlock timestamps, Gamerscore, and global rarity percentage ( |
| Fetch |
| List 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 tohttp://localhost:8080/auth/callback?code=....account.live.comconnection closed (ERR_CONNECTION_CLOSED): In regions with unstable routing to Microsoft Live endpoints, make surelogin.live.com,account.live.com, and*.xboxlive.comroute consistently through your network/proxy.Win32 games showing
0m/nullplaytime: Windows Xbox Game Bar automatically records non-Xbox PC games (e.g., Steam, Riot, Battle.net titles) in TitleHub withoutMinutesPlayedtelemetry. Passexclude_win32_footprints=trueortracked_only=truetoget_game_libraryto focus purely on Xbox / Game Pass titles.
Development & Tests
uv sync
uv run python -m unittest discover -s tests -vSecurity & Privacy
OAuth2 tokens are stored only on your local machine with
0600file permissions and are never sent to any third-party service..gitignoreexcludestokens.json,*tokens*.json, and.env*by default.Never commit your local
tokens.jsonfile to version control.
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
The official MCP Server for the Mux API
Official xCloud MCP: manage servers, sites, WordPress, SSL, backups and deploys from any MCP client.
The official Planning Center MCP server for interacting with your ministry's data.
Hosted X (Twitter) MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that bridges Microsoft Teams with MCP-compatible clients (LLMs, agentic frameworks, CLI), enabling chat integration, message search, and event streaming without traditional REST API endpoints.-
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server designed for learning and experimentation. It provides a foundational setup for developers to build, run, and debug MCP server implementations using Node.js.-
- AlicenseNot gradedqualityDmaintenanceA robust, lightweight Model Context Protocol (MCP) server designed to empower your AI Agents with context-awareness, safe execution sandboxes, and dedicated thought logs.ISC
- FlicenseNot gradedqualityDmaintenanceActs as a secure OAuth 2.0/2.1 proxy gateway for MCP servers, enabling integration with Claude and ChatGPT platforms.-