steamdeck-mcp
MCP server that lets AI assistants manage a Steam Deck: battery, TDP, games, Proton, downloads, cleanup
Built and tested on the Steam Deck. Because it talks to SteamOS and the Steam client rather than to Deck-only hardware, it should also work on other SteamOS devices such as the Steam Machine; see Other SteamOS devices. Hardware, battery, audio, network and file tools work without the Steam integration. Run these in Desktop Mode (Konsole), on the Deck itself:
Summary extracted from the README.
steamdeck-mcp
Let an AI assistant manage your Steam Deck. steamdeck-mcp is an MCP server that gives Claude, Copilot, Cursor or any other MCP client safe, structured control over your Deck: battery and temperatures, TDP and charge limit, per-game Proton versions, installing and moving games, downloads, Bluetooth, cleanup and troubleshooting game logs. In Game Mode it can also measure a game's FPS, take screenshots and, if you allow it, press keys and click, so an assistant can tune a game's settings and check the result.
Built and tested on the Steam Deck. Because it talks to SteamOS and the Steam client rather than to Deck-only hardware, it should also work on other SteamOS devices such as the Steam Machine; see Other SteamOS devices.
"How much battery do I have left and what's draining it?" "Put Cyberpunk on the latest GE-Proton and set my TDP to 10 W." "Install Hades on the SD card." · "Why won't Hogwarts Legacy start?" "Limit charging to 80% and keep it that way after reboots." "What can I delete to free up space?" "Measure how Dorfromantik runs, then find the lowest TDP that keeps it at 45 FPS." "Save the last 30 seconds as a clip and put it in my Videos folder."
- Zero dependencies. Pure Python standard library: no pip, no venv, nothing for a SteamOS update to break.
- No root, no password. Uses the same interfaces Steam itself uses (SteamOS Manager, Steam's client API).
- Safe by default. Destructive actions need explicit confirmation; nothing is deleted that a game still uses.
- You choose how much it may do: look only, change settings, or full control with keyboard and mouse input.
- Works with any MCP client and any model with tool calling.
Contents
- Requirements
- Installation
- Connecting your AI client
- Access levels
- Tools
- Optimizing a game
- Other SteamOS devices
- Settings that survive a reboot
- Safety
- How it works
- Troubleshooting
- Development
Requirements
| Device | Steam Deck (LCD or OLED) on SteamOS 3.7 or newer. Other SteamOS devices: see below. |
| Python | 3.12+ (SteamOS ships it, nothing to install) |
| Steam | Running, with the Steam integration enabled for game/Proton tools (one-time step below) |
Hardware, battery, audio, network and file tools work without the Steam integration.
Installation
Run these in Desktop Mode (Konsole), on the Deck itself:
git clone https://github.com/mpsijben/steamdeck-mcp.git ~/steamdeck-mcp
That's it, there is nothing to build or install. Then:
- Connect your AI client (next section).
- Enable the Steam integration (once). If you use Decky Loader it is already on.
Otherwise ask your assistant to "enable the Steam integration", or run:
and restart Steam (or reboot). This makes Steam open its local debugging port ontouch ~/.steam/steam/.cef-enable-remote-debugging127.0.0.1:8080, which is how the game and Proton tools talk to Steam. - Ask "Give me a status overview of my Steam Deck" to check everything works.
Updating: cd ~/steamdeck-mcp && git pull, then restart your AI client.
Connecting your AI client
The server speaks MCP over stdio. The command is always:
python3 -I /home/deck/steamdeck-mcp/server.py
claude mcp add steamdeck-mcp -s user -- python3 -I /home/deck/steamdeck-mcp/server.py
claude mcp list # should show: steamdeck-mcp ... ✔ Connected
Use the name steamdeck-mcp, not steamdeck: the decky-claude
plugin registers its own server as steamdeck, which would hide this one in its sessions.
Add to .vscode/mcp.json or your user mcp.json:
{
"servers": {
"steamdeck-mcp": { "type": "stdio", "command": "python3", "args": ["-I", "/home/deck/steamdeck-mcp/server.py"] }
}
}
{
"mcpServers": {
"steamdeck-mcp": { "command": "python3", "args": ["-I", "/home/deck/steamdeck-mcp/server.py"] }
}
}
goose configure → Add Extension → Command-line Extension → command
python3 -I /home/deck/steamdeck-mcp/server.py
MCP over stdio works through SSH, so an AI client on your PC can manage the Deck.
- On the Deck: set a password (
passwd) and enable SSH:sudo systemctl enable --now sshd. - On your PC: set up key login (
ssh-copy-id deck@steamdeck) so no password prompt is needed. - Use this as the server command in your client:
ssh deck@steamdeck python3 -I /home/deck/steamdeck-mcp/server.py
Access levels
Pick a level when you register the server by adding a flag to the command (or set STEAMDECK_MCP_LEVEL):
| Level | Flag | What the assistant can do |
|---|---|---|
| Read-only | --readonly |
Look only: status, games, logs, performance, FPS measurements, screenshots |
| Standard | (none) | Also change settings: TDP, FPS limit, Proton, installs, downloads, power, … |
| Full | --full |
Also keyboard, mouse and controller input in Game Mode (press_key, type_text, mouse_click, mouse_move, mouse_scroll, press_button, move_stick), e.g. to change a game's own graphics settings |
claude mcp add steamdeck-mcp -s user -- python3 -I /home/deck/steamdeck-mcp/server.py --full
Tools above your level are not offered to the assistant at all. Input tools send real key presses and clicks to
whatever is in front, so only choose --full if you're happy for your assistant to operate the Deck.
Model choice: any model with tool calling works. Small local models (e.g. via Ollama) sometimes pick the wrong tool; larger models do much better.
Tools
97 tools. Games can be referred to by appid or by (part of) their name, e.g. "hades".
✏️ = changes something · ⚠️ = destructive, needs confirm=true or is clearly marked · 🖐️ = keyboard/mouse input,
only with --full.
Status
| Tool | What it does |
|---|---|
system_status |
Model, SteamOS version, Game/Desktop Mode, battery (charge, health, mAh, time left), temperatures, fan, TDP and power draw, GPU, memory, disk space |
power_settings |
Charge limit, TDP, GPU level/clock/profile, CPU governor/scheduler/boost, fan control, Wi-Fi power saving, HDMI-CEC |
download_status |
Steam download queue, speed, ETA, whether downloads are paused |
audio_status · network_status · bluetooth_devices |
Volume, Wi-Fi/IP and nearby networks, paired devices with battery levels |
top_processes |
What's using CPU or memory right now |
steam_integration_status |
Whether the Steam integration is on and reachable |
Games
| Tool | What it does |
|---|---|
list_games · game_info · running_games |
Installed Steam games and non-Steam shortcuts with Proton version, launch options, size, playtime, Deck compatibility; game_info also shows update/download behaviour, language, resolution, overlay, Steam Cloud, beta branches and DLC |
search_owned_games |
Everything you own, installed or not |
install_game ✏️ |
Install on internal storage or microSD; dry_run shows the size first. License agreements are only accepted when you explicitly ask (accept_eula) |
uninstall_game ⚠️ |
Uninstall; warns when saves are not in Steam Cloud |
move_game ✏️ |
Move between internal storage and microSD |
storage_locations |
Libraries with free space |
launch_game ✏️ · stop_game ⚠️ |
Start or force-quit a game |
update_game ✏️ · verify_game ✏️ · set_downloads_paused ✏️ |
Updates, file verification, pause/resume downloads |
add_shortcut ✏️ · remove_shortcut ⚠️ |
Add a non-Steam game (optionally with Proton) or remove one (files are kept) |
download_queue ✏️ |
Move a game to the top/bottom, up/down or a position in the download queue, or remove it |
set_game_option ✏️ |
Per game: auto-update behaviour, background downloads, language, resolution override, Steam overlay, Steam Cloud |
set_game_branch ✏️ · set_dlc ✏️ |
Switch to a beta branch (also password-protected ones) or back; enable/disable DLC |
workshop_items · set_workshop_item ✏️ |
Subscribed Workshop mods, enable/disable them on this Deck |
set_artwork ✏️ |
Custom cover, wide, hero or logo artwork from a file or https URL (e.g. SteamGridDB), or back to default |
Achievements, saves, screenshots & notes
| Tool | What it does |
|---|---|
achievements |
Unlocked/total and the list; show=locked lists what you still miss |
cloud_status · cloud_sync ✏️ |
Steam Cloud status per game or all games with sync problems; retry a sync or settle a conflict (keep_local/keep_cloud ⚠️) |
screenshots · view_screenshot · delete_screenshots ⚠️ |
Steam screenshots per game, look at one, delete them |
game_notes ✏️ |
Steam's per-game notes (shown in the overlay while playing): list, add, update, delete |
Proton & troubleshooting
| Tool | What it does |
|---|---|
list_compat_tools · list_global_compat_tools · list_proton_installs |
Available Proton versions and which games use them |
set_compat_tool ✏️ · set_global_compat_tool ✏️ |
Proton version per game, or the default for all Windows games |
set_launch_options ✏️ |
E.g. PROTON_LOG=1 %command% |
check_ge_proton · install_ge_proton ✏️ · remove_proton ⚠️ |
Latest GE-Proton, checksum-verified install, removal (refused while in use) |
find_game_logs · read_log |
Find and read a game's logs inside its Proton prefix |
Power & hardware
| Tool | What it does |
|---|---|
set_tdp ✏️ |
TDP limit (3–15 W); with game it goes into that game's performance profile |
set_gpu_clock ✏️ |
Fixed GPU clock or automatic |
set_charge_limit ✏️ |
Stop charging at e.g. 80% to reduce battery wear |
set_power_option ✏️ |
CPU governor, CPU scheduler (e.g. lavd), CPU boost, GPU performance level/profile, fan control, Wi-Fi power saving, HDMI-CEC (options depend on SteamOS version) |
set_brightness ✏️ · set_volume ✏️ |
Screen brightness, volume and mute |
screen_timeouts · set_screen_timeout ✏️ |
When the screen turns off / the Deck sleeps when idle, for Desktop Mode (KDE) and Game Mode (Steam), on battery and charger |
persistent_settings · forget_persistent_settings ✏️ |
See Settings that survive a reboot |
Performance, screen & input (Game Mode)
| Tool | What it does |
|---|---|
measure_fps |
Measure the game in front for N seconds: average FPS, 1% low, frame time, CPU/GPU load, temperatures, power, GPU clock. Use before and after a change |
perf_status |
Current game, which performance profile is active, its framerate limit, overlay level and scaling |
set_fps_limit ✏️ · set_game_profile ✏️ |
Steam's framerate limit, and per-game performance profiles on/off |
set_scaling ✏️ |
Scaling filter (linear, pixel, sharp = FSR), FSR sharpness and scaling mode, like the Performance menu |
set_perf_overlay ✏️ |
Performance overlay level 0-4, numbered as in the Performance menu |
screenshot |
What's on screen as an image, e.g. to read a game's settings menu |
press_key 🖐️ · type_text 🖐️ |
Keyboard input in the window in front |
mouse_click 🖐️ · mouse_move 🖐️ · mouse_scroll 🖐️ |
Click, move or drag (like the right trackpad, e.g. to turn a camera) and scroll (like the left trackpad) |
press_button 🖐️ · move_stick 🖐️ |
Controller buttons (A/B/X/Y, bumpers, triggers, d-pad, Menu/View; tap or hold up to 10 s) and analog sticks through a virtual Xbox controller, for games and menus that need a gamepad |
Steam applies performance settings to the game that was last in front. When the assistant runs on the Deck
itself, pass game and switch to the game within a minute; the tool waits for it. With
Remote Control (Claude app on your phone) the game simply stays
in front.
Game Recording
| Tool | What it does |
|---|---|
recording_status |
Recording mode, how much background video is kept, quality, what's recording, storage used, latest clips |
set_recording ✏️ |
Off, background (always records, clip moments afterwards) or manual; how long to keep; quality |
save_clip ✏️ |
Save the last N seconds of the background recording as a clip |
export_clip ✏️ |
Export a clip as MP4 (default ~/Videos) |
delete_clip ⚠️ |
Delete a clip to free space |
Background recording at standard quality uses about 3.5 GB per hour (measured on a Steam Deck OLED, 1280×800 at 60 FPS); older video is dropped after the time you keep. When you switch it on while Steam is running, a restart of Steam may be needed before recording starts.
System & connectivity
| Tool | What it does |
|---|---|
bluetooth_connect ✏️ |
Connect/disconnect a paired device by name |
set_airplane_mode ✏️ |
Wi-Fi and Bluetooth off/on |
switch_mode ⚠️ |
Switch between Game Mode and Desktop Mode |
power_action ⚠️ |
Suspend, restart or shut down |
check_os_updates |
SteamOS/Steam update check and branch |
os_update ✏️ |
SteamOS updates through the system's update service: status, check, install (⚠️ confirm, finishes after a restart), cancel, switch branch (⚠️ confirm) |
system_settings · set_system_setting ✏️ |
Time zone, Steam language, the Deck's network name |
set_steam_online ✏️ · music_control ✏️ |
Steam offline mode on/off; Steam's music player |
flatpak_apps · install_flatpak ✏️ · uninstall_flatpak ⚠️ |
Desktop apps from Flathub (Heroic, Lutris, emulators ...), installed and added to Steam in one go |
tv_switch_input ✏️ |
Docked: wake the TV and switch it to the Deck (HDMI-CEC) |
wifi_diagnostics ✏️ |
Wi-Fi driver dump or trace for connection problems |
api_health |
Self-check after Steam/SteamOS updates: which Steam APIs, SteamOS services and commands are missing, and which functions use them |
enable_steam_integration ✏️ |
One-time setup (creates Steam's debugging flag file) |
Maintenance
| Tool | What it does |
|---|---|
cleanup_report |
Proton prefixes and shader caches of games that are gone, with sizes (deletes nothing) |
delete_orphans ⚠️ |
Delete what cleanup_report marked as orphaned |
trim_storage ✏️ |
TRIM the internal SSD and microSD card, as Steam's Storage settings do |
Optimizing a game
The repo includes a step-by-step method for tuning a game: lock a target frame rate, then lower the TDP until it
no longer holds, measuring with measure_fps after every change and only touching in-game graphics with your
consent. It ends with a before/after table and an estimate of your playtime.
- Any MCP client: the server offers it as the prompt
optimize_game(argumentsgameandgoal: battery, balanced or performance). In Claude Code it shows up as/mcp__steamdeck-mcp__optimize_game. - Claude Code skill: link it once and Claude uses it whenever you ask to optimise a game:
ln -s ~/steamdeck-mcp/skills/optimize-game ~/.claude/skills/optimize-game
"Optimize Hades for battery." · "Dorfromantik stutters, can you make it run smoothly?"
Works best when you talk to the assistant from your phone (Remote Control), so the game stays in front. On the Deck itself the tools wait until you switch to the game.
Other SteamOS devices
Most tools use SteamOS and the Steam client, not Deck-specific hardware, so they should work on any device running SteamOS in Game Mode, such as the Steam Machine or a PC with SteamOS. Status:
| Device | Status |
|---|---|
| Steam Deck OLED | Tested |
| Steam Deck LCD | Expected to work (same software, same power interfaces) |
| Steam Deck on a TV or monitor | Tested on a 2560×1440 monitor over DisplayPort: all read-only tools, screenshots (scaled down), mouse clicks, FPS limit and measurement. Steam keeps a separate FPS limit for external screens; the tools set the one in use |
| Steam Machine | Expected to work, not yet tested |
What differs on a device without a battery or built-in screen: battery status and charge limit are unavailable, brightness has nothing to control, and the TDP and GPU clock ranges are whatever SteamOS Manager reports for that chip (the tools read them from the device instead of assuming the Deck's).
Have a Steam Machine or another SteamOS device? Run the read-only check and open an issue with the output:
python3 ~/steamdeck-mcp/scripts/smoke_test.py
It only calls tools that read information; nothing is changed.
Settings that survive a reboot
SteamOS forgets TDP, GPU clock, charge limit and CPU options on reboot (Steam re-applies its own values).
Pass persist=true to set_tdp, set_gpu_clock, set_charge_limit or set_power_option, or just say
"...and keep it after a reboot", and the setting is saved to ~/.config/steamdeck-mcp/persistent.json.
A small systemd user timer (steamdeck-mcp-restore.timer) re-applies saved settings 60 seconds after every
boot. It is installed automatically the first time you persist something, removed when nothing is saved anymore,
and lives in your home directory, so SteamOS updates don't remove it. persistent_settings shows what's saved;
forget_persistent_settings stops it.
Per-game things such as Proton versions and launch options, and screen/sleep timeouts, are stored by Steam or KDE themselves and always persist.
Safety
- No passwords, no root. The server never runs as root and never asks for or handles a password.
- Explicit confirmation (
confirm=true) foruninstall_game,remove_shortcut,switch_modeandpower_action. Most MCP clients additionally ask you before any tool runs. - Nothing in use gets deleted.
delete_orphansonly removes prefixes/caches that belong to no installed game or shortcut, also detects shortcuts that point into another prefix (e.g. a launcher installed in one prefix and started from another), and skips prefixes with installed programs.remove_protonrefuses versions in use. - License agreements are never accepted on your behalf unless you explicitly ask for it.
- Limits come from SteamOS. TDP, GPU clock and charge limit are validated against the ranges SteamOS Manager reports for your device.
read_logonly reads files in your home directory or on removable media.- Input is opt-in. Keyboard and mouse tools exist only at the
--fulllevel and are marked as non-read-only, so clients that ask before changes ask for every key press or click.type_textis capped at 500 characters. - Measurements leave no trace.
measure_fpsadds its lines to the overlay's config only for the measurement, then removes exactly those lines and its temporary log folder.
About the Steam integration: Steam's debugging port listens on 127.0.0.1 only, so other devices on your
network can't reach it. Any program running on your Deck can, though; that is also true for Decky Loader, which
uses the same port. Only enable it if you're comfortable with that.
How it works
| Feature | Interface |
|---|---|
| TDP, GPU, charge limit, CPU, fan, Wi-Fi power saving, HDMI-CEC, TRIM, Wi-Fi diagnostics | SteamOS Manager D-Bus service (com.steampowered.SteamOSManager1), the API Steam's own Quick Access menu uses |
| SteamOS updates | atomupd D-Bus service (com.steampowered.Atomupd1), which Steam's System settings use |
| Proton version lists | Steam's internal CompatManager service (Steam replaced the older SteamClient calls in October 2026) |
| Flatpak apps | flatpak (user installation for new apps) plus a Steam shortcut |
| Games, installs, Proton, launch options, downloads, shortcuts, power, airplane mode, brightness | Steam's internal SteamClient JavaScript API, via its local debugging port |
| TDP/GPU on older SteamOS | steamos-priv-write (polkit-allowed helper, no password) |
| Audio, Wi-Fi, Bluetooth, processes, Game/Desktop switch | pactl, nmcli, bluetoothctl, ps, steamos-session-select |
| Screen/sleep timeouts | KDE powerdevilrc (Desktop Mode) and Steam's client settings (Game Mode) |
| Sensors, battery, disks | /sys, /proc (read-only) |
| FPS limit, performance profiles | Steam's own Performance settings (SteamClient.System.Perf and client settings) |
| FPS measurement | Steam's performance overlay (mangoapp) logs frames to a temporary folder for the measurement; its config file is restored afterwards |
| Game Recording | Steam's own recording store (g_GRS) and client settings, the same calls its overlay uses |
| Screenshots | gamescopectl screenshot (the same capture as the screenshot button) |
| Keyboard/mouse input | xdotool on the Xwayland display of the window gamescope shows in front |
| Controller buttons | A virtual Xbox 360 controller via Linux uinput (SteamOS gives the desktop user access), unplugged after a minute without presses |
| GE-Proton, cleanup, logs | Files under ~/.local/share/Steam and your Steam libraries |
A note on stability: SteamClient is Steam's internal, undocumented API (the same one Decky Loader plugins
use). A Steam update can change it and break a game/Proton tool until it's fixed here. Run api_health after an
update: it checks every Steam API, SteamOS Manager interface and command the server uses (the list is read from the
code itself) and names the functions that are affected; a tool that fails with "is not a function" also points
there. SteamOS Manager is a
versioned interface but also evolves (SteamOS 3.8 removed one interface and added CPU boost/scheduler); the server
adapts to whatever your SteamOS version offers. Hardware, file and system tools don't depend on Steam at all.
Troubleshooting
| Problem | Fix |
|---|---|
| "Steam CEF debugger not reachable" | Steam isn't running, or the integration isn't enabled: run enable_steam_integration and restart Steam |
| "SharedJSContext not found" | Steam is still starting; try again in a few seconds |
| Power tools say SteamOS Manager is unavailable | Very old SteamOS; TDP/GPU fall back to steamos-priv-write, other power options need SteamOS 3.6+ |
set_fps_limit, measure_fps, screenshot fail |
They only work in Game Mode |
measure_fps: "mangoapp wrote no log" |
Nothing was drawing frames in front (e.g. a paused or minimised game); start playing and try again |
| Input tools are missing | They are only offered with --full (see Access levels) |
move_game fails with error 19 |
Steam queued a file check after the previous move; let downloads run until it finishes |
| A tool broke after a Steam update | Please open an issue with the error text |
Run the server by hand to see errors: python3 scripts/smoke_test.py calls every read-only tool and reports
which ones fail.
Development
python3 -m unittest discover -s tests -v # unit tests, run anywhere (also in CI)
python3 scripts/smoke_test.py # every read-only tool against a real Deck
python3 scripts/smoke_test.py game_info '{"game": "hades"}'
The code is plain standard-library Python:
| File | Contents |
|---|---|
steamdeck_mcp/server.py |
MCP protocol (JSON-RPC over stdio), tool definitions |
steamdeck_mcp/steam.py |
Steam client control (games, installs, downloads, shortcuts) |
steamdeck_mcp/cdp.py |
Minimal Chrome DevTools Protocol client for Steam's debugging port |
steamdeck_mcp/steamos_manager.py |
SteamOS Manager D-Bus settings |
steamdeck_mcp/hardware.py |
Sensors, battery, TDP/GPU |
steamdeck_mcp/fps.py |
FPS measurement via the performance overlay's logger |
steamdeck_mcp/screen.py |
Screenshots and keyboard/mouse input |
steamdeck_mcp/gamepad.py |
Virtual controller for button presses |
steamdeck_mcp/recording.py |
Steam Game Recording: mode, clips, export |
steamdeck_mcp/system.py |
Audio, network, Bluetooth, processes, session switching |
steamdeck_mcp/maintenance.py |
Libraries, Proton installs, cleanup, logs |
steamdeck_mcp/persist.py |
Settings re-applied after reboot |
steamdeck_mcp/display.py |
Screen-off and sleep timeouts |
Contributions are welcome. When adding a tool that changes something, test it on a real Deck with values that
don't change the current state where possible, and add a guard (confirm=true) for anything destructive.
License
MIT. Not affiliated with or endorsed by Valve. Steam, Steam Deck and SteamOS are trademarks of Valve Corporation.