Security

End-to-end encryption with local AI clients

Between your AI client's machine and your desk, MCP Desk only relays ciphertext. It works for local clients, not for Claude.ai or ChatGPT connectors.

What it is

If your AI client runs on a computer you control (Claude Code, Claude Desktop, Cursor, Codex), you can now use the blind lane. The MCP Bridge, running in a container on that computer, sits between the AI client and MCP Desk. It encrypts every request on your machine, and your desk's agent decrypts it. The MCP Desk gateway and hub in the middle copy bytes: they hold no keys and cannot read your commands, file contents or tool results, even if someone decrypts the HTTPS around them.

  • Encryption and compression happen on the two endpoints: your client machine and your desk. Not on MCP Desk's servers.
  • Both sides prove who they are. The bridge talks only to the desk key it pinned when you paired, and the desk accepts only client machines you authorized.
  • Each session gets fresh keys, so recorded traffic cannot be read later.
  • Nothing changes for the rotating one-time code, invites or your dashboard. Those keep working as before for connections that do not use the blind lane.

Two lanes exist side by side. Which one you are on depends on the AI client, see the limits.

Set it up

Recommended, not required. Without the bridge, add the sign-in URL https://mcp.mcpdesk.ai/oauth/mcp to your AI client and tell it link desk (see Add to clients). Use the bridge if you want end-to-end encryption or push_file / pull_file. Files of any size already work without it through download_link / upload_link.

One line. On the computer your AI client runs on (never on the desk), run the line shown under Download. It downloads a helper into a temporary folder, runs it and deletes it, and the helper runs the bridge in a container (Podman or Docker, already on the computer, or one installed for you when there is none). No program of MCP Desk is installed on your computer outside the container. It asks you once in the browser to approve it (when your AI client offered the setup and you answered Yes in that client’s own form, a one-time setup code stands in for it and no browser page opens; a yes typed in the chat does not count, so the browser opens once), and registers the bridge in Claude Code, Codex, Cursor, Claude Desktop and Grok in place of the cloud address, after copying their config files. It needs no administrator rights, except when a container runtime has to be installed. Restart your AI client afterwards. To go back, run curl -fsSL https://mcpdesk.ai/install.sh | sh -s -- uninstall: it puts the cloud address back where it was changed and removes the container, and your sign-in stays in a data volume until you add --purge to that line. Screen and browser tools work through the bridge too, and the desk still asks you to press Allow every time.

In a container

  • What runs where. The bridge is the same mcpdeskagent program, started from our image in a container named mcpdesk-bridge. Your AI client runs the container runtime's own exec command (for example docker exec -i mcpdesk-bridge /mcpdeskagent bridge), which talks to the bridge in the container; that needs no program or script of ours on your computer. The container publishes no port, and no key is written into any client's config file.
  • Where the keys live. The sign-in, the bridge key and the desk pairings are in a data volume of the container. Exactly one folder of your computer is shared with it, MCPDeskFiles in your home folder, for the files you move through push_file and pull_file: never your home folder itself, no other folder, no key. An AI client that uses the bridge can read, replace and send any file in that folder, and can fill it, so keep no secrets there. Uninstalling keeps the volume and the folder; uninstall --purge deletes it after you type yes.
  • The route. The bridge tries a direct path to your desk and otherwise uses our relay, still end-to-end encrypted: our servers see only ciphertext. The relay is the way that always works; it is slower for large files, and the encrypted bytes pass through our servers. From a container a direct path can open when your desk runs the latest agent and the desk is on a typical home or office network; behind a phone hotspot or another strict network the session stays on the relay, whatever Docker or Windows setting is used.
  • What a container does not change. The container holds the keys and the network code; the host still runs the script you downloaded (from a temporary folder, deleted afterwards) and, when there was no container runtime, a newly installed one with its virtual machine. Read install.sh or install.ps1 first if you want to know what it will do. A container runtime you did not already run can use 1 to 2 GB of memory on a Mac or Windows PC.

The steps below pair the bridge in the container with a code shown on the desk's own screen, for when you want that instead of the automatic pairing. Nothing more needs to be installed for it.

Show how to pair the bridge with a code from the desk

You need the agent running on the desk, and the bridge container set up by the one line above on the computer your AI client runs on.

1. On the desk: get a pairing code

mcpdeskagent pair-code --data-dir "<desk-data-directory>"

Use the same data directory as the running desk agent; omit --data-dir only when both commands use the same default directory. It prints a separate 6-digit pairing code, valid for about 10 minutes and single use.

2. On the AI client's computer: pair the bridge in its container

docker exec -i mcpdesk-bridge /mcpdeskagent pair --desk 123456789 --code 123456

With Podman, write podman instead of docker. Use the desk's 9-digit code for --desk. This stores the desk's key in the container's data volume and registers the bridge's key on the desk. The bridge uses the sign-in it already has, so no token is typed or written anywhere.

3. Your AI client

Nothing to change: the one line already gave each AI client the entry docker exec -i mcpdesk-bridge /mcpdeskagent bridge (or the same with podman). Run /mcp or restart the client. Later bridge connections use the saved keys, without another pairing code or rotating OTP. The desk's access mode still applies.

Which lane am I on?

  • Bridge: the tool list contains push_file, pull_file and transfer_status, and download_file describes itself as "Prefer pull_file in this session".
  • Standard MCP (the cloud address): those three tools are missing; the AI gets download_link / upload_link instead, and download_file / upload_file point at them.

Which key login skips the one-time code?

ConnectionWhat it requires
Hosted account MCP URLconnect_device requests the desk OTP. Installing a public-key file on the desk does not add key signing to a hosted client. Claimed desks still have their owner’s dashboard connection path.
Paired MCP BridgeA valid account bearer, authorized client private key and pinned desk key. Subsequent bridge handshakes need no rotating OTP.
Legacy authorized_keys / public.keySigned hub challenges use these keys, but creating an invite still needs the desk OTP. These files are separate from the bridge client list.

Bridge keys are authorized per desk, not bound to one website account. Validation accepted the same authorized private key with another valid account bearer. A valid bearer without an authorized key is refused; an invalid bearer is refused even with the key. Do not share the private key.

Pairing creates client.key on the client, registers its public key in the desk’s e2e_clients, and stores desk pins in the client’s e2e_desks.json. The client key uses the agent’s Ed25519 PKCS#8 DER format, not an OpenSSH private-key text file. Use the built-in pairing commands to provision these files.

How pairing keeps the code on the desk

The pairing code is made on the desk by pair-code, shown only there, and typed by you on the other machine. It is never sent to MCP Desk. It is also separate from the rotating one-time code, which the desk does send to MCP Desk. Pairing uses a password-authenticated key exchange, so the relay in the middle cannot pair its own key to your desk, and a wrong guess reveals nothing. Failed attempts are rate-limited. After a successful pairing the code is spent.

Once a bridge has pinned a desk, it never falls back to pairing by itself. If the desk's key changes, the bridge refuses to send anything until you reset it on purpose.

Large files without burning tokens

In end-to-end mode the bridge adds three tools: push_file (this machine → the desk), pull_file (the desk → this machine) and transfer_status. The file streams inside the encrypted session as raw chunks: no base64, and none of it passes through the AI conversation. A multi-gigabyte file costs the model one receipt line with the size and the SHA-256. Ask your AI to "push site.zip from MCPDeskFiles to /var/www/site.zip on the desk" or "pull /var/log/app.log into MCPDeskFiles". The bridge runs in a container that sees one folder of your computer, MCPDeskFiles in your home folder, so a local path means that folder: it appears inside the container as /workspace, and a host-style path in it (C:\Users\you\MCPDeskFiles\site.zip, ~/MCPDeskFiles/site.zip), a plain file name and /workspace/site.zip are all accepted. Any other local path is refused before a byte is copied, and so is a file larger than the free space. On the desk side, give an absolute path.

  • Receiving a file on the desk needs full access, the same as upload_file; sending one is allowed wherever download_file is. --allowed-root and the tool allow/deny lists apply, and every transfer is in the desk's audit log.
  • Files are written to a .part file and renamed only after the SHA-256 matches. Half-received files are removed if the transfer or the session ends early.
  • Measured 100 MB in about 6 seconds through the relay (16 MB/s). The gateway still sees ciphertext only.
  • Claude.ai and ChatGPT connectors cannot use these tools: the cloud service has no disk of yours to copy to. For them, the desk's download_link / upload_link move files of any size through the gateway (which can read them); upload_file / download_file stay for a few MB.
  • On Standard MCP (the https://mcp.mcpdesk.ai/<user-id> entry) these three tools do not exist either. The AI uses download_link / upload_link there; a download_file of a file over 1 MB carries a one-line note pointing at download_link and pull_file.

List and revoke

  • On the desk, using the agent’s data directory, list authorized clients: mcpdeskagent clients --data-dir "<desk-data-directory>"
  • Remove one by part of its label or key (at least 3 characters): mcpdeskagent clients --data-dir "<desk-data-directory>" --revoke my-laptop. Revocation rejects its next new handshake; existing sessions are not promised to end immediately.
  • On the AI client's computer, forget a desk's pinned key (for example after reinstalling the desk), then pair again: docker exec -i mcpdesk-bridge /mcpdeskagent bridge --desk 123456789 --forget-desk (or podman)

The honest limits

  • Claude.ai and ChatGPT connectors cannot use it. There, the cloud service itself is the MCP client and cannot run a local bridge, so our gateway must be the endpoint and read that traffic to deliver it. On that lane MCP Desk does not claim end-to-end encryption. Tool commands and file contents are still not stored or logged by the gateway.
  • The AI vendor still sees what the model sees. Encryption protects the path to your desk, not what you or the tool results put into the conversation with Anthropic, OpenAI or another provider.
  • Metadata is visible. MCP Desk can see which account connected to which desk, when, for how long, and how many encrypted bytes moved. Compression and padding hide content, but message sizes are still observable.
  • You trust the binary. The same mcpdeskagent program runs on both ends, and we publish it. In a container it is our image docker.io/mcpdesk/bridge, which the helper pulls by its digest (a SHA-256 that is fixed for each release and published in the release folder as BRIDGE_IMAGE), never by a tag. The digest protects against a swapped image on the registry; the helper and the digest come from mcpdesk.ai, so you still trust our web server. If a tampered build were installed on your machines, encryption would not help. The Mac builds are signed with our Apple developer identity and notarized; the Windows .exe and the Linux files are not code-signed, so verify those against the SHA256SUMS of the release before running them (how to check a download).
  • A compromised endpoint is out of scope. Anyone who controls your desk or your client machine can read everything there.

See also Security, the Privacy Policy and the FAQ.