About streamable-http-shim
streamable-http-shim is an MCP server published by git+tollbit in the Browser category: a shim for mapping a streamable http server to stdio.
The repository has 1 stars and 0 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.
Install
npx @tollbit/mcp-streamable-http-shimclaude mcp add streamable-http-shim -- npx -y @tollbit/mcp-streamable-http-shimnpx -y @tollbit/mcp-streamable-http-shimThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Ask AI
Ask AI about streamable-http-shim
Powered by Claude · Grounded in docs
Security checks
- ✓README presentThe repository ships documentation.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
4 checks have not been run yet.
README
MCP Streamable HTTP Shim
A stdio MCP server that proxies to any streamable HTTP MCP backend. Use it as a temporary bridge until @modelcontextprotocol/inspector natively supports streamable HTTP.
Why Use This?
- Bridge stdio-only clients to HTTP servers: Run MCP clients that only speak stdio against a remote streamable HTTP MCP server.
- Zero changes to your server: Point the shim at your existing HTTP endpoint and go.
- Simple auth via headers: Pass API keys and custom headers with familiar cURL-style
-Hflags.
Installation
- Run with npx:
npx @tollbit/mcp-streamable-http-shim - Or install globally:
npm i -g @tollbit/mcp-streamable-http-shim
Quick Start
Use the shim to connect a stdio-based client (like the Inspector) to your HTTP MCP server.
Inspector
npx @modelcontextprotocol/inspector npx -y @tollbit/mcp-streamable-http-shim --url "https://example.com/mcp"
Add Headers (API keys, etc.)
Repeat -H to send multiple headers:
npx @tollbit/mcp-streamable-http-shim --url https://your-url-here.com \
-H "some-header: and-its-value" \
-H "Authorization: Bearer $MY_TOKEN"
Key Features
- End-to-end streaming using the MCP SDK
StreamableHTTPClientTransport. - Tool passthrough:
tools/listandtools/callproxied to the remote server. - Stdio transport: Works with any client that connects over stdio.
Documentation
- Full Documentation: This README
- API Reference: See
@modelcontextprotocol/sdktypes and transports - Examples: See Quick Start and MCP Configuration below
Common Use Cases
- Use stdio-only MCP clients with your HTTP server: Point the shim at your remote MCP service and use it from Inspector or similar tools.
- Add auth to requests: Pass
-H "Authorization: Bearer <token>"for secured endpoints. - Local testing of remote servers: Verify tool listing and tool invocation quickly without changing your server.
Requirements
- Node.js: v18 or newer
- Network access to your HTTP MCP server implementing streamable HTTP
Support
- Community: Join Discord
- Issues: Use GitHub Issues
- Discussions: See GitHub Discussions
License
MIT
How This Fits in the Tollbit Toolbox
This shim makes any streamable HTTP MCP server usable from stdio-only clients. It’s a lightweight bridge that preserves streaming semantics while you use tools like the Inspector or other stdio-based environments.
MCP Configuration
Below are examples for common MCP clients.
Claude Desktop (JSON config)
Add an entry under mcpServers:
{
"mcpServers": {
"http-shim": {
"command": "npx",
"args": [
"-y",
"@tollbit/mcp-streamable-http-shim",
"--url",
"https://example.com/mcp",
"-H",
"Authorization: Bearer ${MY_TOKEN}"
]
}
}
}
Inspector (CLI)
npx @modelcontextprotocol/inspector npx -y @tollbit/mcp-streamable-http-shim --url "https://example.com/mcp"
Authentication
Pass headers using repeated -H flags. Values can come from environment variables.
export MY_TOKEN=sk-...
npx @tollbit/mcp-streamable-http-shim --url https://example.com/mcp \
-H "Authorization: Bearer $MY_TOKEN" \
-H "X-Org: my-org"
Error Handling
- No host provided: The shim exits with an error. Provide
--url <https://...>. - 401/403 from server: Check your
-Hheaders and tokens. - Tool call errors: Remote errors are surfaced back to the client as MCP tool errors.
- Connectivity issues: The shim logs to stderr and will report connection errors to the client.
Advanced Usage
- Multiple headers: Repeat
-Hfor each header; format asKey: Value. - Verbose logs: Operational logs are written to stderr; the process sends keep-alive pings every 10s.
- Signals: Gracefully handles
SIGINT/SIGTERM. - Compatibility: Works with stdio-based clients while preserving streamable HTTP semantics via the MCP SDK.
README copy captured when this server was indexed; it may lag the repository. The original is authoritative.