Secure MCP Tunnel Client

Connect private or localhost MCP servers to OpenAI products without exposing them to the public internet.

Stars
★ 670
Last updated
1d ago v0.0.21
FARS reviewed
Nov 07, 2026 +1 new
License
Apache-2.0
Primary language
Go

At a glance

How it runs
CLILibrary / SDKAgent plugin / skill
Works with
Platform-specificChatGPT · Codex · OpenAI API
Cost
Free software; you pay for model usage
Setup effort
Medium · a few setup steps
You'll need
An MCP serverOpenAI Secure MCP Tunnel control planeOpenAI tunnel IDOpenAI runtime API keyGo toolchain for source buildsShell / CLINetwork accessLocal filesystemMCP Server
Typical use
An enterprise platform team needs ChatGPT to call an MCP server inside a Kubernetes private network, while security policy prohibits public endpoints and new inbound firewall rules.
Not a fit if
  • Teams needing a provider-neutral tunnel; the core path depends on OpenAI's hosted control plane
  • Fully isolated networks that cannot allow outbound access to OpenAI
  • Teams unwilling to manage tunnel IDs, runtime keys, and organization permissions
Maintenance
Commits in the last 30 dayslast commit 2026-12-02latest release v0.0.21 (2026-11-14)+1.9 ★/day over 7 days
Source review
82/100 · Good

What does this agent do, and when should you use it?

Secure MCP Tunnel Client is a customer-run Go client that connects an MCP server on a laptop, VM, Kubernetes cluster, or private network to an OpenAI-hosted tunnel endpoint. It long-polls the OpenAI control plane over HTTPS, receives JSON-RPC requests, and forwards them to the target MCP server over Streamable HTTP, stdio, or an in-memory transport. The repository provides a CLI, an embeddable Go SDK, native runtime-management commands, and Codex assistant and plugin entry points. Its operational surface includes /healthz, /readyz, /metrics, and /ui, along with live log-level control and redacted support-bundle export. It fits organizations that can permit outbound access to OpenAI but cannot approve a public MCP endpoint; the core path depends on OpenAI Secure MCP Tunnel rather than offering a provider-neutral tunnel.

At startup, the client calls GET /v1/tunnels/{tunnel_id} for tunnel metadata and fetches OAuth Protected Resource Metadata from the MCP server for diagnostics. It then long-polls GET /v1/tunnels/{tunnel_id}/poll, routes received requests to the main binding, an additional configured channel, or a registered harpoon target, invokes the MCP server over Streamable HTTP, stdio, or Go in-memory transport, and submits results through POST /v1/tunnels/{tunnel_id}/response. It can relay Streamable HTTP session termination, present a separate client certificate and key to the control plane, and automatically select the OpenAI mTLS host when appropriate. tunnel-client init writes a validated profile, doctor --explain diagnoses missing startup requirements, run starts the foreground poller, and runtimes create|connect|list|status|stop|rm manages supervised local runtimes. The admin server publishes health, readiness, and Prometheus metrics; its UI exposes instance and channel state, runtime log controls, and a redacted bundle containing recent logs, a metrics snapshot, and runtime YAML.

  1. An enterprise platform team needs ChatGPT to call an MCP server inside a Kubernetes private network, while security policy prohibits public endpoints and new inbound firewall rules.
  2. A developer has a localhost MCP server on a laptop and wants a short CLI path to use it from ChatGPT or Codex.
  3. An operations team needs a long-running tunnel daemon with health probes, readiness checks, Prometheus metrics, and a local UI for production troubleshooting.
  4. A Go service author wants the MCP server and tunnel client in one process, using mcp.NewInMemoryTransports() instead of binding a port or using stdio.
  5. A team operating behind an outbound proxy, private PKI, mTLS, or Cloudflare tunnel wants documented configuration samples and deployment paths.
  6. A Codex user wants a supervised local connection through runtimes connect and explicit process, health, and readiness checks before declaring it operational.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • brew install openai/tools/tunnel-client
Environment variables
CONTROL_PLANE_TUNNEL_ID CONTROL_PLANE_API_KEY OPENAI_ADMIN_KEY
Install notes cover
macOS

How do you install or deploy this agent?

Install the official Homebrew formula:

brew install openai/tools/tunnel-client
tunnel-client --version
tunnel-client help quickstart

A source build requires the Go toolchain:

go build ./...
go test ./...
make admin-ui
go build -o bin/tunnel-client ./cmd/client
./bin/tunnel-client help quickstart

For an embedded Go integration:

go get github.com/openai/tunnel-client

Before first use, obtain a CONTROL_PLANE_TUNNEL_ID and create a separate runtime API key, CONTROL_PLANE_API_KEY, whose principal has Tunnels Read + Use. OPENAI_ADMIN_KEY is only for tunnel-client admin tunnels list|create|update|delete; it must not be used by the long-running daemon.

How do you use this agent?

Create and validate a profile for a local stdio MCP server:

