Skip to content
MCP server
Registry

Tailnet MCP bridge MCP Server

Reach an MCP server inside your Tailscale tailnet from an agent's sandbox, over stdio.

Tailnet MCP bridge scores 63 (Good), licensed MIT and written in Go. It installs as a local process. It does not declare tools yet. Filed under Uncategorized. GitHub shows 0 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by zedong-pengMITGo0 stars
Trust score
63Good
Trust score 63 of 100, Good

Good trust

63 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 63 comes from

22 + 20 + 0 + 10 + 4 + 7 = 63. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity0 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 0 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "zedong-peng-tailnet-mcp": {      "command": "docker",      "args": [        "run",        "-i",        "--rm",        "ghcr.io/zedong-peng/tailnet-mcp:v0.3.0"      ],      "env": {        "TS_AUTHKEY": "YOUR_TS_AUTHKEY"      }    }  }}

Environment variables

NameRequiredNotes
TS_AUTHKEYSecretOptionalTagged, pre-authorized auth key; only needed the first time

Tools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.

About

tailnet-mcp

A stdio MCP server that forwards everything to a Streamable HTTP MCP server inside your tailnet.

Hosted agents (Grok, cloud coding agents, sandboxed assistants) usually take MCP servers two ways. By URL: the vendor's servers connect, so your server has to be on the public internet. By command: the agent starts a process on its own computer, but that computer is not in your tailnet and you can't run tailscaled there (no root, no TUN). tailnet-mcp is the command: it embeds a Tailscale node (tsnet), joins your tailnet as a tagged device and bridges stdio to the server. Your server stays behind tailscale serve, never on the internet.

agent ──stdio──▶ tailnet-mcp (tag:agent) ══tailnet══▶ tailscale serve ──▶ MCP server on 127.0.0.1

Install

Download a static binary for linux or darwin, amd64 or arm64, from Releases and check it against SHA256SUMS. Or build it yourself:

CGO_ENABLED=0 go install github.com/zedong-peng/tailnet-mcp@latest

Or run the image ghcr.io/zedong-peng/tailnet-mcp with a volume on /home/nonroot/.local/state/tailnet-mcp. It is also listed in the MCP Registry as io.github.zedong-peng/tailnet-mcp.

Use

  1. Publish the server to the tailnet only, on a path nobody can guess:

    tailscale serve --bg --https=8443 --set-path=/$(openssl rand -hex 16) http://127.0.0.1:8080/mcp
    
  2. Mint a one-time, pre-authorized auth key with a tag for the agent (admin console, or the API), and log in once from the agent's computer:

    TS_AUTHKEY=tskey-auth-... tailnet-mcp -hostname my-agent -url https://server.tailnet.ts.net:8443/<path> -check
    

    -check connects, prints the server's tools on stderr and exits. The node key is kept in -state (default ~/.local/state/tailnet-mcp/<hostname>); keep it on persistent storage. Tagged nodes don't expire, so the key is not needed again.

  3. Register the same command, without the key, as the agent's MCP server:

    tailnet-mcp -hostname my-agent -url https://server.tailnet.ts.net:8443/<path>
    

Each process is its own tailnet node. For a second server, run a second process with a different -hostname.

Lock it down

The agent reads untrusted input (web pages, mail), so assume it can be talked into anything its tools allow. Three layers, none of which rely on the agent behaving:

  • Network. Give the tag one grant to the ports it needs and nothing else:

    "grants": [
      {"src": ["tag:my-agent"], "dst": ["server"], "ip": ["tcp:8443"]},
    ],
    "tests": [
      {"src": "tag:my-agent", "accept": ["server:8443"], "deny": ["server:22", "server:443"]},
    ],
    

    Grants that allow everything ("src": ["autogroup:member"], "dst": ["*"]) don't cover tagged devices, so that one grant is all the tag gets.

  • Path. tailscale serve --set-path answers only on the secret path; any other path on the port is a 404. Other devices in the tailnet can't use the server by guessing the port.

  • Server. Enforce permissions where the data lives, not in the agent: a mail server that can only save drafts, a password vault account that is a view-only member of one shared collection. examples/private-tools sets up both.

Behaviour

  • Before the first request it pings the server's node until it answers. Right after a restart the server may still hold a stale path to the node, and the first dial would time out.
  • Only requests that never reached the server are retried, so a tool call is never sent twice.
  • When the server restarts and forgets the session (404, or a 400 about the session), the bridge replays initialize and resends the request. The client doesn't notice.
  • A failed request comes back as a JSON-RPC error with the reason, so the client never waits for an answer that won't come.
  • On EOF it ends the session with DELETE. Logs go to stderr; stdout carries only MCP frames. -v adds tsnet's own logs.

Not supported: the optional GET stream that lets a server send messages outside a response. Servers answer each request in its own response, as almost all tool servers do.

Compared with

  • mcp-remote and other stdio-to-HTTP bridges need a network path to the server. In an agent's sandbox that means a public URL.
  • tailscale up in the sandbox needs root and a TUN device. If someone logs in as a user instead of with a tagged key, the sandbox gets that user's access to the whole tailnet.
  • Tailscale Aperture is a gateway on the server side: it aggregates HTTP MCP servers and grants tools per user. It doesn't get a sandboxed agent into the tailnet, so the two fit together.

Build and test

go test -race ./...
CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" .

Tagging v* publishes the four binaries, the image and the registry entry.

Frequently asked questions

What is Tailnet MCP bridge MCP Server?

Reach an MCP server inside your Tailscale tailnet from an agent's sandbox, over stdio.

How do I install Tailnet MCP bridge MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Tailnet MCP bridge MCP Server runs locally from the Docker image ghcr.io/zedong-peng/tailnet-mcp:v0.3.0 with the command docker run -i --rm ghcr.io/zedong-peng/tailnet-mcp:v0.3.0.

Is Tailnet MCP bridge MCP Server free and open source?

Yes. Tailnet MCP bridge MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does Tailnet MCP bridge MCP Server support remote (HTTP) connections?

No remote endpoint is listed for Tailnet MCP bridge MCP Server. It runs locally on your machine over stdio, started by your MCP client.

How is Tailnet MCP bridge MCP Server's trust score calculated?

Tailnet MCP bridge MCP Server scores 63 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server