Skip to content

Private MCP connections: reach MCP servers on the user's VPN/tailnet #8395

Open

Description

@vibegui

Problem

Studio calls MCP servers from its own backend, in the cloud, so every connection has to be a public URL. Many useful MCP servers are private on purpose: they run on the user's machine or inside their private network (Tailscale, WireGuard, a company VPN) and should never be on the internet.

Real case: zapzero reads the owner's WhatsApp Desktop database on their Mac. It serves an MCP at http://127.0.0.1:8810/mcp, which is also reachable on the owner's tailnet. Studio can't connect to it. The only ways around that are exposing personal data to the internet (Tailscale Funnel, a public tunnel) or keeping a public proxy MCP that only renders an iframe. We dropped both.

Suggestion (to discuss with the team)

Let a user connect Studio to MCP servers on their own private network. Some possible shapes:

  • Studio joins the user's tailnet: a Tailscale integration (OAuth or an auth key with a tag/ACL the user controls). Connections to *.ts.net or 100.x addresses go out through it.
  • A local connector/relay: a small agent (e.g. decocms connect) running on the user's machine. It opens an outbound connection to Studio and forwards MCP calls to private URLs. Nothing is exposed and it works behind any NAT/VPN.
  • Browser-side calls for private connections: the user's browser, which is already on the VPN, makes the MCP calls. Limited: it only works while Studio is open.

Things to decide

  • Who can use a private connection in a shared org (only the member who owns the device?)
  • Auth: per-connection tokens still apply; the network path is not the auth.
  • Agents and automations running while the user's machine is offline: fail clearly ("private connection unreachable") and never retry in a loop.

🤖 Generated with Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions