S

Swarmail

by bompus · io.github.bompus/swarmail

Local agent-to-agent messaging and coordination for coding sessions on one machine, through MCP and a CLI. Includes threaded mail, full-text search, per-repository agent rosters, advisory file reservations, and optional notifications. Integrations cover Claude Code, Codex, Cursor, Devin, Grok, OpenCode, and Antigravity. Standalone agents and T3 Code sessions can share the same local server.

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-bompus-swarmail": {
      "command": "npx",
      "args": [
        "-y",
        "swarmail-mcp"
      ],
      "env": {
        "SWARMAIL_URL": "http://127.0.0.1:18765/mcp/",
        "SWARMAIL_DB": "~/.local/share/swarmail/mail.sqlite3",
        "SWARMAIL_PORT": "18765",
        "SWARMAIL_AGENT": "<VALUE>",
        "SWARMAIL_GUARD": "block",
        "SWARMAIL_WAKE_URL": "http://127.0.0.1:18765",
        "SWARMAIL_RETIRE_DAYS": "7",
        "SWARMAIL_SYNCHRONOUS": "normal"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-bompus-swarmail": {
      "command": "npx",
      "args": [
        "-y",
        "swarmail-mcp"
      ],
      "env": {
        "SWARMAIL_URL": "http://127.0.0.1:18765/mcp/",
        "SWARMAIL_DB": "~/.local/share/swarmail/mail.sqlite3",
        "SWARMAIL_PORT": "18765",
        "SWARMAIL_AGENT": "<VALUE>",
        "SWARMAIL_GUARD": "block",
        "SWARMAIL_WAKE_URL": "http://127.0.0.1:18765",
        "SWARMAIL_RETIRE_DAYS": "7",
        "SWARMAIL_SYNCHRONOUS": "normal"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-bompus-swarmail": {
      "command": "npx",
      "args": [
        "-y",
        "swarmail-mcp"
      ],
      "env": {
        "SWARMAIL_URL": "http://127.0.0.1:18765/mcp/",
        "SWARMAIL_DB": "~/.local/share/swarmail/mail.sqlite3",
        "SWARMAIL_PORT": "18765",
        "SWARMAIL_AGENT": "<VALUE>",
        "SWARMAIL_GUARD": "block",
        "SWARMAIL_WAKE_URL": "http://127.0.0.1:18765",
        "SWARMAIL_RETIRE_DAYS": "7",
        "SWARMAIL_SYNCHRONOUS": "normal"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-bompus-swarmail": {
      "command": "npx",
      "args": [
        "-y",
        "swarmail-mcp"
      ],
      "env": {
        "SWARMAIL_URL": "http://127.0.0.1:18765/mcp/",
        "SWARMAIL_DB": "~/.local/share/swarmail/mail.sqlite3",
        "SWARMAIL_PORT": "18765",
        "SWARMAIL_AGENT": "<VALUE>",
        "SWARMAIL_GUARD": "block",
        "SWARMAIL_WAKE_URL": "http://127.0.0.1:18765",
        "SWARMAIL_RETIRE_DAYS": "7",
        "SWARMAIL_SYNCHRONOUS": "normal"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-bompus-swarmail": {
      "command": "npx",
      "args": [
        "-y",
        "swarmail-mcp"
      ],
      "env": {
        "SWARMAIL_URL": "http://127.0.0.1:18765/mcp/",
        "SWARMAIL_DB": "~/.local/share/swarmail/mail.sqlite3",
        "SWARMAIL_PORT": "18765",
        "SWARMAIL_AGENT": "<VALUE>",
        "SWARMAIL_GUARD": "block",
        "SWARMAIL_WAKE_URL": "http://127.0.0.1:18765",
        "SWARMAIL_RETIRE_DAYS": "7",
        "SWARMAIL_SYNCHRONOUS": "normal"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-bompus-swarmail": {
      "command": "npx",
      "args": [
        "-y",
        "swarmail-mcp"
      ],
      "env": {
        "SWARMAIL_URL": "http://127.0.0.1:18765/mcp/",
        "SWARMAIL_DB": "~/.local/share/swarmail/mail.sqlite3",
        "SWARMAIL_PORT": "18765",
        "SWARMAIL_AGENT": "<VALUE>",
        "SWARMAIL_GUARD": "block",
        "SWARMAIL_WAKE_URL": "http://127.0.0.1:18765",
        "SWARMAIL_RETIRE_DAYS": "7",
        "SWARMAIL_SYNCHRONOUS": "normal"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
SWARMAIL_URL No MCP endpoint for the command and the register hook Default: http://127.0.0.1:18765/mcp/
SWARMAIL_DB No Database path Default: ~/.local/share/swarmail/mail.sqlite3
SWARMAIL_PORT No Server port Default: 18765
SWARMAIL_AGENT No Name used by `inbox`, `send`, `ping`, `guard` and `who`
SWARMAIL_GUARD No `warn` only reports, `off` skips Default: block
SWARMAIL_WAKE_URL No Server base URL for the wake hook Default: http://127.0.0.1:18765
SWARMAIL_RETIRE_DAYS No Retire idle agents and drop projects whose checkout is gone; `0` keeps both Default: 7
SWARMAIL_SYNCHRONOUS No `full` syncs every commit, at about 3 ms per send instead of 0.5 ms Default: normal

Similar servers