MCP Desk remote desktop: an AI on a laptop securely controlling a remote computer through MCP

How to Let Your AI Assistant Securely Control a Remote Computer with MCP

AI assistants are very good at reading logs, finding the cause of a slow machine and writing the fix. What they usually can’t do is touch the computer where the problem lives. That machine might be a home server, a Windows PC in the office, a client’s laptop or a VPS. The usual workarounds are copying output into a chat window, opening SSH or RDP to the internet, or installing a full AI app and pasting an API key onto the remote box. None of them is great.

The Model Context Protocol (MCP) offers a cleaner route. In this guide we look at how an MCP remote desktop called MCP Desk lets Claude, Cursor and other AI clients work on a remote computer or server. The remote machine only makes outgoing connections, so no ports are opened, and with the optional bridge the session runs end-to-end encrypted over a direct peer-to-peer path.

What MCP actually changes

MCP is an open standard that lets an AI client call “tools”, which are small, well-defined actions such as reading a file, listing processes or running a command. The AI decides which tool to call, the tool runs, and the real output goes back to the model.

Most MCP tools run on the same computer as the AI app. The interesting question is how to give your assistant tools on a different machine without turning that machine into a security risk. That is the problem MCP Desk is built for.

How MCP Desk works

The setup has two sides.

The remote computer (the “desk”)

You run one small program, the MCP Desk agent, on the computer you want the AI to reach. Builds are available for Windows (x64 and ARM64), Linux (x86_64 and 64-bit ARM) and macOS 11 or later, with an experimental Android version. The agent shows a 9-digit desk code and a one-time code that changes every 10 minutes.

No model, no AI account and no API key are installed on the desk. The agent dials out over TLS on port 443 and keeps a heartbeat so the desk shows as online. On the machine itself it listens only on 127.0.0.1, which other computers can’t reach. You never forward a port, set up dynamic DNS or change the router.

Your AI client

On the computer where your AI runs, you add one sign-in address, https://mcp.mcpdesk.ai/oauth/mcp, to your AI client. The client opens a browser, you sign in to MCP Desk and press Allow. Then you tell the AI “link desk” with the 9-digit code and press Allow on the remote machine. The official docs explain how to connect your AI client to a remote machine for Claude Code, Claude Desktop, Claude.ai, Cursor, Codex, Grok, OpenCode and VS Code. ChatGPT support is listed as coming soon.

Step by step: let your AI control a remote server

  1. Download and run the agent on the remote computer or server, and note the 9-digit desk code it prints.
  2. Create a free account and, if you like, claim the machine from the dashboard with “Add a desk”.
  3. Add the sign-in URL to your AI client. In Claude Code that is a single command: claude mcp add --scope user --transport http mcpdesk https://mcp.mcpdesk.ai/oauth/mcp, then /mcp and Authenticate. In Claude Desktop or Claude.ai, go to Settings, then Connectors, then Add custom connector, and paste the same URL. Cursor has an “Add to Cursor” button on the docs page.
  4. Link the desk. Say “link desk 123 456 789” (your own code) and press Allow on that machine. The link is permanent and makes the desk private to your account until you ask the AI to “unlink desk”.
  5. Ask for real work. For example: “Is the web service on my VPS still running? Show me the last errors in its log.”

For a server-focused walkthrough with headless setup notes, see the guide on how to give Claude access to your server.

Security: no open ports, a direct connection and you in control

Letting an AI run commands on a real machine should make you careful. Several parts of the design limit what can go wrong.

Outgoing connections only

Because the agent connects outwards, nothing on the internet can reach the machine directly. There is no exposed SSH or RDP port for scanners to find, and a home server behind a normal router works exactly as it is.

Two connection paths

Standard MCP sends requests from your AI client through the MCP Desk gateway to the desk, encrypted in transit with TLS. The gateway reads each request in passing to deliver it, but commands, results and file contents are not stored or logged.

The MCP Bridge is the recommended option for local clients such as Claude Code, Claude Desktop, Cursor, Codex and Grok. It runs in a small, locked-down container on your own computer and seals every request so that only your two machines can read it. When the network allows, the traffic goes peer-to-peer over a direct line between the bridge and the desk. When it doesn’t, a relay carries the same sealed bytes without holding any keys. One honest limit: cloud connectors such as Claude.ai can’t use the bridge, so they use the Standard path.

The full details, including what the service can and cannot see and how to check it with a packet capture, are on the MCP Desk security page.

Modes and tool limits

The agent has three access modes. readonly is for looking only, playbooks runs prepared actions, and full allows commands and file changes. Full is the default, so pick readonly when you just want a diagnosis. You can narrow things further with --allow-tools or --deny-tools, and --allowed-root keeps file tools inside chosen folders. The agent also keeps a local audit log of tool calls on the machine itself.

Codes, approvals and an off switch

A new code-based connection needs both the desk code and the current one-time code, so a code someone read out last week opens nothing. Access ends when you close the agent. Updates are only accepted when they’re signed with a key built into the agent, and you can turn updating off.

What people use it for

The MCP Desk use cases page lists many scenarios. A few stand out:

  • Servers and VMs: run the agent as a systemd unit or Windows service, check services and read logs in plain language, and switch from readonly to full only when you want the AI to act.
  • Home network: reach a NAS, Raspberry Pi or home server with no port forwarding, VPN or public IP.
  • IT and family support: ask “why is the front-desk PC so slow today?” and let the AI check running programs, disk space and services on that PC.
  • Many machines, one chat: list your desks and run the same check on each one, all from one AI subscription.
  • Build and test: run end-to-end tests inside a disposable Windows Sandbox and throw it away afterwards.
  • Live view: open a one-time browser link to watch the screen, or take over with mouse and keyboard when the desk owner allows control.

Is this better than opening SSH to your AI?

Exposing a self-hosted MCP server or SSH means you have to keep it reachable over HTTPS, handle authentication and watch an open port. With the agent model, the server only dials out, the AI never holds an SSH key, and you limit tools per machine. Your AI provider’s subscription and usage limits still apply, but MCP Desk itself is free, with one plan and everything included.

Tips before you start

  • Test the agent in a throwaway VM or container before running it on an important machine.
  • Start with --mode readonly on production servers.
  • Use the MCP Bridge with local AI clients when the work is sensitive.
  • Don’t keep secrets in the shared bridge folder, because AI clients that use the bridge can read it.

FAQ

Do I need to install an AI app on the remote computer?

No. Only the MCP Desk agent runs there. The AI stays where you already use it and sends tool calls.

Do I need to open ports or set up a VPN?

No. The agent makes outgoing connections only, so the firewall and router stay closed.

Is the connection encrypted?

Standard MCP is encrypted in transit with TLS. The MCP Bridge adds end-to-end encryption between your computer and the desk and goes peer-to-peer when the network allows.

Which AI clients work?

Claude Code, Claude Desktop, Claude.ai, Cursor, Codex, Grok, OpenCode and VS Code are documented. ChatGPT is listed as coming soon.

How much does it cost?

MCP Desk is free. You still pay whatever your AI provider charges for its own service.

How do I stop access?

Close the agent, or ask your AI to “unlink desk”. To remove it completely, delete the agent and its data folder.

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *