MCP HTTP Proxy
Allows exposing the MCP server to the internet via Cloudflare Tunnel, providing a secure public URL for remote agents.
Allows exposing the MCP server via ngrok, creating a public URL for remote agents to access the server over the internet.
Allows exposing the MCP server within a Tailscale network for secure private access without exposing to the public internet.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP HTTP Proxyexpose my browser MCP server via HTTP/SSE"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP HTTP Proxy
Expose any stdio-based MCP server (like @browsermcp/mcp) to the internet via HTTP/SSE transport. Perfect for remote agents that need to access MCP tools over a network.
Features
🌐 Standard MCP SSE Transport - Follows MCP HTTP transport specification
🔐 API Key Authentication - Secure access with Bearer token
🚀 Multiple Exposure Options - Tailscale, ngrok, Cloudflare Tunnel
🔄 Session Management - Multiple concurrent sessions supported
📦 Works with any MCP server - Defaults to
@browsermcp/mcp
Quick Start
1. Install Dependencies
npm install2. Configure (Optional)
cp .env.example .env
# Edit .env to set your API keyGenerate a secure API key:
node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"3. Build and Run
npm run build
npm startOr for development:
npm run devAPI Endpoints (Standard MCP SSE Transport)
Endpoint | Method | Description |
| GET | Establish SSE connection (returns endpoint URL) |
| POST | Send JSON-RPC messages |
| GET | Health check (no auth required) |
| GET | List active sessions (auth required) |
Exposing to the Internet
Option 1: Tailscale (Recommended for Private Access)
Tailscale provides secure, private access without exposing to the public internet.
# Install Tailscale if not already installed
# Then serve via Tailscale
tailscale serve --bg --http 3000Or use your Tailscale IP directly:
tailscale status # Find your Tailscale IPYour MCP server will be available at:
https://your-machine.tailnet-name.ts.net(via serve)http://your-tailscale-ip:3000(direct IP)
Use from your agent:
{
"mcpServers": {
"browser-remote": {
"url": "http://your-tailscale-ip:3000/sse",
"headers": {
"Authorization": "Bearer your-api-key"
}
}
}
}Option 2: ngrok (Public URL)
# Install ngrok if not already installed
ngrok http 3000ngrok will provide a public URL like https://abc123.ngrok.io.
Option 3: Cloudflare Tunnel
# Install cloudflared if not already installed
cloudflared tunnel --url http://localhost:3000How the SSE Transport Works
Client GETs
/sse- Server creates session, sendsendpointevent with message URLClient POSTs to
/message?sessionId=xxx- Server forwards JSON-RPC to MCP processServer streams responses - MCP responses sent as SSE
messageevents
Usage Examples
Test Health Check
curl http://localhost:3000/healthResponse:
{
"status": "healthy",
"sessions": 0,
"uptime": 10.5,
"transport": "sse",
"endpoints": {
"sse": "/sse (GET - establishes SSE connection)",
"message": "/message?sessionId=xxx (POST - send JSON-RPC messages)"
}
}Connect via SSE (JavaScript)
const eventSource = new EventSource('http://localhost:3000/sse', {
headers: { 'Authorization': 'Bearer your-api-key' }
});
eventSource.addEventListener('endpoint', (e) => {
console.log('Message endpoint:', e.data);
// e.data = "/message?sessionId=xxx"
});
eventSource.addEventListener('message', (e) => {
console.log('MCP response:', JSON.parse(e.data));
});Send MCP Request
curl -X POST "http://localhost:3000/message?sessionId=your-session-id" \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'Configuration
Environment Variable | Description | Default |
| Server port |
|
| Host to bind to |
|
| API key for authentication | (none) |
| Command to run MCP server |
|
| JSON array of arguments |
|
Using Different MCP Servers
You can use this proxy with any stdio-based MCP server:
# Example: Use a custom MCP server
MCP_COMMAND=node
MCP_ARGS=["/path/to/your/mcp-server/dist/index.js"]
# Example: Use Python MCP server
MCP_COMMAND=python
MCP_ARGS=["-m", "your_mcp_server"]Security Notes
Always use API key authentication when exposing to the internet
Use HTTPS (Tailscale, ngrok, and Cloudflare all provide this)
Tailscale is recommended for private access within your tailnet
Rotate API keys periodically
Monitor sessions via
/sessionsendpoint
Troubleshooting
MCP Server Not Starting
Check the console logs for errors. The MCP server stderr is forwarded to the proxy's console.
Connection Refused
Ensure server is running:
curl http://localhost:3000/healthCheck Tailscale connectivity:
tailscale status
Authentication Failed
Check the API key in
.envmatches your request headerEnsure "Bearer " prefix is included in Authorization header
SSE Not Working
Ensure you're connecting to
/sseendpoint (not just base URL)Check that Authorization header is sent with GET request too
License
MIT
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/PintaAI/mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server