rustunnel — Claude Code MCP server: what it does, install
Gives AI agents public HTTPS, TCP, and UDP addresses for localhost services. Useful when an agent needs to reach a local app.
claude mcp add rustunnel -- docker run -i --rm ghcr.io/joaoh82/rustunnel-mcp:0.8.5What rustunnel does
rustunnel connects an AI agent to a local service through a public address. It supports HTTPS, TCP, and UDP tunnels, while the server can be self-hosted or used as a managed service. HTTP, TCP, and UDP modes cover local apps, databases, and other network services.
The MCP server runs the container image ghcr.io/joaoh82/rustunnel-mcp:0.8.5 through Docker. The Claude Code setup registers a server named rustunnel; Codex and Gemini CLI have their own commands, while Cursor and GitHub Copilot use JSON configuration.
A managed deployment requires an API token created in Dashboard → API Keys. Docker is required for the installation command, so the MCP server will not start without it.
What it helps with
- expose a local HTTP app through a public HTTPS address
- give an agent access to a localhost service
- forward a local database over TCP
- publish a UDP service through a tunnel
Example prompts for the agent
- Expose my local service on port
3000through a public HTTPS address. - Give the agent access to my local database over TCP port
5432. - Forward the UDP service on port
27015with rustunnel.
How to install rustunnel
Platform CLI
claude mcp add rustunnel -- docker run -i --rm ghcr.io/joaoh82/rustunnel-mcp:0.8.5Platform CLI
codex mcp add rustunnel -- docker run -i --rm ghcr.io/joaoh82/rustunnel-mcp:0.8.5Config file
{
"mcpServers": {
"rustunnel": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/joaoh82/rustunnel-mcp:0.8.5"
]
}
}
}Config file
{
"servers": {
"rustunnel": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/joaoh82/rustunnel-mcp:0.8.5"
]
}
}
}Platform CLI
gemini mcp add rustunnel docker run -i --rm ghcr.io/joaoh82/rustunnel-mcp:0.8.5Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about rustunnel
How do I install rustunnel in Claude Code?
Run claude mcp add rustunnel -- docker run -i --rm ghcr.io/joaoh82/rustunnel-mcp:0.8.5.
What does rustunnel do?
The MCP server gives an AI agent public HTTPS, TCP, and UDP addresses for local services. You can use a managed deployment or self-host the server.
What does rustunnel require for installation?
The setup command runs ghcr.io/joaoh82/rustunnel-mcp:0.8.5 with Docker, so Docker must be available on the machine. A managed deployment also uses an API token.