MCP Agent Mail (Rust)
A mail-like coordination layer for AI coding agents, exposed as an MCP server with a Git-backed archive, SQLite indexing, TUI, web UI and robot CLI.
At a Glance
About MCP Agent Mail (Rust)
MCP Agent Mail (Rust) is a coordination server for multiple AI coding agents working in the same codebase. It gives each agent a persistent identity, an inbox and outbox, threaded messaging, and advisory file reservations. The Rust rewrite of the original Python project is published by Dicklesworthstone on GitHub, with release v0.3.41 listed.
What It Is
Agent Mail is an MCP server that agents such as Claude Code, Codex CLI, Gemini CLI, Oh My Pi and GitHub Copilot CLI, or any MCP-compatible client, can connect to over stdio or HTTP. Agents register under memorable identities (for example GreenCastle), send subject-and-thread based messages, and reserve file globs before editing. The README describes 47 MCP tools and 25 read-only resources, and says messages are kept in a per-project archive rather than in agent context windows.
How Coordination Works
SQLite holds live state for fast indexing and search, while every message, reservation and agent profile is also written as human-readable files to a per-project Git repository. File reservations are advisory TTL-based leases rather than hard locks, and a pre-commit guard hook blocks commits that touch files reserved by other agents. Macros such as start-session, prepare-thread, file-reservation-cycle and contact-handshake bundle common flows. Agents in different projects can message each other after a contact handshake, and a project-wide mailbox address reaches all agents in a project once.
Operator and Human Interfaces
The am CLI starts the server with an interactive 16-screen TUI covering dashboard, messages, threads, agents, search, reservations, metrics, health, analytics, attachments, archive browsing and ATC. A server-rendered web UI at /mail/ offers unified inbox review, search, attachments and a human overseer compose form. am robot provides 19 non-interactive subcommands with toon, json or markdown output for agent loops, and am doctor offers diagnostics and repair tooling.
Setup Path
A curl installer for Linux and macOS and a PowerShell installer for Windows download signed release binaries and configure detected coding agents for HTTP MCP. Container images and source builds are also documented. Source builds require Rust nightly.
Community Discussions
Be the first to start a conversation about MCP Agent Mail (Rust)
Share your experience with MCP Agent Mail (Rust), ask questions, or help others learn from your insights.
Pricing
Free
Self-hosted software licensed under MIT with an OpenAI/Anthropic rider (not OSI-approved; use is prohibited for Restricted Parties such as OpenAI and Anthropic and their affiliates).
- MCP server with 47 tools and 25 resources
- Git-backed archive and SQLite indexing
- 16-screen TUI, server-rendered web UI, robot CLI
- License grants permission free of charge, but rider denies rights to OpenAI, Anthropic, their Affiliates and persons acting on their behalf
Capabilities
Key Features
- 47 MCP tools and 25 MCP resources
- Persistent agent identities with inbox/outbox
- Threaded messaging with acknowledgments and importance levels
- Advisory file reservations with TTL and glob patterns
- Pre-commit and pre-push guard hooks
- Git-backed archive with SQLite indexing
- Lexical Search V3 with optional semantic search
- 16-screen interactive TUI
- Server-rendered web UI at /mail/
- Robot CLI with 19 subcommands and toon/json/md output
- Cross-project contacts and product bus
- Build slots for heavy verification
- Mailbox diagnostics and repair via am doctor
- Signed release verification and self-update
Integrations
Demo Video

