Swarmail logo

Swarmail

Coordinates mail, threaded inboxes, searches, and advisory file reservations between coding-agent sessions.

Install Swarmail

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "swarmail": {
      "command": "npx",
      "args": [
        "-y",
        "swarmail-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

Swarmail connects coding-agent sessions through MCP so they can exchange mail, inspect threaded inboxes, search messages, and coordinate advisory file reservations. It stores repository-specific rosters and mail in SQLite, running locally on 127.0.0.1 by default as a Bun binary. An optional network configuration lets sessions on other machines connect over a private network such as Tailscale. Reach for it when several agents share work across sessions, repositories, or machines and need explicit coordination.

Use cases

  • Hand off implementation tasks between coding-agent sessions
  • Search threaded agent mail across repositories
  • Reserve files before parallel edits
  • Wake Claude Code or Cursor when a message arrives
  • Coordinate agents running on separate machines

Key features

  • MCP access for coding-agent sessions
  • Threaded inboxes with full-text search
  • Repository-specific agent rosters
  • Advisory file reservations
  • Wake-on-mail hooks and bridges
  • SQLite-backed local server with stdio relay

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 1d ago

Recent health check succeeded.

7/7 checks healthy over the last 26d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 9d ago via OSV.dev · swarmail-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
npm downloads2.8kPackage downloads in the last 30 days.
Last commit2d agoMost recent push to the default branch.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Swarmail works

What Swarmail does

Swarmail gives coding-agent sessions a shared communication and coordination layer. Each repository has a roster of named agents, a threaded inbox, full-text message search, and advisory reservations for files. Agents access these functions through MCP, while people or scripts can use the swarmail command.

The default deployment is local to one machine. A configured server can also accept sessions from other machines over a private network, which supports workflows where agents run on separate hosts. Mail can be used for handoffs, replies, status updates, and coordination around files that multiple sessions might edit.

Swarmail also supports wake-on-mail workflows for selected hosts. Claude Code and Cursor sessions can wake when messages arrive. Cursor, Devin, and Antigravity can receive mail during active work through native hooks, while additional opt-in bridges can deliver messages to targets such as OpenCode, native Codex, native Grok, and explicit T3 Code sessions.

How it works

The server is delivered as a Bun binary and uses SQLite for its mail database. By default it listens on 127.0.0.1:18765; the database is stored at ~/.local/share/swarmail/mail.sqlite3. Coding-agent hosts register the server as swarmail in their MCP configuration, then use MCP operations to send and retrieve messages and work with reservations.

For clients that only support stdio or install servers from a registry, npx -y swarmail-mcp runs a relay. The relay forwards requests to the already-running Swarmail server rather than starting an independent database or installing the server itself.

Hooks register sessions and can notify or wake supported hosts. Wake bridges are foreground processes and are opt-in; installing Swarmail does not start them automatically. Inbox notices direct a receiving session to run swarmail inbox --session to drain unread mail across repositories.

Setup and configuration

Installation requires Bun 1.4.2 or newer. Linux with systemd and Windows 10 or 11 are supported; WSL 2 with systemd enabled counts as Linux. macOS is not supported.

On Linux, clone the repository, run bun install, and execute scripts/enable.sh. This builds ~/.local/bin/swarmail and starts the swarmail.service user unit. On Windows, bun scripts/enable-windows.ts builds ~\\.local\\bin\\swarmail.exe and creates a non-administrator scheduled task named Swarmail that starts it at logon.

Run bun scripts/configure-mcp.ts to register the server with supported hosts found in the home directory. Use --dry-run to preview edits, or --windows-home[=DIR] from WSL for Windows-side host registration. Run bun scripts/configure-hooks.ts to install registration hooks, wake hooks for Claude Code and Cursor, and the Claude Code mod; --no-claude-mod skips the mod for new sessions.

Tools and capabilities

  • Send mail between named coding-agent sessions.
  • Read threaded inboxes and drain unread messages.
  • Search mail with full-text queries.
  • Maintain repository-specific agent rosters.
  • Create and use advisory file reservations.
  • Wake supported sessions when mail arrives.
  • Relay MCP requests through swarmail-mcp for stdio-only clients.

Limitations and notes

The default server has no authentication and is intended for local connections. It rejects non-local Origin headers, but the port should not be exposed directly. Network use requires opting into a configuration for access from another machine, preferably over a private network.

Windows support is preview quality. Running Swarmail in WSL and natively on Windows at the same time is not supported because both use port 18765. Some Windows combinations, including native Windows wake behavior and remote-server hook use, have not been verified.

File reservations are advisory rather than an operating-system lock. Hooks and host integrations vary by agent, and configured bridges must be started separately when needed.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Swarmail

Swarmail is an MCP server that connects coding-agent sessions through a local or networked SQLite-backed service. Its main tools support sending mail, reading threaded inboxes, searching messages, managing agent rosters, and using advisory file reservations, with optional hooks for waking supported sessions when mail arrives.

Install it by cloning the repository, running `bun install`, and enabling the server with the platform script. Use `scripts/enable.sh` on Linux or `bun scripts/enable-windows.ts` on Windows, then register hosts with `bun scripts/configure-mcp.ts` and install hooks with `bun scripts/configure-hooks.ts`.

Yes, Swarmail supports Cursor registration, MCP access, and wake-on-mail hooks. Cursor sessions can also receive mail during active work through native hooks. The installation scripts configure Cursor when its configuration is present in the relevant home directory.

Yes, Swarmail can serve sessions on other machines after you opt into a network configuration. The project describes using a private network such as Tailscale, while the default setup accepts only local connections on `127.0.0.1:18765`.

Yes, use the `swarmail-mcp` npm relay with an stdio-only client. Running `npx -y swarmail-mcp` forwards MCP requests to the Swarmail server configured separately, so the relay does not replace the server or install its database.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewSwarmail AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/swarmail?style=directory)](https://allmcps.com/mcp/swarmail)
HTML Embed
<a href="https://allmcps.com/mcp/swarmail"><img src="https://allmcps.com/api/badge/swarmail?style=directory" alt="Swarmail on AllMCPs" /></a>