← Back to directory
R

Rustunnel

Official
Create public tunnels to local services.
Category
Dev Tools #108 of 751
Stars
★ 669 Very popular
Transport
stdio (local process)
Runtime
Prebuilt binary
Credentials
API key / credential required
License
AGPL-3.0
Last commit
Tools
6
59FMRS · C

This is Rustunnel's official MCP server, providing tunnel management over stdio. It suits users who need to expose local development services temporarily to AI workflows; users should understand token permissions and public exposure risks.

Strongest · Documentation 14/20 Weakest · Reliability 10/20

Reliability
10/20
Security and permissions
11/20
Maintenance
11/20
Documentation
14/20
Setup experience
13/20
Why each score
Reliability 10/20
The README describes an MCP stdio server, six tools and their purposes, and installation and connection examples, making the happy path plausible. The supplied evidence is limited to the README and manifest, with no verifiable CI workflow or tests covering MCP initialization, tool listing, and key tool paths. Static calibration therefore caps the score at 12, with further deductions for unverified error handling and edge cases.
Security and permissions 11/20
The manifest requires a token through an environment variable marked secret. The README describes user-scoped API token visibility and lists side-effecting actions such as closing tunnels, but does not establish whether such actions require confirmation or how MCP data flows and permission boundaries are enforced. Examples use placeholders, and the supplied material shows no evidence of a listed red-line risk.
Maintenance 11/20
The project identifies an AGPL-3.0 license, version 0.8.1, a maintainer, and a GitHub issue channel; the README also describes release and update paths. The supplied material does not establish recent commits, release cadence, issue response, dependency updates, or a security response process, so the maintenance score is limited.
Documentation 14/20
The README covers hosted and self-hosted deployment, token setup, ports and limits, a REST API overview, the MCP tool list, and entry points for several client guides. However, detailed MCP parameters, troubleshooting, confirmation behavior, and complete tool interaction details are referred to in documents not supplied here, so they cannot be verified in this review.
Setup experience 13/20
The material provides Homebrew and source installation paths, a stdio configuration example, server and API address arguments, and a required-token description, with integration-guide entry points for mainstream clients. The manifest itself only specifies Cargo package installation arguments, and there is no evidence validating client configuration; actual availability, platform coverage, and the initial handshake were not executed, so the score is below full marks.

Static review · not runReviewed 2026-12-03

Read the FMRS scoring method →

Fit and risk

What it can accessUses the networkChanges third-party account data

Best for

  • Developers who want AI agents to create or manage public tunnels to local services.
  • Teams that want to self-host a tunnel server or use Rustunnel's hosted service.

Not for

  • Users who do not need to expose local services to the public internet.
  • Users seeking unauthenticated access to local networks or services.

Required permissions

  • Requires a Rustunnel API token or self-hosted admin token, supplied through the RUSTUNNEL_TOKEN environment variable.
  • Creating a tunnel makes the selected local service reachable through a public address.
  • A self-hosted server requires network listeners, TLS, authentication, and supporting server infrastructure.

Risks and side effects

  • A public tunnel can expose a service and its data to anyone who can reach its address; restrict service access and protect sensitive data.
  • A leaked token may let others use the associated account or server permissions; protect and revoke tokens as needed.
  • Tunnels forward traffic, so an incorrect target port or service configuration may expose an unintended service.

Setup

Before you start

Runtime:Prebuilt binary

RUSTUNNEL_TOKEN requiredsecret The rustunnel API token, available under Dashboard → API Keys at rustunnel.com; for self-hosting, use the admin token.

Install rustunnel with the rustunnel-mcp executable available to your client. Configure the MCP client with command rustunnel-mcp, arguments --server eu.edge.rustunnel.com:4040 and --api https://eu.edge.rustunnel.com:8443, and provide the API token from the dashboard as RUSTUNNEL_TOKEN. For self-hosting, use your own server and API addresses and the appropriate admin token.

claude_desktop_config.json
{"mcpServers":{"rustunnel":{"command":"rustunnel-mcp","args":["--server","eu.edge.rustunnel.com:4040","--api","https://eu.edge.rustunnel.com:8443"],"env":{"RUSTUNNEL_TOKEN":"<your-token>"}}}}

Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/mcp.json
{
  "servers": {
    "rustunnel": {
      "command": "rustunnel-mcp",
      "args": [
        "--server",
        "eu.edge.rustunnel.com:4040",
        "--api",
        "https://eu.edge.rustunnel.com:8443"
      ],
      "env": {
        "RUSTUNNEL_TOKEN": "<your-token>"
      }
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.rustunnel]
command = "rustunnel-mcp"
args = ["--server", "eu.edge.rustunnel.com:4040", "--api", "https://eu.edge.rustunnel.com:8443"]

[mcp_servers.rustunnel.env]
RUSTUNNEL_TOKEN = "<your-token>"

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add rustunnel -e 'RUSTUNNEL_TOKEN=<your-token>' -- rustunnel-mcp --server eu.edge.rustunnel.com:4040 --api https://eu.edge.rustunnel.com:8443

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

Confirm the rustunnel tools appear in your MCP client's tool list, then call list_regions or list_tunnels and check that the server returns a result.

Troubleshooting

  1. Confirm rustunnel-mcp is installed and the client can launch the command.
  2. Check that RUSTUNNEL_TOKEN is present and valid, and that the server and API addresses match the hosted region or self-hosted server.
  3. Check that the local service is running on the expected port and that server ports, DNS, and TLS are configured and reachable.
  4. A self-signed certificate or TLS configuration issue may prevent connection; verify the server certificate and client settings.

Things to try

Once connected, you can ask your AI assistant things like:

  • Create an HTTP tunnel for my local port 3000.
  • List my active tunnels.
  • Close a tunnel.
  • Show the available regions and past tunnel activity.

Tools 6

create_tunnel writes
Create an HTTP, TCP, UDP, P2P, or load-balanced tunnel and return its public address.
list_tunnels read-only
List active tunnels.
close_tunnel destructive
Force-close a tunnel by ID.
list_regions read-only
List available server regions.
get_connection_info read-only
Return a CLI connection command for cloud or sandbox agents.
get_tunnel_history read-only
Retrieve past tunnel activity.

Use cases

Share a local web app or development service externally.
Test webhook callbacks.
Provide temporary tunnel access to a database or other local TCP service.
Expose supported local services over UDP tunnels.
Inspect active tunnels, regions, and tunnel history.

Supported clients

Claude Desktop
Claude Code
Codex
Cursor
Windsurf
Cline

Listed from the project's documentation, not tested by this site.

Overview

Rustunnel is an open-source tunneling service with an MCP server that lets AI agents create and manage public tunnels to local HTTP, TCP, or UDP services. The server can be self-hosted or used as a hosted service; the MCP server communicates with clients over stdio.

Similar servers

Source revision f5b213c5231a Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/rustunnel.svg)](https://followmcp.com/en/servers/rustunnel)