AI agents / MCP

Let AI agents expose localhost — MCP tunnel built in.

Claude Code, Cursor, Windsurf, and any MCP client can open, list, and close tunnels in plain language. No copy-pasting URLs between chat and a terminal.

How it works

  1. 1

    Install CLI + MCP server

    Homebrew installs rustunnel and rustunnel-mcp together.

    brew tap joaoh82/rustunnel && brew install rustunnel
  2. 2

    Connect your harness

    Claude Code: /plugin install rustunnel. Cursor/Windsurf: drop MCP JSON with RUSTUNNEL_TOKEN. Full recipes live under /ai-tools.

    npx skills add https://rustunnel.com/skills/rustunnel
  3. 3

    Ask in plain language

    Say "expose port 3000" — the agent calls create_tunnel and returns the public URL. On session exit, tunnels can be cleaned up automatically.

Why rustunnel

  • Six MCP tools, full feature set

    create_tunnel, list_tunnels, close_tunnel, get_connection_info, list_regions, get_tunnel_history — HTTP, TCP, UDP, P2P, regions, load balancing.

  • Agent skill + agents.md

    Teach any skills-compatible agent the recipes once. Machine-readable surfaces at /agents.md and /openapi.yaml.

  • Differentiator competitors skip

    Most tunnel SaaS still assume a human in the terminal. rustunnel is built so the agent is the operator.

Pricing that matches how you work

Agents thrash tunnels. Pay for GB, not idle hours — or self-host free.

Quick start: brew install rustunnel

Create a free account

FAQ

What is an MCP tunnel?+

An MCP tunnel is a public URL for localhost that an AI agent can create and manage through the Model Context Protocol. rustunnel ships rustunnel-mcp so agents call tools instead of shelling out blindly.

How do I expose localhost from Claude Code?+

Install the rustunnel plugin (/plugin install rustunnel) or configure the MCP server, set RUSTUNNEL_TOKEN, then ask Claude to expose a port. See /ai-tools/claude-code for the full walkthrough.

Does Cursor support rustunnel?+

Yes. Add the MCP config under .cursor/mcp.json (or use the one-click install) and the agent can open tunnels when a local server needs a public URL.

Is there a free option for agent workflows?+

Self-host free under AGPL, or use managed pay-as-you-go from $3/mo. Idle tunnels don't bill — good for agents that open short-lived tunnels per task.