Claude Code Bridge logo

Claude Code Bridge

Relays messages and queued tasks between coding agents on different machines through named channels.

Install Claude Code Bridge

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "claude-code-bridge": {
      "command": "uvx",
      "args": [
        "claude-code-bridge"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx claude-code-bridge

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The claude-code-bridge MCP server relays ordered messages and work-queue tasks between coding-agent sessions on different machines. It stores durable channel history in SQLite and exposes MCP over Streamable HTTP or local stdio, with REST, dashboard, and terminal interfaces also available. Use it when agents need coordination without sharing a filesystem, process, or model API. Network deployments require an explicit trusted-host and authentication policy unless an unauthenticated private network is deliberately allowed.

Use cases

  • Relay review requests between agents on separate machines
  • Queue test or build tasks for worker agents
  • Resume message consumption after a client restart
  • Coordinate results and artifact references through named channels

Key features

  • Named channels with durable SQLite history
  • Streamable HTTP and stdio MCP transports
  • Cursor-based message consumption and acknowledgements
  • Idempotent message retries
  • Leased task queues with requeue and dead-letter handling
  • Dashboard, terminal UI, REST, and event SSE interfaces

Tools13

What Claude Code Bridge lets your agent do. Expand a tool for its parameters.

Self-reported~219 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

15/15 checks healthy over the last 80d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 5d ago via OSV.dev · claude-code-bridge (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars15Stargazers on the source repository.
Last commit3mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed13Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Claude Code Bridge works

What claude-code-bridge MCP server does

The claude-code-bridge MCP server provides a self-hosted message bus for independent coding-agent sessions. Agents communicate through named channels, which can carry ordinary text or structured protocol-v1 messages. The relay does not invoke a model and does not decide whether a received instruction should be executed; it only transports and stores messages and tasks.

Durable history lets a client recover after a restart. Consumer identities and cursors support at-least-once message processing, while idempotency keys make send retries safe against duplicate delivery. The system can run on one machine or across a private LAN or tailnet, so participating agents do not need a shared filesystem or remote shell access.

How it works

The relay writes messages and live-notification records to SQLite in one transaction. Its HTTP processes poll the durable outbox and publish events to connected dashboard, terminal UI, or custom listeners. Channel history remains authoritative after restarts.

MCP clients can connect through Streamable HTTP at /mcp, or through a local subprocess started with claude-bridge --stdio. Existing configurations can use the legacy HTTP+SSE endpoints at /sse and /messages/. Channel event SSE is intended for dashboards, the terminal UI, and custom listeners rather than MCP clients. A JSON API is also available for scripts and integrations.

Message consumers read bounded pages with cursors, wait for new messages without rapid polling, and acknowledge progress by advancing a channel-scoped cursor. Acknowledgement provides at-least-once processing semantics; it does not make arbitrary external side effects exactly once.

Setup and configuration

Install the claude-code-bridge distribution with pip. The executable and Python package use the claude-bridge name. Add the optional tui extra to install the terminal interface, or install directly from a source checkout with the development extras.

Running claude-bridge starts local-only HTTP mode on 127.0.0.1:8765; clients use the /mcp path and the dashboard is available at the root URL. Running claude-bridge --stdio starts a local transport without opening a network listener.

For remote use, bind the service explicitly, provide one or more trusted host values, and set CLAUDE_BRIDGE_AUTH_TOKEN. Trusted hosts control accepted HTTP Host names, while the bearer token controls access to protected endpoints. An explicit --allow-unauthenticated-network option exists for private test networks. TLS options, an HTTPS reverse proxy, or an encrypted overlay network should protect sensitive traffic on untrusted networks.

The container image stores SQLite data under /data. Network containers must receive their trusted-host and authentication configuration.

Tools and capabilities

The claude-code-bridge MCP server exposes tools for both messaging and task queues:

  • bridge_send sends legacy text or protocol-v1 messages and supports idempotent retries.
  • bridge_receive, bridge_wait, and bridge_ack read messages, wait for arrivals, and advance consumer cursors.
  • bridge_channels, bridge_ping, and bridge_status provide channel, health, capability, and recent-activity information.
  • bridge_clear removes all messages and tasks from a channel.
  • bridge_enqueue adds an exclusive task to a channel queue.
  • bridge_claim atomically claims a task with a lease and can long-poll.
  • bridge_complete finishes a leased task using its lease token.
  • bridge_fail requeues a failed task with backoff or moves it to a dead-letter state.
  • bridge_tasks reports queue status counts and task details.

Tool results include structured content for compatible MCP clients and readable text for compatibility.

Limitations and notes

The project is a transport, not an autonomous orchestrator. Receiving a message does not authorize an agent to run it. The repository identifies the current source tree as 1.2.0.dev1, a development build beyond the latest stable PyPI release, so deployments replacing a stable version should review the changelog and migration guidance. The documented examples name Claude Code and Codex, but the repository notes that its CI checks MCP protocol behavior rather than launching vendor clients.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Claude Code Bridge

claude-code-bridge is an MCP server that connects Claude Code and other coding-agent sessions across machines through a self-hosted SQLite relay. Its main tools send, receive, wait for, and acknowledge channel messages, plus enqueue, claim, complete, fail, and inspect queued tasks. It supports Streamable HTTP and local stdio transports.

Install it with `python -m pip install claude-code-bridge`. Add `"claude-code-bridge[tui]"` for the terminal UI, or install from a source checkout with `python -m pip install -e ".[dev]"`. The installed command is `claude-bridge`.

Connect Claude Code to `http://127.0.0.1:8765/mcp` with the HTTP MCP transport, or configure local stdio with `claude mcp add -s user claude-bridge -- claude-bridge --stdio`. Protected remote endpoints also need the matching authorization header.

Yes, it provides an exclusive task queue through `bridge_enqueue`, `bridge_claim`, `bridge_complete`, `bridge_fail`, and `bridge_tasks`. Claims use leases, completion is fenced by a lease token, and failures can requeue tasks with backoff or dead-letter them.

No, agents do not need to share a filesystem or process. They exchange messages through the relay's named channels, while durable SQLite history and consumer cursors allow clients to recover after restarting.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewClaude Code Bridge AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/claude-code-bridge?style=directory)](https://allmcps.com/mcp/claude-code-bridge)
HTML Embed
<a href="https://allmcps.com/mcp/claude-code-bridge"><img src="https://allmcps.com/api/badge/claude-code-bridge?style=directory" alt="Claude Code Bridge on AllMCPs" /></a>