Guide

How to connect Cursor to a remote machine with MCP

Point Cursor’s agent at a different computer: a home PC, a Windows test machine or a build server. One URL in mcp.json and one small agent on that machine.

Local MCP tools vs a remote machine

Most Cursor MCP guides cover tools that run on the same PC as Cursor. This page is about a different machine: Cursor stays where you work, and the commands run on the other computer.

  • Run tests on a real Windows machine while you code on a Mac.
  • Read logs and restart services on a build server.
  • Use a disposable desktop, and keep API keys off the remote machine: it has no AI install, no login and no key.

What you need

  • Cursor, with MCP support, on your own computer.
  • The computer to reach: Windows, macOS, Linux (or experimental Android).
  • An MCP Desk sign-in (Google or Microsoft). MCP Desk is free.

Step 1. Run the agent on the remote machine

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.

macOS 11 or later (Intel and Apple Silicon)

Open the disk image from the download section, drag MCP Desk to Applications and open it.

Linux (x86_64 and aarch64)

curl -fL -o mcpdeskagent "https://mcpdesk.ai/downloads/latest/mcpdeskagent-linux-$(uname -m)"
chmod +x mcpdeskagent
./mcpdeskagent

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.

Step 2. Add MCP Desk in Cursor (mcp.json or the MCP settings panel)

Add this to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):

{
  "mcpServers": {
    "mcpdesk": {
      "url": "https://mcp.mcpdesk.ai/oauth/mcp"
    }
  }
}

Or use the one-click button, which opens Cursor and asks to add the server:

Add to Cursor

Sign-in URL: https://mcp.mcpdesk.ai/oauth/mcp.

Step 3. Sign in, link the desk, press Allow

In Cursor’s MCP settings, connect mcpdesk. Cursor opens your browser: sign in to MCP Desk and press Allow. Then tell Cursor’s agent “link desk 123 456 789”, with your desk’s own code, and press Allow on the remote machine.

Approve on the desk. A prompt shows who wants to link. On a headless server, run mcpdeskagent link approve --wait 120 (add --installed if the agent runs as a service).

The link is permanent until you unlink it. Next time there are no codes to type.

If it does not connect

  • The sign-in window did not open. Your browser may have blocked the popup. Allow it and connect again.
  • The agent is not Online. Check the agent’s window or run it again on the remote machine. It shows its desk code when it is Online.
  • You did not press Allow. Linking waits for Allow on the remote machine.
  • The code is wrong. The 9-digit desk code stays the same; the one-time code changes every 10 minutes.

Use Cursor’s agent on that machine

  • “List my desks, then run the test suite on the Windows one and tell me what fails.”
  • “Read the last errors in the service log on the build server.”
  • “Open a live view of the Windows PC.”

With several linked desks, ask Cursor to connect to another by its code. Start the agent with --mode readonly to give Cursor only the tools that inspect, or --mode playbooks for vetted scripts. The default is full.

Recommended: the MCP Bridge on the computer that runs Cursor

Cursor is a local client, so the MCP Bridge works with it. The bridge runs in a container on the computer Cursor runs on, never on the remote machine. If you have run the bridge line there, Claude Code, Codex, Cursor, Claude Desktop and Grok already use the bridge instead of the cloud address, and neither bridge path lets MCP Desk read the data.

Connection What you install Who can read the data connection.mode
Standard MCP Nothing. Add the sign-in URL to your AI client. The traffic goes through the MCP Desk gateway, encrypted in transit with TLS. The gateway reads each request to route it, so MCP Desk could, in theory, see the data. Commands and file contents are not stored or logged. standard
MCP Bridge via tunnel One line on the computer your AI client runs on, never on the remote desk. It runs in a container. Only your two computers hold the keys. The traffic passes through an MCP Desk tunnel as sealed bytes, and MCP Desk cannot read it. tunnel
MCP Bridge, direct The same container and the same line. Nothing more to set up. Only your two computers. The path goes straight between them when the network allows, with no MCP Desk server on it: direct, encrypted end to end. direct

To see which one you are on, ask your AI to run sysinfo (the same tool as system_info) and read connection.mode. The bridge starts on the tunnel and moves to the direct connection by itself when the network allows it.

macOS and Linux
curl -fsSL https://mcpdesk.ai/install.sh | sh
Windows (PowerShell)
irm https://mcpdesk.ai/install.ps1 | iex

Restart Cursor afterwards. How the bridge works and its limits.

FAQ

Can Cursor’s agent run commands on another computer?

Yes. With MCP Desk added, Cursor’s agent gets MCP tools on the remote computer: it can run commands, read and write files, manage processes and services and transfer files. The remote computer runs only a small agent, with no Cursor install.

Where do I put the MCP Desk URL in Cursor?

In mcp.json. Use ~/.cursor/mcp.json for all projects or .cursor/mcp.json inside one project, with an entry under mcpServers that has the sign-in URL as its url. You can also use the Add to Cursor button on this page, or add it in Cursor’s MCP settings.

Does this work if the remote machine is behind a firewall?

Yes. The MCP Desk agent opens an outgoing connection, so no inbound port, port forwarding or public IP is needed. It only needs outbound internet access.

Should I use the MCP Bridge with Cursor?

Yes, if you want end-to-end encryption. Cursor is a local client, so the bridge works with it. One line on the computer Cursor runs on sets it up, in a container. Without it, Cursor uses Standard MCP through the MCP Desk gateway.

Can I switch between several linked machines?

Yes. Ask the agent to list your desks, then connect to another with its desk code. With Standard MCP the agent can also run a single call on another linked desk by naming it, without switching.

Last updated 30 November 2026. Features change; the docs are the reference.