xbox-mcp
This server lets a voice assistant check and control an Xbox through Microsoft's cloud, with confirmation tokens guarding anything that changes state.
xbox_status— read-only: reports whether the Xbox is on, asleep or off, and what game or app it is running.xbox_power_request— ask forwakeorsleep; sends nothing, just returns a question to read aloud plus a token (a night-time wake is refused unless the TV is already on).xbox_power_confirm— with that token (once, within 30 seconds) actually wakes or sleeps the Xbox, reads the state back, and after a wake switches the TV to the Xbox input.xbox_launch— starts a game from the owner's configured list, only if it is installed and the console is on, and reads it back; it will "ask" via a token if another game is in front.Every reply carries a
sayline to read aloud and asuccess/outcomefield for programs (done,asked,unreachable,signed_out,refused,not_confirmed,working).Note: the schema exposes only these four tools — the
xbox_launch_confirmandxbox_home_request/xbox_home_confirmtools described in the README are absent here, so launching over a running game and sending the Xbox to Home cannot be completed with this schema.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@xbox-mcp is my Xbox on, and what game is running?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
xbox-mcp
Control an Xbox Series X|S by voice: an MCP server and claude-voice plugin.
It is a small MCP server over stdio, and an optional plugin for claude-voice. It reaches the console through Microsoft's cloud with python-xbox, and makes only the library calls listed in ADR-XB-001. No tool touches the store, purchases, the account, family, privacy, settings, friends or messages.
Try it without an Xbox
--simulate answers from a pretend Xbox, and says so:
$ uv run xbox-mcp status --simulate
Simulated: The Xbox is asleep.The server itself, as a voice session starts it; it ends when its input does:
$ uv run xbox-mcp serve --simulate < /dev/nullRelated MCP server: Alexa Echo MCP
The tools
Tool | Does | Changes anything |
| Whether the Xbox is on, asleep or off, and the game or app it runs | No |
| Asks whether to wake the Xbox or put it to sleep, and hands out a token; sends nothing | No |
| With that token, within 30 seconds and once only: wakes or sleeps the Xbox, reads it back, and after a wake switches its TV to the Xbox | Wakes or sleeps the Xbox |
| Starts a game from the owner's own list, only if it is installed and the Xbox is on, and reads it back. When another game is in front, it asks first, naming it, and returns a token | Starts a game |
| With that token, within 30 seconds and once only: checks the same game is still in front, then starts the new one and reads it back | Starts a game |
| Names the listed game in front and asks whether to send the Xbox to Home; sends nothing, returns a token | Nothing |
| With that token, within 30 seconds and once only: checks the same game is still in front, sends the Xbox to Home and reads it back. The game stays paused in the background, since Microsoft's cloud cannot close it | Shows Home |
Every answer has say, read aloud as it is, and success with outcome
for a program: done, asked (a power question waits for the owner's yes), unreachable (Microsoft's cloud did not answer),
signed_out (no Microsoft sign-in yet), refused, not_confirmed (a command
was taken, but the console's status does not show it yet), or working (still
going after the voice's time, and carrying on). Every answer that does not
succeed also says what to do next.
Which actions are risky is the owner's call (the plugin standard's rule 7). Waking and sleeping are: each is a question read aloud, and then a confirm with a single-use token after the owner's spoken yes. When Microsoft's answer to a command is lost, the command may still have arrived, so the yes is used up and the plugin reads the Xbox back instead of sending it again. Between 22:00 and 07:00 a wake is refused unless the TV the Xbox is plugged into is already on, because waking the Xbox switches that TV on through HDMI-CEC. By day, the question says the TV will come on too.
Sign in to Microsoft
The plugin reaches the Xbox through Microsoft's cloud, so it needs the owner's Microsoft sign-in once. In a terminal on the computer the plugin runs on:
cd ~/xbox-mcp && uv run xbox-mcp sign-inIt prints a link to Microsoft's sign-in page and opens it in the browser. Sign in with the Microsoft account the Xbox uses, and allow the access it asks for. The page then sends the browser back to this computer, and the terminal says "Signed in" and names the consoles on the account.
If another program already uses port 8080, that program would see the sign-in code on its way back, so the command stops before it shows the link and says to sign in from a phone instead:
cd ~/xbox-mcp && uv run xbox-mcp sign-in --other-deviceThis prints the link without opening a browser here. Open it on the phone and sign in. The phone then lands on an error page (it cannot connect, or says 404). That is expected, since nothing listens there. Copy the WHOLE address from the phone's address bar, and paste it where the terminal says "Paste the whole address". The terminal does not show it.
The laptop's own browser works only when port 8080 is free; then the browser comes back to the terminal by itself, with nothing to paste. The decision and its risk are in ADR-XB-001.
The sign-in link carries a PKCE challenge, and the code is redeemed only with
its verifier, which never leaves the computer. A code that another program sees
on its way back cannot be used without it, where Microsoft checks the
challenge. The sign-in is kept in
~/.config/xbox-mcp/tokens.json, readable by you alone, and is never shown,
logged or sent to the voice. No Azure app registration is needed
(ADR-XB-001).
$ uv run xbox-mcp sign-in --help
usage: xbox-mcp [-h] [--simulate] [--settings-file SETTINGS_FILE]
[--other-device]
{serve,status,sign-in}
Command line for xbox-mcp: serve the tools to a voice session, or ask the
Xbox.
positional arguments:
{serve,status,sign-in}
options:
-h, --help show this help message and exit
--simulate a pretend Xbox, no network
--settings-file SETTINGS_FILE
instead of ~/.config/xbox-mcp/config.toml
--other-device sign-in: open the link on another device, then pasteWhen it breaks
When xbox-mcp itself fails, the voice hears that it went wrong and where the
reason is written: ~/.local/state/xbox-mcp/xbox-mcp.log, readable by you
alone (set XBOX_MCP_LOG for another file). The same lines go to stderr, which
the voice bridge keeps in its own log. The sign-in tokens are never written
there.
Settings
In ~/.config/xbox-mcp/config.toml, never in this repository:
[launch] # the only games xbox_launch may start
titles = ["Forza Horizon 5", "Minecraft"]
[tv]
command = ["uv", "run", "--directory", "~/tv-mcp", "tv-mcp", "serve"]
name = "the living-room TV" # the TV, as the TV plugin knows it
device = "Xbox" # the device on its input, as the TV plugin knows it
[night] # when a wake needs that TV already on
starts = 22
ends = 7The TV is reached through the TV plugin's own tools
(tv-mcp): only tv_status and
tv_input, never a power tool.
Before you start
The console has to be set up once, by hand. The Norwegian menu names are in brackets.
Settings → General → Power options (Strømalternativer): choose Sleep (Hvilemodus), not "Full shutdown / energy saving". Otherwise neither the network nor HDMI-CEC can wake it. Auto-off after one hour (the default) is fine: in Sleep mode the console only goes to sleep.
Settings → Devices & connections (Enheter og tilkoblinger) → Remote features (Eksterne funksjoner) → Enable remote features. Set access to "Only from profiles signed in on this Xbox".
Settings → TV & display options → Device control: enable HDMI-CEC. Turn on:
Play To;
the console turns other devices on;
other devices can turn the console off;
volume commands;
switching the TV's input with the controller.
Leave "the console turns off other devices" off.
To check it, restart the console: the TV should come on and show the Xbox.
With HDMI-CEC on, waking the console switches its TV on. That is why the plugin refuses to wake it at night unless that TV is already on (ADR-XB-003).
The gates
Every one of these runs in continuous integration, and all of them run here:
$ uv run ruff check .
All checks passed!uv run ruff format --check . # layout
uv run mypy src # types
uv run pytest -q # behaviour
python scripts/mutate.py # that each rule's own test can failCONTRIBUTING.md says what each one is for, and
decisions/ records the choices that shaped them,
including how a change is made here.
Licence
GPL-3.0-or-later. See LICENSE.
Available Tools
4 toolsxbox_launchA
Start a listed game. Title: words of a game on the owner's own list. Only an installed title on that list starts, only while the Xbox is on, and the answer says 'not confirmed' until the Xbox shows it.
Inputs: title (required). Returns: object
xbox_power_confirmA
Carry out the owner's yes. Token: from the latest xbox_power_request, used once, within 30 seconds. Wakes or sleeps the Xbox, says 'not confirmed' until its status shows it, and after a wake switches the TV to the Xbox.
Inputs: token (required). Returns: object
xbox_power_requestA
Asks before wake or sleep. Action: wake or sleep. Sends nothing: read the question in 'say' aloud, and pass its token to xbox_power_confirm only on the owner's clear yes. At night a wake is refused unless the TV is already on.
Inputs: action (required). Returns: object
xbox_statusARead-only
Is it on, and what runs? Whether the Xbox is on, asleep or off, and the game or app it runs.
Inputs: no named parameters. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool maps to a distinct step: status reads state, power_request asks the owner, power_confirm executes the token, and launch starts a game. The descriptions explicitly explain the request→confirm handoff, so there is no realistic misselection.
All names share the xbox_ snake_case prefix and a predictable verb/noun shape (xbox_power_request, xbox_power_confirm, xbox_launch). xbox_status is a bare noun getter rather than an action name, a minor deviation in an otherwise consistent scheme.
Four tools is small but sensible for a single-device control surface, and each earns its place. It is on the thin side, though the split of power into request/confirm justifies two entries.
Status, power lifecycle, and launching are covered, but there is no tool to list the owner's games (xbox_launch requires a title from a list the agent cannot read) and no way to quit an app or handle media/volume. These are notable gaps that could dead-end an agent.
Maintenance
Related MCP Connectors
Control your Tesla from your AI assistant - climate, charging, access, and security.
Check voice recording levels locally and share approved results with your assistant. OAuth required.
Query your Twitch streams, events, supporters, raids & rankings from an AI assistant via OAuth.
Control your existing Philips lights, Sonos speakers, Roborock vacuums and other supported devices through Port OS cloud. Give ChatGPT, Claude and other MCP-compatible assistants access to the devices you connect. Turn off the living room lights, play music on your speakers, adjust the thermostat, run a vacuum in a room, check a camera snapshot or find a connected tracker. Available actions depend on your linked provider accounts and each device’s supported capabilities. Port OS runs in the cloud; no local server is required. You choose the account, device and capability permissions each assistant receives. Device operations require user OAuth; public tool discovery does not grant device access. Port OS is in alpha. Setup: https://portoperatingsystem.com/docs/getting-started/ Support: https://portoperatingsystem.com/contact/
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables users to run their saved rote plays by voice: a spoken request is matched to a procedure, launched asynchronously in the background, and its result reported later on demand. Writes and registry plays stay gated behind allowlists, confirmation codes, and OAuth-secured Streamable HTTP access.Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables an AI assistant to control your own Amazon Echo devices and Alexa smart-home devices, including speaking messages, running routines, sending text commands, listing routines and devices, and controlling device power or brightness through an unofficial Alexa app session.62 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables Alexa+ to answer spoken questions about a home's energy use and act on them through seven voice-first tools, covering live device status, usage and cost reports, waste detection, savings recommendations, automation listing, device control, and confirmed energy-plan application.MIT
- AlicenseAqualityCmaintenanceEnables AI agents and CLI users to control Xbox One and Xbox Series consoles over Wi-Fi, including launching games and apps, sending virtual gamepad button presses, managing media playback, adjusting TV volume via HDMI-CEC, and powering consoles on or off.1324 npm1MIT