Skip to content
appsgit

rustunnel

rustunnel is an MCP server that gives AI agents public HTTPS/TCP/UDP URLs for any localhost service. It has 660 GitHub stars, is released under the AGPL-3.0 license and runs locally with docker run -i --rm ghcr.io/joaoh82/rustunnel-mcp:0.8.5. It works with Claude Desktop, Claude Code, Cursor and VS Code.

github.com/joaoh82/rustunnel (opens in a new tab)

Install rustunnel

Generated from the server's MCP registry entry. Replace your-value with your own values.

Claude Desktop

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

Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.

Claude Code

claude mcp add --transport stdio rustunnel -- docker run -i --rm ghcr.io/joaoh82/rustunnel-mcp:0.8.5

Cursor

.cursor/mcp.json
{
  "mcpServers": {
    "rustunnel": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/joaoh82/rustunnel-mcp:0.8.5"
      ]
    }
  }
}

Project file; use ~/.cursor/mcp.json to enable it in every project.

VS Code

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

Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).

Tools (6)

Parsed from the Tools section of the README; check the repository for the current list.

  • create_tunnel

    Open a tunnel and return the public URL — HTTP/TCP/UDP, P2P, and load-balanced pools with health checks

  • list_tunnels

    List all active tunnels

  • close_tunnel

    Force-close a tunnel by ID

  • list_regions

    List available server regions

  • get_connection_info

    Return the CLI command for cloud/sandbox agents

  • get_tunnel_history

    Retrieve past tunnel activity

About rustunnel

The open-source tunnel that scales with you. Don't pay for idle time. Secure, Rust-fast, and Pay-as-you-go. Expose local services through a public server over encrypted WebSocket connections with TLS termination, HTTP/TCP proxying, a live dashboard, Prometheus metrics, and audit logging.

  • api-gateway
  • reverse-proxy
  • rust
  • rustunnel
  • mcp-server
  • ngrok-alternative
  • self-hosted
  • tunnel
  • tunneling
  • webhook

FAQ

rustunnel FAQ

Still curious? Email info@appsgit.com.

What is rustunnel?

rustunnel is an MCP server that gives AI agents public HTTPS/TCP/UDP URLs for any localhost service. It has 660 GitHub stars, is released under the AGPL-3.0 license and runs locally with docker run -i --rm ghcr.io/joaoh82/rustunnel-mcp:0.8.5. It works with Claude Desktop, Claude Code, Cursor and VS Code. The source code is at github.com/joaoh82/rustunnel.

How do I install the rustunnel MCP server?

Add the command docker run -i --rm ghcr.io/joaoh82/rustunnel-mcp:0.8.5 to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.

Is rustunnel free?

The server is open source under the AGPL-3.0 license, so running it is free. It does not declare any required API key.

Is rustunnel actively maintained?

The most recent commit was on Sep 3, 2026. The latest release is v0.8.5, published Sep 3, 2026. appsgit only lists MCP servers with a commit in the last six months and re-checks every server daily.