Public URLs for localhost, from inside Any MCP client.
rustunnel-mcp is a Model Context Protocol server for tunnels: any MCP-compatible agent can create, list, and close public tunnels to localhost with six dedicated tools.
1. Install
brew tap joaoh82/rustunnel && brew install rustunnel2. Get an API token
Sign up free at rustunnel.com and create a key under Dashboard → API Keys. Self-hosting? Generate a token on your own server. Either way, it goes in RUSTUNNEL_TOKEN below — you never paste it into chat.
3. Connect Any MCP client
{
"mcpServers": {
"rustunnel": {
"command": "rustunnel-mcp",
"args": [
"--server", "eu.edge.rustunnel.com:4040",
"--api", "https://eu.edge.rustunnel.com:8443"
],
"env": { "RUSTUNNEL_TOKEN": "<your-token>" }
}
}
}4. Ask for a tunnel
Paste this prompt (or just describe what you need — the agent picks the right tool):
I need a public HTTPS URL for my localhost:3000 server. Use rustunnel — its MCP tools or the rustunnel CLI — to open the tunnel and give me the public URL when it's ready.
The agent gets six tools — create_tunnel, list_tunnels, close_tunnel, get_connection_info, list_regions, and get_tunnel_history — covering HTTP, TCP, and UDP tunnels, custom subdomains, regions, P2P, and load-balanced pools with health checks.
npx skills add https://rustunnel.com/skills/rustunnel