It is a tweak of https://github.com/gomarble-ai/mcp-proxy-nodejs!
Which is an SSE proxy
https://github.com/hahooh/mcp-streaming-http-proxy-nodejs
A Model Context Protocol (MCP) server that acts as a proxy, bridging STDIO-based MCP clients with streaming http based MCP servers. This enables MCP clients that only support STDIO transport to connect to remote MCP servers that use streaming http transport.
The MCP Streaming HTTP Proxy creates a bridge between two different MCP transport protocols:
- STDIO Transport: Used by local MCP clients (like Claude Desktop)
- Streaming HTTP Transport: Used by remote MCP servers accessible via HTTP/HTTPS
This proxy allows you to use remote MCP servers that expose Streaming HTTP endpoints from applications that only support STDIO-based MCP connections.
- Full MCP Protocol Support: Proxies all MCP capabilities including:
- Tools (listing and calling)
- Resources (listing and reading)
- Resource Templates (listing)
- Prompts (listing and getting)
- Authentication Support: Optional API key authentication for streaming http endpoints
- Error Handling: Comprehensive error handling with detailed logging
- Graceful Shutdown: Proper cleanup on process termination
- Configurable: Flexible configuration via command line arguments or environment variables
- Node.js >= 18.0.0
- npm or yarn
- Clone or download this repository
- Install dependencies:
npm installexpose streaming http endpoints
node server/index.js <SERVER_NAME> <STREAMING_HTTP_URL> [API_KEY]Parameters:
SERVER_NAME: Display name for the MCP serverSTREAMING_HTTP_URL: URL of the remote streaming HTTP MCP server endpointAPI_KEY: (Optional) API key for authentication
Example:
node server/index.js "My Remote MCP Server" "https://api.example.com/mcp" "your-api-key"Alternatively, you can use environment variables:
export SERVER_NAME="My Remote MCP Server"
export STREAMING_HTTP_URL="https://api.example.com/mcp"
export API_KEY="your-api-key"
node server/index.jsTo use this proxy with an MCP client like Claude Desktop, add the following to your MCP configuration:
{
"mcpServers": {
"remote-server": {
"command": "node",
"args": [
"/path/to/mcp-proxy-node/server/index.js",
"Remote Server Name",
"https://your-remote-server.com/mcp",
"your-api-key"
]
}
}
}or using npx
"mcpServers": {
"my-server": {
"command": "npx",
"args": [
"-y",
"stdio-to-streaming-http-mcp",
"your server name",
"https://your-remote-server.com/mcp",
"your-api-key"
]
}
}The proxy supports Bearer token authentication. When an API key is provided, it will be sent as:
Authorization: Bearer <API_KEY>header in HTTP requests- Authentication headers for EventSource connections
This MCP proxy can be packaged as a Desktop Extension for easy one-click installation in Claude Desktop and other MCP-enabled applications.
For the complete guide, see: Desktop Extensions: One-click MCP server installation for Claude Desktop
Install dependencies
npm installInstall the DXT CLI tool:
npm install -g @anthropic-ai/dxt-
Initialize DXT configuration (if needed):
dxt init
Note: This project already includes a
manifest.jsonfile, so initialization may not be necessary. -
Validate the manifest:
dxt validate
-
Package the extension:
dxt pack
-
Test the extension:
- The command will generate a
.dxtfile - Drag the
.dxtfile into Claude Desktop's Settings window - Click "Install" to test the extension
- The command will generate a
If you don't want to build the extension yourself, you can directly drag and drop the pre-built mcp-proxy-node.dxt file into Claude Desktop's Settings window for immediate installation.
MCP Client (STDIO) ←→ MCP Streaming HTTP Proxy ←→ Remote MCP Server (Streaming HTTP)
The proxy consists of two main components:
- MCP Server: Accepts STDIO connections from local MCP clients
- MCP Client: Connects to remote streaming http MCP servers
- Input: STDIO transport (standard input/output)
- Output: Streaming HTTP transport
The proxy includes comprehensive error handling:
- Connection failures to remote streaming http servers
- Invalid URL formats
- Authentication errors
- Request/response parsing errors
- Graceful degradation when remote capabilities are unavailable
Detailed logging is provided via console.error() for debugging:
- Connection status
- Request/response details
- Error information with stack traces
- Performance metrics
new MCPStreamingHTTPProxy(streamingHTTPUrl, apiKey, serverName);streamingHTTPUrl(string): URL of the streaming http MCP serverapiKey(string, optional): API key for authentication. In header X-API-KEY.serverName(string): Display name for the proxy server
initialize(): Initialize client and server connectionsrun(): Start the proxy serverclose(): Gracefully shutdown the proxysetupProxyHandlers(): Configure request handlers
mcp-proxy-node/
├── server/
│ └── index.js # Main proxy server implementation
├── package.json # Project configuration and dependencies
├── manifest.json # DXT manifest for MCP client integration
├── favicon.png # Project icon
└── README.md # This file
@modelcontextprotocol/sdk: Official MCP SDK for Node.js
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
-
Connection Refused
- Verify the streaming http URL is correct and accessible
- Check if the remote server is running
- Ensure firewall/network settings allow connections
-
Authentication Errors
- Verify the API key is correct
- Check if the remote server expects authentication
- Ensure the API key format matches server expectations
-
No Tools/Resources Available
- Check if the remote server actually provides tools/resources
- Verify the remote server is responding correctly
- Check proxy logs for error messages
-
Performance Issues
- Monitor network latency to the remote server
- Check for rate limiting on the remote server
- Consider connection pooling for high-frequency usage
Enable detailed logging by examining the console output. The proxy logs:
- Connection attempts and results
- Request/response details
- Error messages with stack traces
- Performance timing
👉 Slack Community - AI in Ads
👉 Facebook Ads MCP - Facebook Ads MCP 👉 Google Ads MCP - Google Ads MCP
MIT License - see LICENSE file for details
For issues and questions:
- Check the troubleshooting section above
- Review the console logs for error details
- Ensure your Node.js version meets requirements (>= 18.0.0)
- Verify the remote streaming http server is compatible with MCP protocol
- Node.js: >= 18.0.0
- MCP Protocol: Compatible with MCP SDK v1.13.2+
- Platforms: macOS, Windows, Linux
- Claude Desktop: >= 0.10.0
Made with ❤️ for the MCP community