tunnel-client profiles samples list
tunnel-client profiles samples show sample_mcp_stdio_local
tunnel-client init --sample sample_mcp_stdio_local --profile local-stdio --tunnel-id tunnel_0123456789abcdef0123456789abcdef --mcp-command "python /path/to/server.py"
tunnel-client doctor --profile local-stdio --explain
tunnel-client run --profile local-stdio

run keeps the daemon attached to the current terminal, and it must remain active for connector discovery and every MCP request. For a long-lived runtime managed by Codex, use tunnel-client runtimes connect ..., followed by tunnel-client runtimes status <alias>; automation can add --json and inspect process_running, healthy, and ready. Create or verify the ChatGPT connector only while the client is healthy. For managed Cloudflare provisioning, a documented invocation is:

tunnel-client run --cloudflared.managed --control-plane.tunnel-id tunnel_0123456789abcdef0123456789abcdef --mcp.server-url https://mcp.example.com/mcp

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

External MCP tool bridge

Inherits capabilities of connected MCP servers; audit third-party servers before enabling.

FARS trust-control audit

Verified present in source (3/3)
  • least-privilege scoping
  • sensitive-data handling

What are this agent's strengths and limitations?

Pros
  • Customer-initiated long polling avoids exposing the private MCP server through a public endpoint or adding an inbound firewall rule.
  • Streamable HTTP, stdio, and Go in-memory MCP transports cover network services, local child processes, and same-process embedding.
  • Built-in health, readiness, Prometheus metrics, admin UI, live log-level changes, and redacted support bundles provide a substantial operator-facing surface.
  • The project documents Homebrew, source, Docker, Kubernetes, and VM paths, and release artifacts bundle a pinned cloudflared companion for listed operating systems and architectures.
  • Runtime and administrative credentials are separated, with explicit Read, Use, and Manage permission requirements.
Limitations
  • The core connection depends on the OpenAI-hosted Secure MCP Tunnel control plane, so it is not a provider-neutral MCP tunneling layer.
  • Adoption requires a tunnel ID, a runtime API key, and correctly assigned organization permissions; tunnel administration may also require a separate admin key.
  • Connector discovery and every remote MCP call depend on the customer-run process remaining active, healthy, and ready.
  • Building from source requires Go, and rebuilding the Svelte-based admin UI adds a separate asset-generation step.
  • Production users of release images or the Cloudflare companion must manage exact versions or digests, supported architectures, and security-update ownership.

How does this agent compare with similar options?

Compared with placing an MCP server on a public endpoint, this client uses outbound HTTPS long polling from the customer network to the OpenAI control plane and avoids a new inbound firewall rule. tunnel-client run is the foreground option attached to the current terminal, whereas tunnel-client runtimes connect is the documented choice for a long-lived local runtime managed by Codex. The raw binary offers the smallest setup surface, tunnel-client codex assistant provides a Codex-native terminal path, and the embedded plugin exposes the native runtimes and admin-profiles workflows inside Codex. For MCP connectivity, Streamable HTTP targets network services, stdio targets local processes, and the Go SDK's in-memory transport targets same-process embedding.

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
Secure MCP Tunnel Client This agent 82 · Good CLIFree + model costs ★ 670 1d ago Go ChatGPT · Codex · OpenAI API
Archestra 57 · Major gaps Self-hosted serviceFreemium ★ 4.5k today TypeScript Codex · Claude Code · OpenAI API · Claude API
Jarvis Registry 65 · Some gaps Self-hosted serviceFree ★ 4.3k today Python —
ContextForge Gateway 58 · Major gaps Self-hosted serviceFree ★ 4.9k today Python Claude.ai · OpenAI API · Claude API

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Good
82/ 100 5-point scale 4.1 / 5
This review covers the source as of Nov 07, 2026. The project has shipped 1 stable release(s) since, which have not been re-reviewed. The score and verdict describe the reviewed version only. Recent releases ↓
Trust 21/29
Reliability 11/14
Adaptability 18/18
Convention 15/18
Effectiveness 12/13
Verifiability 5/8
Why each dimension lost points
Trust21 / 29 · 3.6/5

The permissions guide separates runtime Read + Use from Manage and admin-key duties, recommends restricted keys, and the skill requires env/file secret references instead of literal keys. Documentation describes request flow, diagnostic fields, and redacted log exports, supporting a strong data-handling score. Deductions: the packet does not show user-confirmation gates for individual remote or local actions; the client maintains an external connection but the effects are only partly described; rollback guidance focuses on configuration and service switching, while dependency-security evidence is largely inventory and workflow description without scan results for this revision. Attribution is supported by the license, module path, and release workflow, but the sample cannot establish the full source chain.

Reliability11 / 14 · 3.9/5

Configuration, permissions, and troubleshooting material give compatible explanations of credential use, health and readiness, polling, and MCP failures, with actionable error guidance. Deductions: the sample describes several modes and compatibility behaviors, but static evidence cannot establish that every implementation detail matches the documentation; dependency versions are pinned and workflows describe tests and artifact generation, but there is no independent evidence here of dependency availability or test results for this revision.

Adaptability18 / 18 · 5.0/5

