# agenticmail

> agenticmail is an MCP server for communication. Email and SMS tools for AI agents through an AgenticMail server, over stdio. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI
- **Repository:** https://github.com/agenticmail/agenticmail/tree/HEAD/packages/mcp
- **MCP Registry name:** io.github.agenticmail/mcp
- **Categories:** [communication](https://ai-powered.com/categories/communication)
- **Listing updated:** 2026-11-23

## About

This package is the bridge between an MCP client and a running AgenticMail API server. It runs as a local subprocess over stdio, translates each tool call into an API request, and returns the response as text. The README counts 100 tools covering email, SMS and agent management.

Beyond sending and reading mail, it is built for several agents working together. A wake parameter on send tools decides which local agents get a turn on a thread, subjects tagged [FINAL], [DONE], [CLOSED] or [WRAP] close a thread, and call_agent can hand a task to another agent with a JSON Schema describing the deliverable. check_activity shows which workers are running and tail_worker returns the end of a worker's log with the master key.

It needs Node.js 22 or newer and an AgenticMail server to talk to, with an agent API key; a master key unlocks admin operations such as creating agents. The optional HTTP mode binds to 127.0.0.1 and requires a bearer token after a fix for GHSA-63gr-g7jc-v8rg, while stdio mode was never affected.

## Features

- **Email and SMS actions:** Send, reply, forward, template-send and schedule mail, and handle verification codes.
- **Multi-agent coordination:** Assign tasks to other agents and check which workers are active.
- **Selective wake control:** The wake parameter limits which agents get a turn when mail arrives.
- **Thread memory:** get_thread_id and save_thread_memory keep per-thread summaries between wakes.
- **Structured agent results:** call_agent accepts an outputSchema and validates the submitted result against it.
- **Scoped keys:** Agent API keys limit calls to one mailbox; a master key enables admin tools.
- **Authenticated HTTP mode:** Optional HTTP transport binds locally and requires a bearer token.

## Good for

- Let an agent send and reply to email on your behalf
- Receive a verification code in an agent's inbox during a signup flow
- Delegate tasks between several email-addressed agents
- Wait for a specific reply before an agent continues
- Schedule and manage drafts from a chat session

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add mcp --env AGENTICMAIL_API_KEY='<AGENTICMAIL_API_KEY>' --env AGENTICMAIL_MASTER_KEY='<AGENTICMAIL_MASTER_KEY>' -- npx -y @agenticmail/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@agenticmail/mcp"
      ],
      "env": {
        "AGENTICMAIL_API_KEY": "<AGENTICMAIL_API_KEY>",
        "AGENTICMAIL_MASTER_KEY": "<AGENTICMAIL_MASTER_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@agenticmail/mcp"
      ],
      "env": {
        "AGENTICMAIL_API_KEY": "<AGENTICMAIL_API_KEY>",
        "AGENTICMAIL_MASTER_KEY": "<AGENTICMAIL_MASTER_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@agenticmail/mcp"
      ],
      "env": {
        "AGENTICMAIL_API_KEY": "<AGENTICMAIL_API_KEY>",
        "AGENTICMAIL_MASTER_KEY": "<AGENTICMAIL_MASTER_KEY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@agenticmail/mcp"
      ],
      "env": {
        "AGENTICMAIL_API_KEY": "<AGENTICMAIL_API_KEY>",
        "AGENTICMAIL_MASTER_KEY": "<AGENTICMAIL_MASTER_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp --env AGENTICMAIL_API_KEY='<AGENTICMAIL_API_KEY>' --env AGENTICMAIL_MASTER_KEY='<AGENTICMAIL_MASTER_KEY>' -- npx -y @agenticmail/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp]
command = "npx"
args = ["-y", "@agenticmail/mcp"]
env = { AGENTICMAIL_API_KEY = "<AGENTICMAIL_API_KEY>", AGENTICMAIL_MASTER_KEY = "<AGENTICMAIL_MASTER_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@agenticmail/mcp"
      ],
      "env": {
        "AGENTICMAIL_API_KEY": "<AGENTICMAIL_API_KEY>",
        "AGENTICMAIL_MASTER_KEY": "<AGENTICMAIL_MASTER_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e AGENTICMAIL_API_KEY='<AGENTICMAIL_API_KEY>' -e AGENTICMAIL_MASTER_KEY='<AGENTICMAIL_MASTER_KEY>' mcp npx -- -y @agenticmail/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@agenticmail/mcp"
      ],
      "env": {
        "AGENTICMAIL_API_KEY": "<AGENTICMAIL_API_KEY>",
        "AGENTICMAIL_MASTER_KEY": "<AGENTICMAIL_MASTER_KEY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@agenticmail/mcp"
      ],
      "env": {
        "AGENTICMAIL_API_KEY": "<AGENTICMAIL_API_KEY>",
        "AGENTICMAIL_MASTER_KEY": "<AGENTICMAIL_MASTER_KEY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@agenticmail/mcp"
      ],
      "env": {
        "AGENTICMAIL_API_KEY": "<AGENTICMAIL_API_KEY>",
        "AGENTICMAIL_MASTER_KEY": "<AGENTICMAIL_MASTER_KEY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@agenticmail/mcp"
      ],
      "env": {
        "AGENTICMAIL_API_KEY": "<AGENTICMAIL_API_KEY>",
        "AGENTICMAIL_MASTER_KEY": "<AGENTICMAIL_MASTER_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@agenticmail/mcp"
      ],
      "env": {
        "AGENTICMAIL_API_KEY": "<AGENTICMAIL_API_KEY>",
        "AGENTICMAIL_MASTER_KEY": "<AGENTICMAIL_MASTER_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@agenticmail/mcp"
      ],
      "env": {
        "AGENTICMAIL_API_KEY": "<AGENTICMAIL_API_KEY>",
        "AGENTICMAIL_MASTER_KEY": "<AGENTICMAIL_MASTER_KEY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@agenticmail/mcp"
      ],
      "env": {
        "AGENTICMAIL_API_KEY": "<AGENTICMAIL_API_KEY>",
        "AGENTICMAIL_MASTER_KEY": "<AGENTICMAIL_MASTER_KEY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@agenticmail/mcp"
      ],
      "env": {
        "AGENTICMAIL_API_KEY": "<AGENTICMAIL_API_KEY>",
        "AGENTICMAIL_MASTER_KEY": "<AGENTICMAIL_MASTER_KEY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 3 of 12 tools change data; 6 names don't say. From the server's own tool labels and tool names; not verified by us.

- `send_email` (name suggests: changes): Send an email, with a wake option for which agents get a turn.
- `reply_email` (name suggests: changes): Reply to a message.
- `forward_email`: Forward a message.
- `template_send` (name suggests: changes): Send mail from a template.
- `manage_drafts`: Create, edit and send drafts.
- `wait_for_email`: Block until a matching message arrives, filtered by sender, subject or thread.
- `check_activity` (name suggests: reads): Show which agents are awake and what they are working on.
- `call_agent`: Hand a task to another agent, optionally with an output schema.
- `tail_worker`: Return the last lines of a worker's log (master key only).
- `get_thread_id` (name suggests: reads): Get the thread id for a message.
- `save_thread_memory`: Save a summary of a thread for the next wake.
- `batch_mark_read` (name suggests: reads): Mark several messages read at once.

## FAQ

### What does agenticmail need to run?

Node.js 22 or newer and an AgenticMail API server. Set AGENTICMAIL_API_URL and an agent key in AGENTICMAIL_API_KEY.

### Does agenticmail open network ports?

In the default stdio mode it opens none. The optional --http mode binds to 127.0.0.1 and requires a bearer token.

### What is the master key for?

AGENTICMAIL_MASTER_KEY enables admin operations such as creating and deleting agents and gateway config, and lets calls address other agents by name.

### How do I install agenticmail?

Run npm install -g @agenticmail/mcp, or launch it with npx -y @agenticmail/mcp from the MCP client config.

### How do I add agenticmail to Claude Code?

Run this command in your terminal: claude mcp add mcp --env AGENTICMAIL_API_KEY='<AGENTICMAIL_API_KEY>' --env AGENTICMAIL_MASTER_KEY='<AGENTICMAIL_MASTER_KEY>' -- npx -y @agenticmail/mcp

### What are the best alternatives to agenticmail?

The closest alternatives to agenticmail are TrendRadar, TryPost, Discord MCP, Gmail MCP and Getmitra.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [TrendRadar](https://ai-powered.com/mcp/trendradar): TrendRadar is an open-source MCP server for communication.
- [TryPost](https://ai-powered.com/mcp/trypost): TryPost is a paid MCP server for marketing and seo.
- [Discord MCP](https://ai-powered.com/mcp/discord-mcp): Discord MCP is an open-source MCP server for communication.
- [Gmail MCP](https://ai-powered.com/mcp/gmail-mcp-3): Gmail MCP is an open-source MCP server for communication.
- [Getmitra](https://ai-powered.com/mcp/getmitra): Getmitra is an MCP server for communication.
- [Valentina](https://ai-powered.com/mcp/valentina): Valentina is an MCP server for e-commerce.
- [Carla](https://ai-powered.com/mcp/carla): Carla is an MCP server for communication.
- [MCP for iCloud](https://ai-powered.com/mcp/mcp-for-icloud-2): MCP for iCloud is an MCP server for communication.

---
Source: https://ai-powered.com/mcp/agenticmail
