Use Case
Tunneling is perfect for:- Testing before deployment: Verify your MCP server works with real clients
- Development workflow: Iterate quickly without deploying each change
- Client integration: Test with ChatGPT, Claude, or other MCP clients
- Debugging: Troubleshoot connection issues in a production-like environment
Quick Start
1
Define Your Server
Create your MCP server with tools and resources:For more details, see the TypeScript Server documentation.
2
Start Your Local MCP Server
Start your MCP server on a local port (e.g., port 3000):
3
Create a Tunnel
Use the tunnel command to expose your local server:This will create a public URL that forwards to your local server. Learn more about the @mcp-use/tunnel package.
4
Use the Public URL
The command will output a public URL like:Use this URL to connect your MCP client (ChatGPT, Claude, etc.) to your local server.
Time Limits:
- Tunnels automatically expire after 24 hours of creation
- Inactive tunnels are cleaned up after 1 hour of no activity
- Maximum 10 tunnel creations per IP per hour
- Maximum 5 active tunnels per IP at any time
- These limits help ensure fair usage and prevent abuse