How to set up a remote MCP server without opening ports
Reach a computer from your AI client with no port forwarding, no public IP and no VPN: the machine dials out, and your AI signs in over MCP.
The usual problem: inbound access
An MCP server on your own computer is easy for a local client and hard for anything else. To reach it from outside, you usually have to expose it: forward a port on the router, put the machine on a public address, run a tunnel or join a VPN. Each of those is something to set up, secure and keep running.
How an outgoing connection solves it
MCP Desk turns it around. The small agent on the computer makes an outgoing connection to MCP Desk, and your AI client’s requests travel back to the computer through that connection. Nothing has to come in, so there is no inbound rule to write. It works behind a home router or an office firewall, as long as outbound internet access is allowed.
The wire shows this step by step with an interactive picture.
Step 1. Install the agent (Windows, macOS, Linux)
Run the agent on the machine you want to reach. It is a download, not an installer script: a signed Microsoft Store app or a portable .exe on Windows, a disk image on macOS and one binary on Linux. It shows its 9-digit desk code and goes Online.
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
./mcpdeskagentThe 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.
The one-line install.sh and install.ps1 commands on the home page set up the MCP Bridge on the computer your AI client runs on. They do not go on the machine you want to reach.
Step 2. Add the MCP URL to your AI client
Add https://mcp.mcpdesk.ai/oauth/mcp to your AI client and sign in when it asks. Commands for Claude Code, Cursor, Codex, Grok, OpenCode and VS Code, and the connector screen for Claude, are on Integrations.
Step 3. Link the desk
Tell your AI “link desk 123 456 789” with your desk’s own code, and press Allow on the machine. 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.
What stays closed: ports, public IPs and VPNs
- Ports. No inbound port is opened and no firewall rule is added.
- Public IP. The machine needs none, and no dynamic DNS name either.
- VPNs. No VPN or mesh network is needed on the machine or on your AI’s computer.
- The agent itself. It has no address, password or certificate of its own: it is reached only through MCP Desk, and access ends when you stop it.
Two paths: Standard MCP and the MCP Bridge
How your AI’s requests travel is a separate choice from how the machine is reached. Standard MCP needs nothing installed. The MCP Bridge is recommended for local clients such as Claude Code, Cursor, Codex, Claude Desktop and Grok, and neither bridge path lets MCP Desk read the data. The bridge is not available for ChatGPT or Claude on the web.
| 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.
The illustrated explanation is on the wire, and the bridge in detail is on end-to-end encryption.
Good machines for this
- Home servers, NAS boxes and Raspberry Pi. Linux on x86_64 and 64-bit ARM is supported. See the Linux server guide.
- Office and lab PCs behind a firewall you do not control.
- A family member’s PC, which they run once and read you a code from.
FAQ
Do I need port forwarding to use a remote MCP server?
Not with MCP Desk. The agent on the computer opens an outgoing connection to MCP Desk, and your AI client reaches it through that connection. No router rule, firewall rule or dynamic DNS is needed.
Does the machine need a public IP?
No. It only needs to be able to reach the internet. It works behind a home router, an office firewall or carrier-grade NAT, as long as outbound connections are allowed.
What if the network cannot open a direct path?
Standard MCP always works, because it goes through the MCP Desk gateway. The MCP Bridge starts on the tunnel and moves to a direct connection only when the network allows it. If it does not, it stays on the tunnel, and the data is still end-to-end encrypted: MCP Desk carries sealed bytes it cannot read.
Can this reach a computer inside a virtual machine?
Yes. Run the agent inside the virtual machine, or inside a disposable Windows Sandbox. It only needs outbound internet access, and it gets its own desk code.
How do I end access?
Close the agent and access ends at once. To remove a permanent link, ask your AI to unlink the desk or run mcpdeskagent link revoke on the computer. To remove the agent completely, delete it and its data folder.
Last updated 30 November 2026. Features change; the docs are the reference.