agenticmail
Email and SMS tools for AI agents through an AgenticMail server, over stdio
agenticmail is an MCP server for communication. It runs locally on your machine and is started by your AI client.
- Platforms
- CLI
- Runs
- Locally
- What it can do
- Can change data (3 tools)
- Version
- 0.9.30
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add mcp --env AGENTICMAIL_API_KEY='<AGENTICMAIL_API_KEY>' --env AGENTICMAIL_MASTER_KEY='<AGENTICMAIL_MASTER_KEY>' -- npx -y @agenticmail/mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@agenticmail/mcp"
],
"env": {
"AGENTICMAIL_API_KEY": "<AGENTICMAIL_API_KEY>",
"AGENTICMAIL_MASTER_KEY": "<AGENTICMAIL_MASTER_KEY>"
}
}
}
}Add to claude_desktop_config.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.
Add to ~/.cursor/mcp.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.
Add to ~/.copilot/mcp-config.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.
Add with the CLI
Run in a terminal
codex mcp add mcp --env AGENTICMAIL_API_KEY='<AGENTICMAIL_API_KEY>' --env AGENTICMAIL_MASTER_KEY='<AGENTICMAIL_MASTER_KEY>' -- npx -y @agenticmail/mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.mcp]
command = "npx"
args = ["-y", "@agenticmail/mcp"]
env = { AGENTICMAIL_API_KEY = "<AGENTICMAIL_API_KEY>", AGENTICMAIL_MASTER_KEY = "<AGENTICMAIL_MASTER_KEY>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"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
Add to ~/.gemini/settings.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
Antigravity
Add to ~/.gemini/config/mcp_config.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 (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.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
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "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.
Junie
Add to ~/.junie/mcp/mcp.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
Add to ~/.kiro/settings/mcp.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.
Using several servers? Build one config file with the MCP config generator.
Configuration
AGENTICMAIL_API_KEYPer-agent API key issued when you create the agent. Scopes every tool call to that agent's mailbox and outbound. Either AGENTICMAIL_API_KEY or AGENTICMAIL_MASTER_KEY must be set.AGENTICMAIL_MASTER_KEYMaster key for admin operations (creating agents, listing all accounts, deleting agents). Set this when the MCP client needs admin tools; otherwise prefer the per-agent AGENTICMAIL_API_KEY.AGENTICMAIL_API_URLBase URL of the AgenticMail HTTP API. Defaults to http://127.0.0.1:3100 (the port the local CLI binds). Override when the API runs on a different host or port.
About agenticmail
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.
Tools this server provides (12)
Taken from the project documentation; the running server may differ.
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_emailName suggests: changes
- Send an email, with a wake option for which agents get a turn.
- reply_emailName suggests: changes
- Reply to a message.
- forward_email
- Forward a message.
- template_sendName 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_activityName 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_idName suggests: reads
- Get the thread id for a message.
- save_thread_memory
- Save a summary of a thread for the next wake.
- batch_mark_readName suggests: reads
- Mark several messages read at once.
What it does
- 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
agenticmail 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.
