Skip to content
MCP server

rustunnel

Give agents public HTTPS, TCP or UDP URLs for local services with a self-hostable tunnel

Runs locallyStatus and history
Install
Pricing
Freemium
Platforms
CLI, self-hosted, Linux
Runs
Locally
Version
0.8.9
Listing updated
3 days ago

About rustunnel

rustunnel is a freemium MCP server for developer tools. It runs locally on your machine and is started by your AI client.

rustunnel is an open-source tunnel written in Rust, and this server lets an agent create, manage and close tunnels in plain language. It supports HTTP, TCP and UDP tunnels, custom subdomains, regions, peer-to-peer links and load-balanced pools with health checks.

The tunnel itself uses encrypted multiplexed connections with automatic Let's Encrypt TLS for generated endpoints. Every session also opens a local web inspector on 127.0.0.1:4040 with headers, bodies and replay, and a terminal dashboard. Hosted edge regions are in Helsinki, Hillsboro and Singapore, and the client picks the nearest.

The MCP server runs over stdio and is shipped as .mcpb bundles for macOS, Linux and Windows, plus a container image. It needs an API token in RUSTUNNEL_TOKEN. The site lists Claude Code, Claude Desktop, Codex, Cursor, Windsurf and Cline as working clients.

Install

Run in a terminal

claude mcp add rustunnel -- docker run -i --rm ghcr.io/joaoh82/rustunnel-mcp:0.8.9

Add to claude_desktop_config.json

{
  "mcpServers": {
    "rustunnel": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/joaoh82/rustunnel-mcp:0.8.9"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "rustunnel": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/joaoh82/rustunnel-mcp:0.8.9"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "rustunnel": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/joaoh82/rustunnel-mcp:0.8.9"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "rustunnel": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/joaoh82/rustunnel-mcp:0.8.9"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "rustunnel": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/joaoh82/rustunnel-mcp:0.8.9"
      ]
    }
  }
}

What it does

HTTP, TCP and UDP tunnels
Expose different kinds of local services.
Custom subdomains
Available on pay-as-you-go and self-hosted setups.
Load-balanced pools
Several backends behind one subdomain or port with TCP or HTTP health probes.
Peer-to-peer tunnels
NAT hole punching over QUIC with relay fallback.
Request inspector
Local web view with replay of requests.
Self-host option
Run the same server yourself under AGPL.

Good for

  • Share a local app for review
  • Test webhooks against localhost
  • Let an agent open an SSH or TCP port temporarily
  • Run a hot-spare backend behind one address

Pricing

Freemium, from $3 a month

Pay as you go from $3 a month with idle time free; self-hosting free under AGPL

Prices change. Check rustunnel.com before you buy.

rustunnel FAQ

How is the hosted service priced?

The site says pay as you go from $3 a month, with the minimum credited to usage and idle time free. Self-hosting is free under AGPL.

How do I authenticate?

Get an API key and set RUSTUNNEL_TOKEN.

Which clients work?

Claude Code, Claude Desktop, Codex, Cursor, Windsurf, Cline and custom agents.

Where are the edge servers?

Helsinki, Hillsboro and Singapore.

Is rustunnel free?

rustunnel has a free plan, with paid plans for more usage or features. Paid plans start at $3 a month.

How do I add rustunnel to Claude Code?

Run this command in your terminal: claude mcp add rustunnel -- docker run -i --rm ghcr.io/joaoh82/rustunnel-mcp:0.8.9

What are the best alternatives to rustunnel?

The closest alternatives to rustunnel are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

Alternatives to rustunnel

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  3. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    Not checked yet
    • Remote
    • Open source
    • 34.5K GitHub stars
    • Developer tools
  4. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.5K GitHub stars
    • Developer tools
  5. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  6. Ouroboros

    MCP server

    Spec-first layer that pins requirements and verifies results of AI coding agent work

    Runs locally
    • Open source
    • 6.4K GitHub stars
    • Developer tools