Skip to main content

Agent Bus MCP website hero illustration showing local coding agents coordinating through a shared message bus.

Agent Bus MCP

Agent Bus MCP is a shared local inbox for AI coding agents.

Use it when you want Codex, Claude Code, Gemini CLI, OpenCode, Cursor, or another MCP-capable tool to work on the same task without copy-pasting summaries, losing context after restarts, or scattering coordination across scratch files.

Under the hood, Agent Bus MCP is a stdio MCP server backed by SQLite. Agents create named topics, join with stable peer names, send and receive messages through sync(), and resume from server-side cursors. The result is a durable, searchable record of handoffs, reviews, and sidecar work that stays on the local machine.

[!TIP] Prefer the polished product and docs front door? Visit agentbusmcp.com for the live website, then use this README and docs/ when you want the repo-native setup, reference, and implementation details.

Why use Agent Bus MCP?

Multi-agent coding breaks down when every tool keeps its own memory. One agent implements, another reviews, a sidecar investigates, and the coordination ends up in pasted summaries, terminal logs, or repo scratch files.

Agent Bus MCP gives those agents one shared place to coordinate:

  • Handoffs stay readable. Each task gets a named topic with one ordered message stream.
  • Agents keep their identity. A reviewer, implementer, or sidecar can reconnect with the same peer name.
  • Restarts do not erase progress. Server-side cursors remember what each agent has already seen.
  • History stays inspectable. Use the CLI or Web UI to replay, export, and search past coordination.
  • Everything stays local. The bus runs over stdio and stores state in SQLite. No hosted service is required.

When Agent Bus MCP is a good fit

Agent Bus MCP is a strong fit when:

  • two or more local coding agents need to collaborate on the same task
  • an agent should be able to disconnect and later reclaim its identity
  • you want durable replay instead of "read everything again" polling
  • you want a searchable local log of agent-to-agent coordination

It is a weaker fit when:

  • you only need a single agent with no handoffs
  • you need networked multi-host messaging
  • you need auth, tenancy, or cloud-hosted coordination out of the box

Quickstart

The fastest path is to install Agent Bus MCP as an MCP server in your client and start using it from natural-language prompts.

export AGENT_BUS_VERSION="0.5.1"
npx install-mcp "uvx --from agent-bus-mcp==$AGENT_BUS_VERSION agent-bus" --name agent-bus --client claude-code

Replace 0.5.1 if you want a different release. For direct setup:

# Codex
codex mcp add agent-bus -- uvx --from "agent-bus-mcp==$AGENT_BUS_VERSION" agent-bus

# Claude Code
claude mcp add agent-bus -- uvx --from "agent-bus-mcp==$AGENT_BUS_VERSION" agent-bus

Then ask an agent to:

  1. create or reuse a topic
  2. join the topic with a stable agent_name
  3. send or read messages through sync()

For a fuller walkthrough, start with First topic between two peers.

Web UI

Agent Bus MCP also ships with a local Web UI for browsing topics, reading threads, exporting logs, and searching the bus without leaving the browser.

From a source checkout:

uv sync --extra web
pnpm --dir frontend install
pnpm --dir frontend build
uv run agent-bus serve

Or launch the published package directly with the web extra:

uvx --from "agent-bus-mcp[web]==$AGENT_BUS_VERSION" agent-bus serve

Agent Bus MCP Web UI overview showing the topic sidebar and activity-sorted workbench.

The overview keeps recent topics in the sidebar and leaves the main workbench focused on navigation and search.

For the full walkthrough, including thread navigation, export, and troubleshooting, see How to use the Agent Bus MCP Web UI.

Documentation

This repo now has a lightweight Diataxis-style docs layout under docs/:

Need Start here
Learn by doing Tutorials
Complete a setup task How-to guides
Look up tools, commands, and config Reference
Understand the design, fit, and tradeoffs Why & fit

Recommended starting points:

Upgrading from an older release? See CHANGELOG.md.

Optional workflow skill

This repo also includes a reusable workflow skill asset at ./.agents/skills/agent-bus-workflows/.

It is useful when you want ready-made reviewer/implementer loops, handoffs, duplicate-name recovery, and reclaim-token reconnect behavior in a Codex-style skill package. See Install and configure Agent Bus MCP for the install path.

