# Rustunnel

> Create public tunnels to local services.

- **URL**: https://followmcp.com/en/servers/rustunnel
- **Category**: Dev Tools
- **Origin**: Official
- **Stars**: 669
- **FMRS Score**: 59/100 (Grade C)
- **Source**: https://github.com/joaoh82/rustunnel
- **Transports**: stdio (local process)
- **Runtimes**: Prebuilt binary
- **Auth**: API key / credential required

## 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.

## 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
- 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.

## Client config (JSON)
```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>"}}}}
```

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