Skip to main content

Local SQLite-backed MCP bus for peer coding agents

Project description

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.0"
npx install-mcp "uvx --from agent-bus-mcp==$AGENT_BUS_VERSION agent-bus" --name agent-bus --client claude-code

Replace 0.5.0 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?.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agent_bus_mcp-0.5.0.tar.gz (4.6 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

agent_bus_mcp-0.5.0-cp312-abi3-win_amd64.whl (4.2 MB view details)

Uploaded CPython 3.12+Windows x86-64

agent_bus_mcp-0.5.0-cp312-abi3-manylinux_2_28_x86_64.whl (13.0 MB view details)

Uploaded CPython 3.12+manylinux: glibc 2.28+ x86-64

agent_bus_mcp-0.5.0-cp312-abi3-manylinux_2_28_aarch64.whl (14.0 MB view details)

Uploaded CPython 3.12+manylinux: glibc 2.28+ ARM64

agent_bus_mcp-0.5.0-cp312-abi3-macosx_11_0_arm64.whl (11.6 MB view details)

Uploaded CPython 3.12+macOS 11.0+ ARM64

File details

Details for the file agent_bus_mcp-0.5.0.tar.gz.

File metadata

  • Download URL: agent_bus_mcp-0.5.0.tar.gz
  • Upload date:
  • Size: 4.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","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}

File hashes

Hashes for agent_bus_mcp-0.5.0.tar.gz
Algorithm Hash digest
SHA256 48ba596fbdc9a53e02d9a2328acf231a16fd6da37ddb4aa95ec464fac45e238f
MD5 d16997dc8f60f2b8338e0b9dcc7386d1
BLAKE2b-256 99488b73e4ad6fe8518312bb9257c6f6adf547caa8d080a2bb1683e0478c0ee7

See more details on using hashes here.

File details

Details for the file agent_bus_mcp-0.5.0-cp312-abi3-win_amd64.whl.

File metadata

  • Download URL: agent_bus_mcp-0.5.0-cp312-abi3-win_amd64.whl
  • Upload date:
  • Size: 4.2 MB
  • Tags: CPython 3.12+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","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}

File hashes

Hashes for agent_bus_mcp-0.5.0-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 0f1e7b8bd14fc996ffb48c36bdac8bf16dfceff5ab00f845bc08291116073ddc
MD5 6adc06dafa50a7c8bbd714a4b39bbf54
BLAKE2b-256 06c986ff09c88300136f7f624d2129f36bf3e89d4bd35f0df14111f362f6568e

See more details on using hashes here.

File details

Details for the file agent_bus_mcp-0.5.0-cp312-abi3-manylinux_2_28_x86_64.whl.

File metadata

  • Download URL: agent_bus_mcp-0.5.0-cp312-abi3-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 13.0 MB
  • Tags: CPython 3.12+, manylinux: glibc 2.28+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","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}

File hashes

Hashes for agent_bus_mcp-0.5.0-cp312-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4e1ea51dde97386c5e86c140eed9f733a5e151c612d9f455c04d53d214e66d83
MD5 31b767b0f8f7a4c3475d757e849f242b
BLAKE2b-256 84f29f0292d282aa3e742e504326bea3eb5f682f844a12bde086386ee5476daa

See more details on using hashes here.

File details

Details for the file agent_bus_mcp-0.5.0-cp312-abi3-manylinux_2_28_aarch64.whl.

File metadata

  • Download URL: agent_bus_mcp-0.5.0-cp312-abi3-manylinux_2_28_aarch64.whl
  • Upload date:
  • Size: 14.0 MB
  • Tags: CPython 3.12+, manylinux: glibc 2.28+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","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}

File hashes

Hashes for agent_bus_mcp-0.5.0-cp312-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 593be8ff4a3c7b8214b14f4b8fd2532338bb6cdc64c02be2ec063832057d5882
MD5 d627b10080ec7126092e767d15f8aea9
BLAKE2b-256 f3943fe31d9493673db286dcce7d107ed6cacc0358f05c1cdbbd702c47a9b386

See more details on using hashes here.

File details

Details for the file agent_bus_mcp-0.5.0-cp312-abi3-macosx_11_0_arm64.whl.

File metadata

  • Download URL: agent_bus_mcp-0.5.0-cp312-abi3-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 11.6 MB
  • Tags: CPython 3.12+, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","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}

File hashes

Hashes for agent_bus_mcp-0.5.0-cp312-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0010623cfaa49c10eade6c59db5606737ee7d897a066b2480557df03a0b3710c
MD5 449252c15972854a46603169e0a1db3f
BLAKE2b-256 f329e28fe3b21a707ea42bbb1d278e3ee334fd9b9c54eef19fb1b9caee07c788

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page