mcp-bridge-cloud
v0.1.0
Published
Persistent cloud tunnels for MCP servers - CLI tool for connecting local MCP servers to mcp-bridge.xyz
Maintainers
Readme
mcp-bridge-cloud
Persistent cloud tunnels for MCP servers
What is this?
mcp-bridge-cloud is a CLI tool that gives your local MCP server a persistent HTTPS URL that never changes.
No more updating ChatGPT configuration every time you restart your server!
# Install globally
npm install -g mcp-bridge-cloud
# Run with your API key
mcp-bridge-cloud --api-key YOUR_API_KEY
# Get a persistent URL like:
# https://yourusername.mcp-bridge.xyzFeatures
- ✅ Persistent URLs - Same HTTPS URL across all restarts
- ✅ Zero Configuration - Works out of the box
- ✅ Secure - API key authentication
- ✅ Fast - Low-latency WebSocket tunnel
- ✅ Filesystem MCP - Built-in filesystem server
- ✅ ChatGPT Ready - Compatible with ChatGPT Developer Mode
Installation
npm install -g mcp-bridge-cloudQuick Start
1. Get API Key
Sign up at https://mcp-bridge.xyz/dashboard and copy your API key.
2. Run the CLI
mcp-bridge-cloud --api-key YOUR_API_KEYOutput:
╔═══════════════════════════════════════════════════════════╗
║ MCP Bridge Cloud ║
║ Persistent Tunnels for MCP Servers ║
╚═══════════════════════════════════════════════════════════╝
🚀 Starting MCP filesystem adapter...
Root directory: /Users/you/projects
Port: 3000
✓ Adapter running
🌐 Connecting to MCP Bridge Cloud...
✓ Connected to cloud
Your persistent URL: https://yourusername.mcp-bridge.xyz
═══════════════════════════════════════════════════════════
✓ Server Ready!
═══════════════════════════════════════════════════════════
📋 Configuration:
Adapter Port: 3000
Root Directory: /Users/you/projects
Subdomain: yourusername
Persistent URL: https://yourusername.mcp-bridge.xyz
🎯 Next Steps:
1. Copy your persistent URL:
https://yourusername.mcp-bridge.xyz
2. Add to ChatGPT:
• Settings → Apps & Connectors → Developer Mode
• Add Remote MCP Server
• URL: https://yourusername.mcp-bridge.xyz
• Protocol: HTTP (streaming)
• Authentication: None
3. Your URL persists across restarts!
No need to reconfigure ChatGPT every time ✨
────────────────────────────────────────────────────────────
Press Ctrl+C to stop3. Add to ChatGPT
- Open ChatGPT
- Go to Settings → Apps & Connectors → Developer Mode
- Click Add Remote MCP Server
- Enter your persistent URL:
https://yourusername.mcp-bridge.xyz - Select HTTP (streaming)
- Click Connect
Done! Your MCP server is now available in ChatGPT.
Usage
Basic Usage
# Use default settings (current directory, port 3000)
mcp-bridge-cloud --api-key YOUR_API_KEYCustom Directory
# Serve a specific directory
mcp-bridge-cloud --api-key YOUR_API_KEY --dir ~/DocumentsCustom Port
# Use a different port
mcp-bridge-cloud --api-key YOUR_API_KEY --port 3001Environment Variables
# Set API key via environment variable
export MCP_CLOUD_API_KEY=YOUR_API_KEY
mcp-bridge-cloudDebug Mode
# Enable verbose logging
mcp-bridge-cloud --api-key YOUR_API_KEY --debugCommand Line Options
| Option | Alias | Description | Default |
|--------|-------|-------------|---------|
| --api-key <key> | -k | API key from mcp-bridge.xyz | Required |
| --port <number> | -p | Port for HTTP adapter | 3000 |
| --dir <path> | -d | Root directory to serve | Current directory |
| --tunnel-url <url> | -t | Cloud server URL | wss://mcp-bridge.xyz |
| --debug | | Enable debug logging | false |
| --help | -h | Show help | |
Environment Variables
| Variable | Description |
|----------|-------------|
| MCP_CLOUD_API_KEY | API key (alternative to --api-key) |
| MCP_CLOUD_URL | Cloud server URL |
| DEBUG=1 | Enable debug mode |
How It Works
┌─────────────────────────────────────────────────────────────┐
│ Your Local Machine │
│ │
│ ┌──────────────────┐ ┌──────────────────┐ │
│ │ MCP Server │ ←────── │ HTTP Adapter │ │
│ │ (STDIO) │ │ (port 3000) │ │
│ └──────────────────┘ └────────┬─────────┘ │
│ │ │
│ │ WebSocket │
└─────────────────────────────────────────┼───────────────────┘
│
▼
┌──────────────────────┐
│ mcp-bridge.xyz │
│ (Cloud Relay) │
└──────────┬───────────┘
│
│ HTTPS
▼
┌──────────────────────┐
│ ChatGPT │
└──────────────────────┘- MCP Server runs locally (filesystem access via STDIO)
- HTTP Adapter wraps it with HTTP interface
- Cloud Connector establishes WebSocket tunnel to mcp-bridge.xyz
- ChatGPT connects to your persistent URL
- Requests flow through cloud → WebSocket → adapter → MCP server
MCP Tools Available
The built-in filesystem server provides these tools:
- search - Find files by pattern
- fetch - Read file contents
- list - List directory contents
- write - Create or update files
Troubleshooting
"API key required" error
Problem: No API key provided
Solution:
# Provide via command line
mcp-bridge-cloud --api-key YOUR_KEY
# Or via environment variable
export MCP_CLOUD_API_KEY=YOUR_KEY
mcp-bridge-cloud"Connection refused" error
Problem: Port already in use
Solution:
# Use a different port
mcp-bridge-cloud --api-key YOUR_KEY --port 3001"MCP server not ready" error
Problem: MCP server failed to start
Solution:
# Check if npx works
npx -y @modelcontextprotocol/server-filesystem --help
# Try with debug mode
mcp-bridge-cloud --api-key YOUR_KEY --debugExamples
Basic Filesystem Access
# Share your Documents folder with ChatGPT
mcp-bridge-cloud --api-key abc123 --dir ~/DocumentsThen in ChatGPT:
You: "List all markdown files in my Documents folder"
ChatGPT: *uses the 'search' tool* "I found 15 markdown files..."Project Collaboration
# Share a specific project
cd ~/projects/my-app
mcp-bridge-cloud --api-key abc123Then in ChatGPT:
You: "Read the README.md file"
ChatGPT: *uses the 'fetch' tool* "Here's what I found in your README..."License
MIT © articat
Links
- MCP Bridge Cloud - Cloud service
- GitHub Repository - Source code
- npm Package - This package
- Client Library - WebSocket client
- Issues - Bug reports
Support
- Documentation: https://mcp-bridge.xyz/docs
- Issues: GitHub Issues
- Email: [email protected]
Made with ❤️ for the MCP community
