claude-bridge-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
claude-bridge-mcp
Reach the Claude Code CLI on one machine from MCP clients on another.
claude-bridge-mcp is a small MCP server that runs next to an authenticated claude CLI and exposes it over HTTP with server-sent events (SSE). A remote MCP client connects to /sse, calls a tool, and the bridge spawns claude locally and returns the JSON result. It is for a developer who wants their own agents or MCP clients on other machines (a laptop, a VPS, a home server) to reach the Claude Code install on their main machine over a private network.
The bridge drives the official CLI under your own login. What a Claude plan allows is set by Anthropic's terms, so check them before you give other people or services access to a bridge.
What it does
claude_executeruns a prompt throughclaude --print --output-format jsonin an allowed working directory. Default timeout 120 s, overridable per call.claude_queryis the same call with a 60 s limit and--verbose, meant for questions. Read-only is not enforced by the bridge; what the CLI may do is decided by your local Claude Code permission settings.claude_read_filereads a text file inside the directory allowlist. Paths go throughrealpathfirst, so a symlink cannot point outside the allowlist.claude_git_statusreturns the branch,git status --porcelainand the last five commits of a repository inside the allowlist.Access control: optional bearer token (constant-time compare), IP allowlist (localhost always passes), directory allowlist, and at most 5 SSE connections per IP.
Load control: FIFO queue with configurable concurrency (default 2), queue depth capped at 50, queue timeout, a 100,000-character prompt limit, and output capture that stops at about 1 MB per stream.
Observability: one log line per request and tool call,
GET /health(no auth) andGET /metrics.
Related MCP server: claudecode-mcp
How it's built
MCP client --GET /sse, POST /messages--> Express 4 + MCP SDK (SSE transport)
|
+-- tools.ts --> executor.ts --spawn--> claude CLI (local login)TypeScript (ES modules), Express 4, @modelcontextprotocol/sdk and zod for config. Four source files, about 630 lines. There is no test suite in the repo.
Repository layout
src/index.ts: HTTP server, auth and IP middleware, SSE and message routes, health and metrics.src/tools.ts: the four tool definitions and handlers.src/executor.ts: CLI spawn, queue, timeouts, working-directory check.src/config.ts: environment parsing and defaults.smithery.json: marketplace listing..env.example: configuration template.
Run it locally
Needs Node 18+ and the claude CLI on PATH, already logged in.
git clone https://github.com/0motionguy/claude-bridge-mcp.git
cd claude-bridge-mcp
npm install
npm run build && npm start # or `npm run dev` for watch mode
curl http://localhost:3100/healthPoint an MCP client at it with npx -y mcp-remote http://<host>:3100/sse.
The server reads plain environment variables and does not load .env itself. Export them, or on Node 20.6+ start it with node --env-file=.env dist/index.js.
Variable | Default | Meaning |
|
| Bind address |
|
| Port |
| unset | If set, every route except |
| empty (all) | Comma-separated client IPs; localhost is always allowed |
| empty (cwd) | Comma-separated directories the tools may use |
|
| Execution timeout in ms |
|
| Parallel |
|
| Max wait in the queue in ms |
The defaults are open: the server binds all interfaces and the token is optional. Before exposing it beyond localhost, set BRIDGE_API_TOKEN and BRIDGE_ALLOWED_IPS and bind to a private interface. The directory allowlist covers the working directory and the two file tools; it does not sandbox the spawned CLI.
Status
Beta. A single-purpose tool at version 1.1.0 with five commits, last push 2026-02-17. It is not released from this repository to npm: the claude-bridge-mcp name on the npm registry belongs to an unrelated project, so install from a clone.
Licence: MIT, see LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Connect ChatGPT and Claude to your Mac, Windows or Linux with secure MCP remote access.
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Real-time chat for AI agents. Claude Code, Cursor, Cline and Codex join channels over MCP.
Related MCP Servers
- AlicenseBqualityDmaintenanceAn implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.822 npm188MIT
- AlicenseAqualityBmaintenanceLocal MCP server that wraps the headless Claude Code CLI as MCP tools, providing stateless access to Claude's coding capabilities through prompt-based interactions. It enables users to execute Claude Code commands with various prompt formats and structured outputs directly from MCP clients.3MIT
- AlicenseAqualityCmaintenanceAn MCP server that enables any AI agent to call Claude using your existing Max/Pro subscription via OAuth, avoiding additional API billing.11MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that enables Claude Code to communicate with other Claude Code agents over HTTP, allowing users to ask questions about remote codebases or delegate coding tasks.MIT