rustunnel
Lets your AI agent give a local service a public HTTPS, TCP or UDP address through an encrypted tunnel.
661 stars on GitHubby joaoh82License AGPL-3.0Updated 18 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add rustunnel -- docker run -i --rm ghcr.io/joaoh82/rustunnel-mcp:0.8.9
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Expose my local app on port 3000 with a public HTTPS URL.
Open a TCP tunnel for my database on port 5432.
What it is
rustunnel is a tunnel that exposes services running on your computer to the internet. It ships an MCP server so an agent can open and manage tunnels for you. You can use the hosted servers in Helsinki, Hillsboro and Singapore, or run your own server.
What it can do
rustunnel http: expose a local web servicerustunnel tcp: expose a TCP port such as a databaserustunnel udp: expose a UDP servicerustunnel p2p: share a service with another rustunnel clientrustunnel setup: pick a region and save your token- Custom subdomains on paid and self-hosted use
When to use
- βΊWhen you want to show a client a site running on your laptop
- βΊWhen you want to test a webhook against a local app
- βΊWhen you want a public URL for a local service without setting up your own server
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
ngrok-automationLets the agent automate Ngrok. It's useful for creating secure tunnels to expose local services to the internet.pinggy-tunnelGives your local app a public web address for a limited time, using an SSH tunnel to Pinggy with no software to install.web2-reconHelps your agent map a web target's public surface, finding subdomains, live hosts, URLs, and JavaScript files, then produces a prioritized list to test.Frequently asked questions
Is it free?
The Hobby plan is free with 2 concurrent tunnels, random subdomains and 1 GB per month. Pay-as-you-go is $3 per month minimum at $0.10 per GB.
Is it open source?
Yes. You can self-host the server for free with unlimited tunnels.
Which protocols work?
HTTP and HTTPS, TCP and UDP, plus a peer-to-peer mode.
Where are the hosted servers?
Helsinki (eu), Hillsboro (us) and Singapore (ap). The client picks the nearest by default.
Do I need an account?
For the hosted service, yes: sign up at rustunnel.com and create a token. Self-hosting does not need one.
Which agents does it work with?
Cursor has a one-click setup. Claude Code, Claude Desktop and Windsurf are covered in the agent integration guide.
If it does not work
- βΊCheck that your API token is set correctly; it is shown only once when created.
- βΊUse --region to pick a specific server if the automatic choice connects slowly.
- βΊFor local testing with a self-signed certificate, use --insecure, and never against a production server.
5 new skills a week. 1 minute to read.