How to let an AI control a Windows PC through MCP
Let the AI you already use run commands, read logs and run tests on a real Windows PC. Install one small agent, share a 9-digit code, and keep inbound ports closed.
What an AI can do on a real Windows PC
With MCP Desk, your AI gets MCP tools on the PC: run commands, read and write files, list processes and services, transfer files and open a live view of the screen. It works from your own AI app, so nothing of yours is installed on the PC.
- Windows x64 and ARM64.
- No AI on the PC. No AI account, no AI runtime and no API key. The PC runs one small agent.
- No open ports. The agent dials out. How that works.
Install the agent on Windows
Windows (x64 and ARM64)
Get the agent from the download section: the Microsoft Store version is signed and shows no warning, or download mcpdeskagent.exe directly and double-click it. The direct file is not signed with a code-signing certificate, so Windows may show a blue “Windows protected your PC” box: choose More info, then Run anyway.
The agent goes Online and shows a 9-digit desk code and a one-time code that changes every 10 minutes. Leave it running. Check a download against SHA256SUMS if you want to be sure.
Check the file if you like, against the matching line in SHA256SUMS, in PowerShell:
Get-FileHash .\mcpdeskagent.exe -Algorithm SHA256 The one-line install.ps1 command on the home page is different: it sets up the MCP Bridge on the computer your AI client runs on, in a container. It does not go on the Windows PC you want to reach.
Connect the AI client you already use
Add https://mcp.mcpdesk.ai/oauth/mcp to your AI client and sign in when it asks. The commands for Claude Code, Cursor, Codex, Grok, OpenCode and VS Code, and the connector steps for Claude, are on Integrations; this page does not repeat them.
Link the PC and press Allow
Tell your AI “link desk 123 456 789” with the PC’s own 9-digit code, and press Allow on the PC. A prompt there shows who wants to link. The link is permanent until you unlink it, and after that there are no codes to type.
For a one-off connection, for example to a friend’s PC, give your AI the desk code and the PC’s current one-time code, which changes every 10 minutes.
Everyday jobs: slow PCs, logs, tests and the live view
- “Dad’s PC takes ages to start. Find out why.” Your AI checks the startup apps, the disk and the services. See help family or a client’s PC.
- “Run the end-to-end tests on this PC and tell me what fails.”
- “Show me the last errors in the application log.”
- “Open a live view of the PC.” You get a one-time link that opens in your browser; the screen is streamed only while it is open.
Optional: a disposable Windows Sandbox
Windows Sandbox is a Windows feature you turn on first: a clean Windows desktop that is deleted when you close it. Run the agent inside it, read its desk code and one-time code, and connect your AI with them in full mode so it can run commands. When you close the sandbox, the environment is gone. A real computer to build, test and fix on →
Access modes and how to remove the agent
- Modes. A fresh agent starts in
full.--mode readonlygives only the tools that inspect, and--mode playbooksadds vetted scripts.--allowed-rootlimits the file tools, not shell commands. - Always on. To keep the agent running after a reboot, install it as a Windows service from an administrator PowerShell window, in the folder with the agent:
.\mcpdeskagent.exe install-service
.\mcpdeskagent.exe info # desk code, one-time code, linked account
.\mcpdeskagent.exe uninstall-service - Remove it. Stop the agent and delete it. For a service install, run
uninstall-servicefirst. To get a new desk identity, also delete%LOCALAPPDATA%\MCPDesk(or%ProgramData%\MCPDeskin service mode).
FAQ
Does this work on Windows ARM as well as x64?
Yes. There is a build for x64 (most PCs, Intel or AMD) and one for ARM64 (Snapdragon PCs and the Surface Pro X). There is no 32-bit build.
Do I need administrator rights?
Not to run the agent: the portable .exe starts with a double-click and no flags. Installing it as an always-on Windows service needs an administrator PowerShell window.
Can I see and control the screen myself?
Yes. Ask your AI for a live view and you get a one-time link that opens in your browser. The desk’s owner sets the screen mode to off, view or control; in control mode your mouse and keyboard work there too. Video is streamed only while a live view is open.
Will this work on a PC behind a home router?
Yes. The agent opens an outgoing connection, so there is no port forwarding, public IP or VPN to set up. The PC only needs outbound internet access.
How do I uninstall MCP Desk from Windows?
Stop the agent and delete it. If you installed the service, run .\mcpdeskagent.exe uninstall-service from an administrator window first. To get a fresh desk identity the next time, delete the data folder, %LOCALAPPDATA%\MCPDesk for the portable agent or %ProgramData%\MCPDesk in service mode.
Last updated 30 November 2026. Features change; the docs are the reference.