Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Tailscale 5 min read Opinion easyNovice

How Tailscale can make secure MCP access with DCR easier

MCP's authorization spec strongly recommends OAuth Dynamic Client Registration (DCR), a decade-old spec that major IdPs like Google, GitHub and Entra ID still don't support, which is why MCP servers often force users to create OAuth clients manually. Tailscale proposes running a local DCR-capable authorization server behind tailnet ACL grants, so only specific identity-provider groups can reach it and register clients. For simple internal deployments, MCP servers can skip OAuth entirely and check the caller's Tailscale identity directly. Gateway and intermediary-agent setups likely need STS token exchange, which Tailscale is adding to its experimental tsidp server.

Assumes: OAuth 2.0 flowsModel Context Protocol basics

Related posts

  • Grok Bot has a Tailscale integration—and now you can, too

    Tailscale mediumAdept

    Tailscale OAuth apps, now generally available, let third-party agents join a user's tailnet through a standard OAuth 2.0 flow and act on that user's behalf, unlike existing OAuth clients that create tag-owned devices under a shared service identity. Devices provisioned this way carry the user's identity, so access policies, audit logs and quotas still apply. Grok Bot already uses the flow to reach private MCP servers without exposing them publicly. A sample policy uses a custom posture attribute with defaultSrcPosture and srcPosture so the bot reaches only designated MCP servers rather than inheriting the user's full access (Premium/Enterprise), while other plans can use tag-based rules instead.

  • Bringing MCP to the Cloud

    Neon mediumAdept

    Neon moved its MCP server from a locally spawned stdio process authenticated by a long-lived API key to a hosted server at mcp.neon.tech, using SSE for server-to-client messages and HTTP POST to a /messages endpoint routed by an in-memory session map. Authentication uses OAuth 2.1: the MCP server acts as an OAuth server to MCP clients, with dynamic client registration, PKCE and refresh tokens, and as an OAuth client to Neon upstream. Each session gets its own MCP server instance scoped to the user's Neon token. The server runs as a Docker image on Fly. Open issues include the Node.js dependency introduced by mcp-remote and clients restarting the OAuth flow instead of using refresh tokens.

  • Codex Cloud shipped with Tailscale support. Nobody told us.

    Tailscale mediumAdept

    OpenAI's Codex Cloud launched with Tailscale as its only VPN provider, built on public Tailscale features without any partnership. Setup uses a reusable, ephemeral, tagged auth key (e.g. tag:codex) so each cloud task VM joins the tailnet with scoped access. Connectivity is limited to HTTP/HTTPS, plus arbitrary TCP via HTTP CONNECT on proxy:8088, and IPv4 subnet routes. MagicDNS, split DNS, UDP, ICMP, SSH and inbound connections are unsupported. To fence in agents, tag agents and resources, restrict access with grants, keep key expiry, enable network flow logs and turn on device approval.

  • Your Org, Your Tools: Building a Custom MCP Catalog

    Docker mediumAdept

    A private MCP catalog lets an organization restrict which MCP servers developers and AI assistants can reach. You build one by forking Docker's read-only docker-mcp catalog, copying only approved server entries into a new catalog, and re-hosting their images in your own registry such as GHCR. You can either retag pinned Docker Hub digests or rebuild multi-arch images from the source repos with buildx when Docker Hub is blocked. MCP Gateway then serves the catalog through one stdio/SSE endpoint per client, which cuts configuration from X×Y entries to Y. The post closes with an example VS Code mcp.json entry.

  • Docker MCP Gateway: Open Source, Secure Infrastructure for Agentic AI

    Docker mediumAdept

    Docker's MCP Gateway, now open source, is a single enforcement point between AI agents and the MCP servers they call, aggregating multiple containerized servers behind one interface and integrating with Docker Compose. The `docker mcp` CLI covers browsing the catalog, storing secrets such as API keys, writing per-server host config, and running gateways that expose chosen servers and a restricted set of tools over transports like SSE. Security interceptors can be switched on at startup to verify container image signatures, block secret-like content in payloads, and log tool calls. It ships in Docker Desktop and works with any community edition of Docker.

The quest for software engineering knowledge.

Look:
Layout: