Learning resourcesReviewed · Anthropic

Claude MCP tunnels quickstart

The Claude MCP tunnels quickstart is a guide for developers connecting Claude to a private MCP server, but it requires research-preview access and manual Docker and certificate setup. It demonstrates a proxy, cloudflared and a sample Python tool server without opening a public listening port. Production readiness and costs are not established.

Researched 13 Nov 2026

In short.

The Claude MCP tunnels quickstart is a tutorial for developers who want Claude to use a private MCP server, but it requires research-preview access and manual infrastructure setup. It covers a three-container Docker Compose deployment, certificates, routing and a greeting tool called through a Console agent. It provides a concrete introduction to the connection process; production suitability, performance, costs and redistribution rights remain unknown. Nothing was executed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage is the complete selected page at https://platform.claude.com/docs/en/agents-and-tools/mcp-tunnels/quickstart.md, including its research-preview notice, prerequisites, macOS/Linux and Windows instructions, embedded Python and YAML examples, expected results and next-step descriptions. Linked access forms, Console pages, concepts, prerequisite guides, production deployment guides and external dependency documentation are excluded. Container contents, dependency licenses, live availability, security properties, performance and runtime behavior were not independently assessed. Nothing was executed.

The overview

Identity

This is Anthropic’s Claude documentation tutorial for connecting a private Model Context Protocol (MCP) server through MCP tunnels. MCP lets an assistant access tools exposed by a server. The resource is a setup guide rather than a standalone application or downloadable integration package.

The source is the complete page at [https://platform.claude.com/docs/en/agents-and-tools/mcp-tunnels/quickstart.md]. It identifies MCP tunnels as a research preview and links to an access-request form.

Assessment

The guide is useful for learning how the Console, tunnel credentials, certificates, proxy routes and MCP tool calls fit together. It supplies the sample server and deployment configuration needed to follow that path.

Its scope is local testing with manually provisioned credentials. A successful greeting would demonstrate basic connectivity, but would not establish production reliability, secure operation of a real tool server or application suitability. No execution results or performance measurements are available.

Users

The main audience is developers building Claude agents that need tools hosted on a private machine or network. Platform engineers can also use the example to understand the deployment components before considering a production configuration.

Beginners receive commands for macOS, Linux and Windows PowerShell, but should expect to work with terminal commands, environment variables, YAML, Docker networking and certificate files. The tutorial does not teach those foundations in detail.

Capabilities

The tutorial shows how to create a workspace-specific tunnel, register a certificate authority, configure an echo route and attach that route to an agent in Claude Console Sessions. The sample endpoint is [https://echo.<your-tunnel-domain>/mcp], with no public listening port exposed by the supplied Compose configuration.

It also explains how to replace the sample server: add another MCP service to the Compose deployment or its Docker network, add a proxy route and restart the proxy. Compatibility with particular existing MCP servers is not demonstrated.

Using it

Requirements

The stated prerequisites are Docker and Docker Compose on a machine with outbound internet access, a Claude Console role permitted to manage MCP tunnels, and OpenSSL 1.1.1 or later. Preview access must be requested. The precise eligible Console roles and account requirements are not specified on this page.

On Windows, OpenSSL must be installed separately and available on PATH. The sample uses Python 3.13-slim inside a container and installs the mcp package there. The deployment therefore needs access to its container registries and package source; hardware sizing and supported Docker versions are not stated.

Mechanism

Two containers provide the tunnel stack: an MCP proxy and cloudflared. A third container runs the sample MCP server. cloudflared shares the proxy’s network namespace and uses the tunnel token to establish the tunnel connection.

The proxy terminates the documented inner TLS connection using a server certificate signed by a certificate authority you generate. Uploading the CA certificate to the Console supplies the trust certificate for that connection. The echo route forwards to the sample server over HTTP on the Docker network. This example does not demonstrate TLS between the proxy and that server.

Setup

Create a tunnel in the intended Console workspace with programmatic access disabled, then copy its domain and token into local environment variables. Generate a CA and server certificate, upload only the CA certificate to the Console, and create the Python server, proxy configuration and Compose file shown in the guide.

Start the deployment with docker compose up -d. The guide expects one route configured log entry for echo and four Registered tunnel connection entries. Then create a Console session and agent, select the tunnel, set the subdomain to echo and path to mcp, and choose an environment that permits MCP servers. These are documented steps and expected signals, not observed results.

Example

The Python sample defines a FastMCP server with a hello tool. It accepts a name, defaults to world and returns a greeting. The server uses the streamable-http transport on port 9000.

The suggested prompt is “Use the hello tool to greet tunnel.” If Claude calls hello with the name tunnel, the function would return “Hello, tunnel!” The page says a tool call and result should appear. Neither that call nor its result was observed here.

Assessment & evidence

Limitations

MCP tunnels are in research preview. The page does not establish availability guarantees, throughput, latency, concurrency limits, recovery behavior or compatibility with specific real-world MCP servers. The sample tool requires no authentication, so it does not demonstrate authorization for sensitive tools.

The example generates unencrypted private keys, sets the server key to mode 644 on macOS/Linux and mounts the entire data directory into the proxy as read-only. That directory also contains the CA private key. Read-only mounting prevents container writes but still permits reads; this local example does not establish suitable key isolation for production.

The server certificate expires after 90 days, and the local procedure does not describe renewal or credential rotation. The sample installs mcp without a version constraint at startup, while the Python image uses a tag rather than a digest, leaving parts of the example subject to dependency changes.

Reasoning

The documented design fits situations where Claude needs to reach a private tool server without opening a public listening port. The tradeoff is operating containers, managing a tunnel token and maintaining certificate files.

Manual provisioning and a small greeting tool make the connection process easier to inspect. They leave operational questions unresolved for larger deployments. The proxy and cloudflared images are pinned by SHA-256 digest, which identifies those exact example images, but does not fix the unpinned Python package installation.

Alternatives

The page points to a hardened single-host Docker Compose deployment, with or without programmatic access, at [https://platform.claude.com/docs/en/agents-and-tools/mcp-tunnels/deploy-compose]. It also points to a Kubernetes Helm deployment described as providing automatic credential management at [https://platform.claude.com/docs/en/agents-and-tools/mcp-tunnels/deploy-helm].

Those descriptions identify possible next deployment paths, but the linked pages are outside the supplied evidence. Their prerequisites, implementation details, costs and security properties are not assessed. No comparison with other tunneling services is established.

Evidence

The evidence is the complete documentation page at [https://platform.claude.com/docs/en/agents-and-tools/mcp-tunnels/quickstart.md], captured on 13 November 2026. Its source revision is sha256:b91e248ad850b3b526aadcacf27caf5c9e16e3cb0de81e59ed951061a0c5702a.

The page supplies configuration, code and expected log and tool behavior. Its closing statement about end-to-end verification describes the intended tutorial outcome; it is not an execution receipt. Nothing was executed, and no independently observed logs, tool results or benchmarks are available.

Access & freshness

Costs

The page gives no tunnel pricing, Claude session or model charges, free quotas, or account-plan pricing. Whether preview access carries additional conditions or fees is unknown.

A running Docker host and outbound connectivity are required, but no resource consumption or hosting estimates are supplied. Total setup and operating cost cannot be calculated from this page.

Rights

The supplied page does not state a licence or redistribution grant for the documentation or its code examples. It also does not include licence terms for the proxy image, cloudflared image, Python image or mcp package.

Permission to redistribute those materials or bundle them into another product is unknown from this evidence. No redistributable package is established by the page.

Freshness

The capture timestamp is 2026-11-13T08:14:57.063Z. This records when the supplied page was captured, not when Anthropic last updated it. The page provides no publication date, feature release number or maintenance history.

Research-preview availability, Console interface details and dependency behavior may change. The current validity of the access process, commands and pinned image references beyond this snapshot is unknown.

Actions

For a first evaluation, request preview access at [https://claude.com/form/mcp-tunnels], confirm Console permissions and prepare Docker Compose and OpenSSL. Follow the greeting example and check both tunnel logs and the actual tool response before introducing your own server.

For a real deployment, consult the linked production guide that matches your environment. Resolve tool authentication, private-key access, certificate renewal, dependency versions and pricing before relying on the service. Confirm redistribution rights separately if you intend to publish a package containing the examples or images.

Evidence for this report

selected-page.txtselected · checked 2026-11-13