The documentation covers local and private networks, Kubernetes, VMs, macOS services, Codex, ChatGPT, the Responses API, AgentKit, and a Go SDK. The plugin skill precisely limits when it applies and how it routes commands; the docs also explain runtime boundaries, state limits in the stateless demo, the stdio single-instance constraint, and platform requirements. Deduction: broad coverage in the packet does not prove equal support or validation across all target environments.

Convention15 / 18 · 4.2/5

The README provides clear entry points and a documentation map; installation, configuration, examples, troubleshooting, and operational limits are concrete, and the license file identifies Apache-2.0. Command, environment-variable, and configuration names are generally clear and consistent. Deductions: no changelog is included in the supplied material; maintenance responsibility is suggested by release and Homebrew workflows and the supplied official-organization provenance, but there is no dedicated maintainer or support-policy statement in the sample.

Effectiveness12 / 13 · 4.6/5

The CLI, health endpoints, status commands, configuration examples, and troubleshooting guidance give operators concrete next steps; the product addresses the clear need to connect private MCP servers without making them public. Deductions: deployment requires a continuously running client, credential configuration, and tunnel and service operations, so cost-benefit depends on the organization; the material provides no quantified operational cost or impact evidence.

Verifiability5 / 8 · 3.1/5

The README links architecture, protocol, OpenAPI, configuration, and troubleshooting materials; workflows describe tests, SBOMs, checksums, and release provenance, and explicitly distinguish baseline SBOMs from release artifacts. Deductions: this is a static, partial packet, so key documents and source are not fully available here to verify implementation, test outcomes, or release attestations; several capability and security claims remain project documentation or workflow claims.

Risks and how to mitigate them
  • This is a low-confidence assessment of the limited static material in the prompt; it does not confirm code behavior, passing tests, or that release artifacts match source.
  • Before deployment, keep runtime and admin keys separate as documented and check local health/readiness; stdio mode has a single-instance constraint per tunnel ID.
Evidence confidence: Low Reviewed Nov 07, 2026 Reviewed revision e6293885a815 New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/tunnel-client.svg)](https://followagents.com/en/agents/tunnel-client)
<a href="https://followagents.com/en/agents/tunnel-client"><img src="https://followagents.com/badge/tunnel-client.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v0.0.21
    Release notes excerpt
    Regional control-plane endpoints Select a control-plane endpoint with --control-plane.residency, CONTROL_PLANE_RESIDENCY, or control_plane.residency in YAML. The Go SDK, native runtime commands, and Tunnel MCP plugin also support endpoint selection. With a control-plane client certificate, the client uses the matching mTLS endpoint for global, us, or eu. If you also set a base URL, it must match the selected endpoint. Retries stay on that endpoint. Leave the setting unset to keep your existing default or custom endpoint. …
    View on GitHub ↗
  2. v0.0.20
    Release notes excerpt
    OAuth forwarding across separate HTTPS origins This release adds an independent allowlist for forwarding to discovered OAuth endpoints on separate HTTPS origins. Configure it with the repeatable --harpoon.oauth-forward-origin flag, the newline-separated HARPOON_OAUTH_FORWARD_ORIGINS environment variable, or harpoon.oauth_forward_origins in YAML. It is available in the full client and both runtime flavors. For example, when your deployment discovers OAuth metadata and endpoints at https://auth.example.com: ```yaml mcp: oauth_trusted_origins: - https://auth.example.com …
    View on GitHub ↗
  3. v0.0.19
    Release notes excerpt
    MCP server request IDs When an MCP HTTP response includes X-Request-Id, tunnel-client now forwards it in the response envelope as X-Tunnel-Mcp-Request-Id. This preserves the MCP server's identifier separately from the connector's own HTTP request ID. The field is omitted when the upstream header is absent or listed in Connection; older clients and services may omit it. Stdio child recovery …
    View on GitHub ↗

FAQ

Does the MCP server need an inbound public port?
No public MCP endpoint is required. The client initiates outbound HTTPS long polling to the OpenAI control plane, although local admin and MCP listeners still need configuration appropriate to the deployment.
Which permissions does the runtime credential need?
Runtime users and the principal creating CONTROL_PLANE_API_KEY need Tunnels Read + Use. Tunnel managers need Read + Manage, plus Use if they also run the daemon or attach ChatGPT connectors.
How should operators verify a successful connection?
Run tunnel-client doctor --profile <name> --explain first. For a managed runtime, also run tunnel-client runtimes status <alias> and only report success when the process is running with health reported; JSON output exposes process_running, healthy, and ready explicitly.
Can it be embedded without running a separate MCP network service?
Yes. The Go SDK can pair an MCP server with tunnelclient.New through mcp.NewInMemoryTransports(), so the server does not need to bind a port or use stdio.
Is there documented support for non-OpenAI platforms?
The supplied material explicitly supports ChatGPT, Codex, the Responses API, and AgentKit. It does not establish a Claude AI, Claude API, or other provider integration, and the tunnel control plane is hosted by OpenAI.
Was this page helpful?
View on GitHub ↗ Install ↓

Related concepts