Create and manage secure public tunnels to local servers effortlessly through natural language commands with an MCP server that simplifies tunnel setup, monitoring, and control without complex CLI usage.
Unlock the full potential of mcp-untun through LangDB's AI Gateway. Get enterprise-grade security, analytics, and seamless integration with zero configuration.
Free tier available • No credit card required
Discover shared experiences
Local development can be frustrating when you need to expose your server to the internet:
Untun MCP creates and manages secure tunnels directly from your AI assistant:
No complex CLI commands to remember. No more lost tunnels. Easy management of multiple tunnels.
This project uses the untun package from npm but is not officially affiliated with, endorsed by, or connected to Cloudflare or UnJS. This is an independent, community-developed MCP wrapper around the untun CLI tool.
untun
CLI tool (installed automatically as needed)Go to: Settings
-> Cursor Settings
-> MCP
-> Add new global MCP server
Paste the following configuration into your Cursor ~/.cursor/mcp.json
file:
{ "mcpServers": { "untun": { "command": "npx", "args": ["-y", "@minte-app/untun-mcp@latest"] } } }
Add this to your VS Code MCP config file:
{ "servers": { "Untun": { "type": "stdio", "command": "npx", "args": ["-y", "@minte-app/untun-mcp@latest"] } } }
Add this to your Claude Desktop claude_desktop_config.json
file:
{ "mcpServers": { "Untun": { "command": "npx", "args": ["-y", "@minte-app/untun-mcp@latest"] } } }
Ask your AI assistant to create a tunnel with natural language:
Create a tunnel to my localhost:3000 server
Check your running tunnels:
Show me all my active tunnels
Stop a specific tunnel:
Stop the tunnel to localhost:3000
start_tunnel
: Creates a secure tunnel from a public internet address to your local server
url
(required): The local URL to expose (e.g., http://localhost:3000)name
(optional): Custom name for the tunnelstop_tunnel
: Stops a running tunnel or all local tunnels
name
(optional): Name of a specific tunnel to stoplist_tunnels
: Lists all active tunnels including their status and details
If your tunnel doesn't start, try these steps:
list_tunnels
to check the status of all tunnelsTunnels are tracked by hostname. If you see "remote" tunnels that can't be stopped, they are likely running on another machine. You'll need to stop them from the original machine.
Clone the project and install dependencies:
npm install
Build:
npm run build
MIT
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!