MCP tunnels is a Research Preview feature. Request access to try it.
This quickstart takes you from zero to Claude calling a private MCP server through a tunnel. It uses Docker Compose with manually supplied credentials, which is the shortest path for local testing. For production deployments, see Deploy with Helm or Deploy with Docker Compose.
A three-container stack on your machine: a sample MCP server, the tunnel proxy, and the outbound connector. When it's running, the sample server is reachable from Claude at https://echo.<your-tunnel-domain>/mcp even though nothing is listening on a public port.
openssl binary must be on your PATH).Create a tunnel
In the Claude Console sidebar, go to Manage > MCP tunnels and click New tunnel. Give it a name. Leave Set up programmatic access off; this quickstart uses manually supplied credentials.
After it's created, open the tunnel. Copy two values from the Connection section:
abcd1234.tunnel.anthropic.com)Set up the deployment directory
Generate a CA and server certificate
The proxy terminates an inner TLS handshake using a certificate signed by a CA you control. Generate both:
Back in the Console, on the tunnel detail page, click Add certificate and upload data/ca.crt (or paste its contents). The tunnel status flips to Active.
Write the sample MCP server
Write the proxy config and compose file
Start it
You should see one route configured line for echo and four Registered tunnel connection lines. The containers take a few seconds to start; rerun the log commands if they come back empty.
Call it from Claude
In the Console, go to Managed Agents > Sessions and create a session. In the agent picker choose Create new agent, then click + MCP Server, select your tunnel, set Subdomain to echo and Path to mcp. Then ask:
Use the hello tool to greet tunnel.
You should see a tool call followed by its result.
The tunnel is verified end to end. For production deployments:
Hardened single-host deployment, with or without programmatic access.
Kubernetes deployment with automatic credential management.
Was this page helpful?