{"_id":"@leverframe/mcp-bridge","_rev":"5-2d9324d86ee7445b37184b589bfc19be","name":"@leverframe/mcp-bridge","dist-tags":{"latest":"1.0.3"},"versions":{"0.0.0-stage":{"name":"@leverframe/mcp-bridge","version":"0.0.0-stage","_id":"@leverframe/mcp-bridge@0.0.0-stage","stub":true,"maintainers":[{"name":"jordannewell","email":"jordan@jordannewell.com"}],"dist":{"shasum":"e24a16196fd5c2b45dc1b64debc23c0d7c72401f","tarball":"https://registry.npmjs.org/@leverframe/mcp-bridge/-/mcp-bridge-0.0.0-stage.tgz","fileCount":2,"integrity":"sha512-N6O/NyfoGDzeUP/uUv5IyLCS8fFbmPHGMo5ZOQJbgGePsiRp5cpF+WeG6+z/vD88tUUWEe5OsyPAM3VwFb/WSg==","signatures":[{"sig":"MEUCIEuCNwQ9QzYDnDtSrHukF2Hk1Ph1wWxO4n+cfanS7PvDAiEAuYcC8eSixfhOGwyqiul0ihsxWoAoQJL8D2nV8K3PKfg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":344},"_npmUser":{"name":"jordannewell","email":"jordan@jordannewell.com"},"description":"Temporary package placeholder for staged publishing","directories":{}},"1.0.0":{"name":"@leverframe/mcp-bridge","version":"1.0.0","license":"BUSL-1.1","_id":"@leverframe/mcp-bridge@1.0.0","maintainers":[{"name":"jordannewell","email":"jordan@jordannewell.com"}],"bin":{"mcp-bridge":"src/server.js"},"dist":{"shasum":"125e06ac58d22fc66af7bfc9b3650651ea4c37bf","tarball":"https://registry.npmjs.org/@leverframe/mcp-bridge/-/mcp-bridge-1.0.0.tgz","fileCount":10,"integrity":"sha512-YYgRsX+2NwV16x4hQgbSpr6k9CI5vKPoeRssN4kBsIZUM47cOXpET4SGPc5FkhVBYjjW+XKLweydeHtSiYNpew==","signatures":[{"sig":"MEYCIQDiTfxjDvEw7g4avgGDjZ4Nv7eHij4zxZTSsZbEyBu5IgIhAPVpTN0qb2ad9lbv0MHJfOy5aFJXJC1SUHJUmeuEkSss","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIHpDNT9JnBjO9H1Gs9UIlbYqBSp7Arqjj7QN81Bn9uUMAiEA7m8aMVQrQmCCV8l0LtGcdyRq893xccLLu6y+KMzsFJc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26515},"main":"src/server.js","type":"module","gitHead":"c197af30261971d05ab805a48e49805d41215349","scripts":{"test":"node --test test/*.test.js","start":"node src/server.js"},"_npmUser":{"name":"jordannewell","email":"jordan@jordannewell.com"},"_npmVersion":"12.1.0","description":"HTTP-to-stdio bridge: consume stdio MCP servers via plain REST. Lets MCP-server-only agent platforms call external MCP tools.","directories":{},"_nodeVersion":"24.21.0","dependencies":{"express":"^4.18.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mcp-bridge_1.0.0_1795906555837_0.5392889705287319","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@leverframe/mcp-bridge","version":"1.0.1","keywords":["mcp","model-context-protocol","bridge","http","stdio","json-rpc","ai-agents","tools","openclaw"],"author":{"name":"Jordan Newell"},"license":"BUSL-1.1","_id":"@leverframe/mcp-bridge@1.0.1","maintainers":[{"name":"jordannewell","email":"jordan@jordannewell.com"}],"homepage":"https://github.com/leverframe/agent-gateway/tree/master/mcp-bridge#readme","bugs":{"url":"https://github.com/leverframe/agent-gateway/issues"},"bin":{"mcp-bridge":"src/server.js"},"dist":{"shasum":"7d2aba5f3c184601fcd15aa38005ffe161fabe74","tarball":"https://registry.npmjs.org/@leverframe/mcp-bridge/-/mcp-bridge-1.0.1.tgz","fileCount":10,"integrity":"sha512-TMW8mzJ2KA1DoAHc7n8lukOG9ztcM08NBHS+Tbda5PgFvKfmzLUAW/6+szrWZ0Xuqc7Ymo1dkJ7nqP+WmTFgSg==","signatures":[{"sig":"MEQCIETqBwddSnp2gJEZ5cOLwohTyRCBarHjNSxzi0wGl3EfAiB4KchvborS1TcUh64zOf4ili8EXm8TVHifA6Bq0i4o4A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCze/tQBUCVCLU92JWo2iiaAI8AAFVma0CF9SADeLIbVAIgR8d5/ADe6SFc+//MRBiCeSq9s6tNalVJSPGu7HTbC1M=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":27055},"main":"src/server.js","type":"module","gitHead":"3f2eb8c456b4422b640ba94c9ef1f153abe11fc3","scripts":{"test":"node --test test/*.test.js","start":"node src/server.js"},"_npmUser":{"name":"jordannewell","email":"jordan@jordannewell.com"},"repository":{"url":"git+https://github.com/leverframe/agent-gateway.git","type":"git","directory":"mcp-bridge"},"_npmVersion":"12.1.0","description":"HTTP-to-stdio bridge: consume stdio MCP servers (Linear, GitHub, anything) via plain REST. Lets MCP-server-only agent platforms call external MCP tools.","directories":{},"_nodeVersion":"24.21.0","dependencies":{"express":"^4.18.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mcp-bridge_1.0.1_1796053193856_0.09985237712023542","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@leverframe/mcp-bridge","version":"1.0.2","keywords":["mcp","model-context-protocol","bridge","http","stdio","json-rpc","ai-agents","tools","openclaw"],"author":{"name":"Jordan Newell"},"license":"BUSL-1.1","_id":"@leverframe/mcp-bridge@1.0.2","maintainers":[{"name":"jordannewell","email":"jordan@jordannewell.com"}],"homepage":"https://github.com/leverframe/agent-gateway/tree/master/mcp-bridge#readme","bugs":{"url":"https://github.com/leverframe/agent-gateway/issues"},"bin":{"mcp-bridge":"src/server.js"},"dist":{"shasum":"adfdfad91482ab0223c23a40686259ff8f162fe1","tarball":"https://registry.npmjs.org/@leverframe/mcp-bridge/-/mcp-bridge-1.0.2.tgz","fileCount":10,"integrity":"sha512-wHqvWGPPfQyVJ5fCKXEOpD4roFcJWo9XWox8o7YmVfwuVMft+8bLApC1gYTOGlfhxnfKXEBqqGEsDIF549F7vg==","signatures":[{"sig":"MEYCIQC7oJMuktvUkJqbVqp0Y+ehKo+Lu2wu+q5NHQ+561V4NgIhAIh9qsVVUpphCB1x6TwggHrFbqNYFehBUdqY0j5gOoOV","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQC/hDkKGqRJmP59cik9l/PwcZOA6oHcA4Ua6gvrbgZSWAIhAKZBipZIsPX+xLqt6CpAif3vDnjIIce5w71nWM9R3oqM","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":27761},"main":"src/server.js","type":"module","gitHead":"81b1504a3fd32c972e0d856cdea6a20c9bd451ff","scripts":{"test":"node --test test/*.test.js","start":"node src/server.js"},"_npmUser":{"name":"jordannewell","email":"jordan@jordannewell.com"},"repository":{"url":"git+https://github.com/leverframe/agent-gateway.git","type":"git","directory":"mcp-bridge"},"_npmVersion":"12.1.0","description":"HTTP-to-stdio bridge: consume stdio MCP servers (Linear, GitHub, anything) via plain REST. Lets MCP-server-only agent platforms call external MCP tools.","directories":{},"_nodeVersion":"24.21.0","dependencies":{"express":"^4.18.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mcp-bridge_1.0.2_1796131993042_0.1285166210441815","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"_id":"@leverframe/mcp-bridge@1.0.3","bin":{"mcp-bridge":"bin/cli.mjs"},"bugs":{"url":"https://github.com/leverframe/agent-gateway/issues"},"dist":{"shasum":"e8cf4326ab85ff0b7057ae608848649848ab06b7","tarball":"https://registry.npmjs.org/@leverframe/mcp-bridge/-/mcp-bridge-1.0.3.tgz","fileCount":11,"integrity":"sha512-NGFUvNFJJQaMYxK5D+ZjJXt4xPniqj6XZaIc8TdH36lXQjk+9wi0blokEmNeQh5zLzUhV5w8NriMBZqOZhuHKA==","signatures":[{"sig":"MEQCIC1tJXUb5KYVe7HIfc0nI3+3t2E+zsu4O3QAYRVB1UQAAiBxK0pJx4QtEkOhqXwfDDLQTyZFcQpcNqWPXz/TS0tcBQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCw98GEMkAiQomHNY3oqa3g3SwnhQajJQgFGDr481fiAQIhAOB6Nwp94HRtSWTF/8yUdoPUqM3mGwaohMgQiqzR+svP"}],"unpackedSize":31778},"main":"src/server.js","name":"@leverframe/mcp-bridge","type":"module","author":{"name":"Jordan Newell"},"gitHead":"9da2d7d4d8eafe151b10dca01a3e12bcbbc2168d","license":"MIT","scripts":{"test":"node --test test/*.test.js","start":"node src/server.js"},"version":"1.0.3","_npmUser":{"name":"jordannewell","email":"jordan@jordannewell.com"},"homepage":"https://github.com/leverframe/agent-gateway/tree/master/mcp-bridge#readme","keywords":["mcp","model-context-protocol","bridge","http","stdio","json-rpc","ai-agents","tools","openclaw"],"repository":{"url":"git+https://github.com/leverframe/agent-gateway.git","type":"git","directory":"mcp-bridge"},"_npmVersion":"12.1.0","description":"HTTP-to-stdio bridge: consume stdio MCP servers (Linear, GitHub, anything) via plain REST. Lets MCP-server-only agent platforms call external MCP tools.","directories":{},"maintainers":[{"name":"jordannewell","email":"jordan@jordannewell.com"}],"_nodeVersion":"24.21.0","dependencies":{"express":"^4.18.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mcp-bridge_1.0.3_1796164856415_0.8806599498235009"}}},"time":{"created":"2026-11-28T22:54:18.240Z","modified":"2026-12-01T22:40:56.789Z","0.0.0-stage":"2026-11-28T22:54:18.240Z","1.0.0":"2026-11-28T22:55:55.933Z","1.0.1":"2026-11-30T15:39:53.970Z","1.0.2":"2026-12-01T13:33:13.131Z","1.0.3":"2026-12-01T22:40:56.501Z"},"bugs":{"url":"https://github.com/leverframe/agent-gateway/issues"},"author":{"name":"Jordan Newell"},"license":"MIT","homepage":"https://github.com/leverframe/agent-gateway/tree/master/mcp-bridge#readme","keywords":["mcp","model-context-protocol","bridge","http","stdio","json-rpc","ai-agents","tools","openclaw"],"repository":{"url":"git+https://github.com/leverframe/agent-gateway.git","type":"git","directory":"mcp-bridge"},"description":"HTTP-to-stdio bridge: consume stdio MCP servers (Linear, GitHub, anything) via plain REST. Lets MCP-server-only agent platforms call external MCP tools.","maintainers":[{"name":"jordannewell","email":"jordan@jordannewell.com"}],"readme":"# mcp-bridge\n\n[![npm version](https://img.shields.io/npm/v/@leverframe/mcp-bridge?style=flat-square&labelColor=111213)](https://www.npmjs.com/package/@leverframe/mcp-bridge)\n[![license](https://img.shields.io/badge/license-MIT-3DA639?style=flat-square&labelColor=111213)](https://github.com/leverframe/agent-gateway/blob/master/LICENSE)\n\nConsume stdio MCP servers over plain REST. One command, no VPN, no client SDK.\n\n**Problem:** Agent platforms that expose tools (MCP **servers**) often can't _consume_ tools (they're not MCP **clients**). Your agent can serve tools to Claude Desktop but can't call Linear's or GitHub's MCP servers itself.\n\n**Solution:** this bridge. It wraps any stdio MCP server and exposes its tools as ordinary HTTP endpoints — so any HTTP-capable agent can call them.\n\n<img src=\"https://raw.githubusercontent.com/leverframe/agent-gateway/master/assets/terminal-demo.gif\" width=\"820\" alt=\"install, point servers.json at any stdio MCP server, call tools over REST\">\n\n## Quick Start\n\n```bash\nnpm install\ncp servers.example.json servers.json   # edit; set LINEAR_API_KEY / GITHUB_TOKEN in your env\nnpm start                              # :5555\n\ncurl http://localhost:5555/health\ncurl http://localhost:5555/linear/tools | jq '.result.tools[].name'\ncurl -X POST http://localhost:5555/linear/search_issues \\\n  -H 'Content-Type: application/json' -d '{\"query\": \"test\", \"limit\": 5}'\n```\n\n## Adding a server\n\nAny stdio MCP server works. Add an entry to `servers.json`:\n\n```json\n{\n  \"myserver\": {\n    \"command\": \"npx\",\n    \"args\": [\"some-mcp-package\", \"stdio\"],\n    \"env\": { \"API_KEY\": \"$MY_API_KEY\" }\n  }\n}\n```\n\nThe name becomes the URL prefix (`/myserver/...`). Env values of the form `$NAME` / `${NAME}` are read from the bridge's process env at startup; literals pass through.\n\nNotes:\n\n- `npx` in `command` works as-is on Linux/Docker (the deployment target). On Windows, spawn needs the `.cmd` form (`npx.cmd`) or `shell: true` semantics — the bridge spawns without a shell, so prefer Linux for real use.\n- Avoid server names `health`, `call`, or `tools` — they collide with reserved routes.\n- Each tool call spawns the configured server, does the MCP handshake (fixed ~0.7s overhead per call), and exits. Stateless by design — simple, no pools to leak, but not the choice for high-RPS use.\n\n## HTTP API\n\n| Route                 | Meaning                                              |\n| --------------------- | ---------------------------------------------------- |\n| `GET /health`         | liveness + configured server names                   |\n| `GET /:server/tools`  | the server's tool catalog (`tools/list`)             |\n| `POST /:server/call`  | call a tool — body `{\"tool\": \"name\", \"args\": {...}}` |\n| `POST /:server/:tool` | shorthand — body IS the arguments                    |\n\nError semantics (all JSON, never HTML):\n\n- Unknown server → `404 {error}`\n- Backend JSON-RPC error, spawn failure, or call timeout (8s) → `502 {error}`\n- Malformed or oversized JSON body (default limit 100kb) → `400` / `413 {error}`\n\n## Config reference\n\n- `SERVERS_JSON` — inline JSON config (wins over the file; Docker-friendly)\n- `servers.json` — file config (same shape as `servers.example.json`)\n- `BRIDGE_PORT` — listen port (default 5555)\n- `BRIDGE_HOST` — bind address (default `0.0.0.0`; set `127.0.0.1` for loopback-only deployments)\n\n## Running persistently (Linux)\n\n`~/.config/systemd/user/mcp-bridge.service`:\n\n```ini\n[Unit]\nDescription=MCP Bridge\nAfter=network.target\n\n[Service]\nType=simple\nWorkingDirectory=%h/path/to/agent-gateway/mcp-bridge\nExecStart=/usr/bin/node src/server.js\nRestart=always\nRestartSec=5\n\n[Install]\nWantedBy=default.target\n```\n\n`systemctl --user enable --now mcp-bridge`. Keep the port private (bind a firewall to trusted CIDRs only — the API has no auth of its own).\n\n## Docs lineage\n\nFull architecture, API detail, and troubleshooting live in the parent repo: [Architecture](https://github.com/leverframe/agent-gateway/blob/master/MCP-BRIDGE-ARCHITECTURE.md), [API reference](https://github.com/leverframe/agent-gateway/blob/master/MCP-BRIDGE-API.md), [Troubleshooting](https://github.com/leverframe/agent-gateway/blob/master/MCP-BRIDGE-TROUBLESHOOTING.md). This package replaces the copy-paste reference server that used to live in the [deployment guide](https://github.com/leverframe/agent-gateway/blob/master/MCP-BRIDGE-DEPLOY.md).\n","readmeFilename":"README.md"}