Skip to content
Skillpedia
βœ“ Official Β· joaoh82● Free and open sourceπŸ’» LocalπŸ”‘ Needs an API keyCloud and servers

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 service
  • rustunnel tcp: expose a TCP port such as a database
  • rustunnel udp: expose a UDP service
  • rustunnel p2p: share a service with another rustunnel client
  • rustunnel 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

An auth token from rustunnel.com for the hosted service, or your own server for self-hosting. The MCP server takes the token in the RUSTUNNEL_TOKEN setting.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

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.