MCP Hub
Back to servers

@inferencesh/mcp-bridge

Stdio-to-HTTP bridge for MCP (Model Context Protocol). Connects any stdio MCP client to inference.sh or any remote MCP server via Streamable HTTP transport with Bearer token auth.

npm70/wk
Updated
Apr 13, 2026

Quick Install

npx -y @inferencesh/mcp-bridge

@inferencesh/mcp-bridge

Stdio-to-HTTP bridge for MCP (Model Context Protocol). Connects any stdio-based MCP client to a remote MCP server over Streamable HTTP transport with Bearer token authentication.

Built on the official @modelcontextprotocol/sdk.

Usage with inference.sh

{
  "mcpServers": {
    "inference": {
      "command": "npx",
      "args": ["@inferencesh/mcp-bridge"],
      "env": {
        "INFERENCE_API_KEY": "1nfsh-your-api-key"
      }
    }
  }
}

Get your API key at inference.sh/settings/keys.

Usage with any MCP server

Works with any remote MCP server that supports Streamable HTTP transport:

{
  "mcpServers": {
    "my-server": {
      "command": "npx",
      "args": ["@inferencesh/mcp-bridge"],
      "env": {
        "INFERENCE_API_URL": "https://my-mcp-server.com",
        "INFERENCE_API_KEY": "my-api-key"
      }
    }
  }
}

Environment variables

VariableDefaultDescription
INFERENCE_API_KEY(required)Bearer token for authentication
INFERENCE_API_URLhttps://api.inference.shMCP server base URL

How it works

┌─────────────┐    stdio     ┌─────────────┐  Streamable HTTP  ┌─────────────┐
│  MCP Client  │ ──────────> │  mcp-bridge  │ ────────────────> │  MCP Server  │
│  (Claude,    │ <────────── │              │ <──────────────── │  (remote)    │
│   Cursor,    │   JSON-RPC  │              │    SSE + JSON     │              │
│   Zed, etc.) │             └─────────────┘                   └─────────────┘
└─────────────┘

The bridge reads JSON-RPC messages from stdin, forwards them to the remote server via HTTP POST with your Bearer token, and pipes responses (including SSE streams) back to stdout.

Compatible MCP clients

Any client that supports stdio transport:

License

MIT

Reviews

No reviews yet

Sign in to write a review