Architecture at a glance

diagram

The Python package provides the MCP server, CLI, Web UI, and embedding worker. The Rust core owns the SQLite schema, reads/writes, search, and embedding-job coordination, which keeps the data model single-sourced.

For the rationale behind this shape, see Why use Agent Bus MCP?.

Metadata

Release files for agent-bus-mcp 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agent-bus-mcp 0.5.1
File Size Uploaded
agent_bus_mcp-0.5.1.tar.gz 4.6 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for agent-bus-mcp 0.5.1
File
agent_bus_mcp-0.5.1-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details
agent_bus_mcp-0.5.1-cp312-abi3-manylinux_2_28_x86_64.whl CPython 3.12 abi3 Linux glibc 2.28+ x86-64 Details
agent_bus_mcp-0.5.1-cp312-abi3-manylinux_2_28_aarch64.whl CPython 3.12 abi3 Linux glibc 2.28+ ARM64 Details
agent_bus_mcp-0.5.1-cp312-abi3-macosx_11_0_arm64.whl CPython 3.12 abi3 macOS 11.0+ ARM64 Details

Total release size: 47.5 MB

Release files / agent_bus_mcp-0.5.1.tar.gz

Download URL agent_bus_mcp-0.5.1.tar.gz
Size 4.6 MB
Tags Source
SHA-256 checksum
How to use checksums
cfc43683c68d30f6f5714c7a83ed5f4236b7f69beda060aeddc9c2a4589a40fd
BLAKE2b-256 checksum
How to use checksums
34482f9ce800a19d8de2ccb4245d3fdcf40ab1ca54de54ec7c43e584df82b5b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / agent_bus_mcp-0.5.1-cp312-abi3-win_amd64.whl

Download URL agent_bus_mcp-0.5.1-cp312-abi3-win_amd64.whl
Size 4.2 MB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
a6d04558181e6b424bf1b36a6fdce577e80b97eb93dc3df9605d4349ed07cf2c
BLAKE2b-256 checksum
How to use checksums
a50506d71eb8322f270f07c5b5e0c8e23c2fd750229610c5acf555b9d9e315c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / agent_bus_mcp-0.5.1-cp312-abi3-manylinux_2_28_x86_64.whl

Download URL agent_bus_mcp-0.5.1-cp312-abi3-manylinux_2_28_x86_64.whl
Size 13.0 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
f95cf322eab1a3cb64cfda680d58288878b20811816ff2b1aa15892047a21e72
BLAKE2b-256 checksum
How to use checksums
0bf45d5246b65d6466ee2b07270eb593e0611ef74362b77c5f0f547b685effba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / agent_bus_mcp-0.5.1-cp312-abi3-manylinux_2_28_aarch64.whl

Download URL agent_bus_mcp-0.5.1-cp312-abi3-manylinux_2_28_aarch64.whl
Size 14.1 MB
Tags CPython 3.12 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
afe36354862e73be54a29025a54f5503e5ca01a8cc86eadec66bce9ac0f21bff
BLAKE2b-256 checksum
How to use checksums
b9b1bbccb80058c96b991ad1f9dfe393a5b5a7ee28d2aec3f3a0f9ccaaae6bf6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / agent_bus_mcp-0.5.1-cp312-abi3-macosx_11_0_arm64.whl

Download URL agent_bus_mcp-0.5.1-cp312-abi3-macosx_11_0_arm64.whl
Size 11.6 MB
Tags CPython 3.12 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
561d83dce8f9b9f2c0640446e0c745542470f02f200a3b11c9064cf35befd401
BLAKE2b-256 checksum
How to use checksums
e04c06ca3cbbab8ae5bb1e7b9f64447a5481f73243d086364c219eeb4f8a4cce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.5.1 This release

5 release files

0.5.0

5 release files

0.4.3

5 release files

0.4.2

5 release files

0.4.1

5 release files

0.4.0

5 release files

0.3.1

5 release files

0.3.0

5 release files

0.2.1

5 release files

0.2.0

5 release files

0.1.4

5 release files

0.1.2

5 release files

0.1.1

5 release files

0.1.0

5 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page