Description
mcptunnels gives a local MCP server a public URL with one command. You run mcptunnel expose followed by the command that starts your server, and the tool bridges that stdio server to Streamable HTTP and prints a public address. Tunnels are anonymous, need no account, and expire after 24 hours. By default the endpoint is protected with OAuth 2.1 and a password the CLI generates, and clients such as ChatGPT, Claude and Cursor discover the OAuth flow automatically. Pressing Ctrl-C deletes the tunnel on the server straight away. It suits connecting a remote MCP client to a server on your laptop, demoing a server to a teammate, or testing against a real client during development. Unlike generic tunnels such as ngrok or cloudflared, it takes an MCP server command directly. The hosted relay is the default, and you can self-host your own relay with the tunneld component. The source is on GitHub.…
Highlights
- Gives any stdio MCP server a public Streamable HTTP URL with one command
- OAuth 2.1 protection with a generated password by default
- Tunnels expire after 24 hours and can be deleted instantly
- Self-hosting option with the tunneld component
Ratings & Reviews
No ratings yet
Be the first to rate mcptunnels.
People also visit

building-mcp-server-on-cloudflare
Builds remote MCP (Model Context Protocol) servers on Cloudflare Workers
mcptunnels FAQ
Is there a hosted instance I can use?
Yes. The hosted relay is the default, so you can start a tunnel without setup. You can also self-host your own tunneld instead.
What happens after 24 hours?
The tunnel expires and its URL and password stop working. Pressing Ctrl-C deletes the tunnel server-side straight away, so the URL dies with your process.
Why not ngrok or cloudflared?
Generic tunnels forward raw TCP or HTTP. mcptunnels takes an MCP server command and is built around the MCP protocol and its OAuth flow.
Can I turn off the password?
Yes. The --no-auth option gives an open URL without OAuth. By default, endpoints are protected.
What are the best mcptunnels alternatives?
Popular alternatives to mcptunnels include LocalCan™, tunnelto.dev and MCP-Gateway. See all mcptunnels alternatives















