Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Proxies STDIO-based MCP clients to streaming HTTP MCP servers, enabling local clients to connect to remote servers.

README.md

It is a tweak of https://github.com/gomarble-ai/mcp-proxy-nodejs!

Which is an SSE proxy

This is a part of MCPfy project

https://www.hahooh.xyz

Github page

https://github.com/hahooh/mcp-streaming-http-proxy-nodejs

MCP Streaming HTTP Proxy

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.

Overview

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.

Features

  • 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

Installation

Prerequisites

  • Node.js >= 18.0.0
  • npm or yarn

Setup

  1. Clone or download this repository
  2. Install dependencies:
npm install

Usage

expose streaming http endpoints

Command Line Arguments

node server/index.js <SERVER_NAME> <STREAMING_HTTP_URL> [API_KEY]

Parameters:

  • SERVER_NAME: Display name for the MCP server
  • STREAMING_HTTP_URL: URL of the remote streaming HTTP MCP server endpoint
  • API_KEY: (Optional) API key for authentication

Example:

node server/index.js "My Remote MCP Server" "https://api.example.com/mcp" "your-api-key"

Environment Variables

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.js

Configuration

MCP Client Configuration

To 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"
      ]
   }
}

Authentication

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

Creating a Desktop Extension (.dxt)

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

Prerequisites

Install dependencies

npm install

Install the DXT CLI tool:

npm install -g @anthropic-ai/dxt

Steps to Create DXT File

  1. Initialize DXT configuration (if needed):
   dxt init

Note: This project already includes a manifest.json file, so initialization may not be necessary.

  1. Validate the manifest:
   dxt validate
  1. Package the extension:
   dxt pack
  1. Test the extension:
  • The command will generate a .dxt file
  • Drag the .dxt file into Claude Desktop's Settings window
  • Click "Install" to test the extension

Quick Installation (Alternative)

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.

Technical Details

Architecture

MCP Client (STDIO) ←→ MCP Streaming HTTP Proxy ←→ Remote MCP Server (Streaming HTTP)

The proxy consists of two main components:

  1. MCP Server: Accepts STDIO connections from local MCP clients
  2. MCP Client: Connects to remote streaming http MCP servers

Transport Protocols

  • Input: STDIO transport (standard input/output)
  • Output: Streaming HTTP transport

Error Handling

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

Logging

Detailed logging is provided via console.error() for debugging:

  • Connection status
  • Request/response details
  • Error information with stack traces
  • Performance metrics

API Reference

MCPStreamingHTTPProxy Class

Constructor

new MCPStreamingHTTPProxy(streamingHTTPUrl, apiKey, serverName);
  • streamingHTTPUrl (string): URL of the streaming http MCP server
  • apiKey (string, optional): API key for authentication. In header X-API-KEY.
  • serverName (string): Display name for the proxy server

Methods

  • initialize(): Initialize client and server connections
  • run(): Start the proxy server
  • close(): Gracefully shutdown the proxy
  • setupProxyHandlers(): Configure request handlers

Development

Project Structure

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

Dependencies

  • @modelcontextprotocol/sdk: Official MCP SDK for Node.js

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test thoroughly
  5. Submit a pull request

Troubleshooting

Common Issues

  1. Connection Refused
  • Verify the streaming http URL is correct and accessible
  • Check if the remote server is running
  • Ensure firewall/network settings allow connections
  1. Authentication Errors
  • Verify the API key is correct
  • Check if the remote server expects authentication
  • Ensure the API key format matches server expectations
  1. 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
  1. Performance Issues
  • Monitor network latency to the remote server
  • Check for rate limiting on the remote server
  • Consider connection pooling for high-frequency usage

Debugging

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

Join our community for help and updates

👉 Slack Community - AI in Ads

Also checkout our other projects

👉 Facebook Ads MCP - Facebook Ads MCP 👉 Google Ads MCP - Google Ads MCP

License

MIT License - see LICENSE file for details

Support

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

Compatibility

  • 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

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Other servers.