# Swarmail MCP server

> Enables coding-agent sessions to communicate via mail, share threaded inboxes, and manage advisory file reservations across machines.

- Repository: https://github.com/bompus/swarmail
- Page: https://hostedmcp.org/servers/bompus/swarmail
- Transport: stdio
- Stars: 2
- License: MIT
- Latest version: 0.11.0

## Install

### Claude Code

```sh
claude mcp add swarmail -- npx -y swarmail-mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "swarmail": {
      "command": "npx",
      "args": [
        "-y",
        "swarmail-mcp"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "swarmail": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "swarmail-mcp"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"swarmail","type":"stdio","command":"npx","args":["-y","swarmail-mcp"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "swarmail": {
      "command": "npx",
      "args": [
        "-y",
        "swarmail-mcp"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add swarmail -- npx -y swarmail-mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.swarmail]
command = "npx"
args = ["-y", "swarmail-mcp"]
```

### Gemini CLI

```sh
gemini mcp add -s user swarmail npx -- -y swarmail-mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "swarmail": {
      "command": "npx",
      "args": [
        "-y",
        "swarmail-mcp"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `SWARMAIL_URL` | no | no | MCP endpoint of the running Swarmail server |

## FAQ

### What does Swarmail allow agents to do?

It lets coding-agent sessions send each other mail, use a threaded inbox with full-text search, and manage advisory file reservations.

### Does Swarmail require authentication?

No, the server has no authentication and accepts only local connections by default.
