A mail-like coordination layer for AI coding agents
source availableMIT License (with OpenAI/Anthropic Rider)self-hostablefreeMCP
MCP Agent Mail lets several AI coding agents working on one project coordinate like colleagues over email. Each agent gets a persistent identity, an inbox and outbox with threaded, searchable messages, and advisory file reservations (leases on file globs, enforced by a pre-commit guard) to say what it's about to edit. Messages live in a per-project Git archive indexed in SQLite rather than in the agents' context windows. It's an MCP server with 47 tools and 25 resources, plus an operator CLI (am), a terminal UI, a server-rendered web UI and an agent-first robot mode, and works with Claude Code, Codex CLI, Gemini CLI, GitHub Copilot CLI and any MCP client. This is the maintained Rust rewrite; the original Python project is deprecated in its favour.
Problems it solves
- my coding agents keep overwriting each other's edits when they work in the same repo
- let several Claude Code and Codex sessions message each other while they work
- stop relaying messages between my AI agents by hand
- agents claim which files they're editing so others stay out
- keep a searchable record of what my coding agents told each other
Features
- persistent agent identities with inboxes and threaded messages
- advisory file reservations with a pre-commit guard
- Git-backed message archive indexed in SQLite
- MCP server with 47 tools and 25 resources
- terminal UI, web UI and a robot CLI for agents
- installers for Linux, macOS and Windows
Capabilities
| Has a command line tool | plan not known |
|---|---|
| Has an MCP server | plan not known |
Alternatives
The same job
These do what MCP Agent Mail does.
