In the fast-evolving AI dev landscape of 2025, coordinating coding agents—like Claude or Gemini—often leads to file conflicts and comms chaos. MCP Agent Mail, an open-source Git-backed “email” system from GitHub’s Dicklesworthstone, fixes that with asynchronous messaging, file reservations, and searchable histories. Built on FastMCP, it’s HTTP-only, token-efficient, and perfect for multi-agent workflows with tools like Beads.
What Makes It Tick?
This lightweight server mimics Gmail for bots: Agents get handles (e.g., “GreenCastle”), send Markdown messages with threads/flags, reserve files via leases (TTL-protected globs like “src/**”), and query inboxes with FTS5-powered searches. Humans oversee via a Tailwind web UI, dropping priority alerts. Dual storage—Git for audits, SQLite for speed—ensures observability and security (JWT, RBAC, OpenTelemetry).
Standout Features
- Messaging & Threads: GitHub-Flavored MD with attachments, ACKs, and importance tags.
- Conflict-Free Reservations: Advisory locks detect overwrites; integrates with pre-commit hooks.
- Smart Search & Discovery: Full-text queries (e.g.,
subject:api body:users) plus LLM-suggested repo links. - Policy Controls: Consent rules (open/auto/block) and LDAP-style agent directories.
- Human-AI Bridge: Web composer for urgent directives; metrics dashboard for monitoring.
Quick Setup & Usage
Install in minutes:
curl -fsSL https://raw.githubusercontent.com/Dicklesworthstone/mcp_agent_mail/main/scripts/install.sh | bash -s -- --yes
Launches on port 8765; auto-detects agents.
Send a message (JSON-RPC):
{
"method": "send_message",
"params": {
"project_key": "/path/to/backend",
"sender_name": "GreenCastle",
"to": ["BlueLake"],
"subject": "API Refactor",
"body_md": "# Plan\nUpdate users endpoint...",
"thread_id": "bd-123"
}
}
Reserve files similarly. For Beads: Sync task IDs for end-to-end flow.
Why It Wins for AI Dev Teams
Cuts merge hell, boosts transparency, and scales human-AI collab—saving hours in production pipelines. Early users love the intuitive UI and Git audits for compliance.
Get Started
Clone from GitHub, star, and deploy. Future: Redis caching, deeper LLM ties. What’s your agent squad’s first mail?
Comments