openagentemail
Self-hosted email and task handoffs for AI agents, exposed over MCP and REST
openagentemail is an open-source MCP server for communication. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- API, CLI, Self-hosted
- Runs
- Locally
- Access
- Needs a secret key or token
- Version
- 0.11.0
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add mcp --env OPENAGENTEMAIL_API_KEY='<OPENAGENTEMAIL_API_KEY>' -- npx -y @openagentemail/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",
"@openagentemail/mcp"
],
"env": {
"OPENAGENTEMAIL_API_KEY": "<OPENAGENTEMAIL_API_KEY>"
}
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@openagentemail/mcp"
],
"env": {
"OPENAGENTEMAIL_API_KEY": "<OPENAGENTEMAIL_API_KEY>"
}
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@openagentemail/mcp"
],
"env": {
"OPENAGENTEMAIL_API_KEY": "<OPENAGENTEMAIL_API_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",
"@openagentemail/mcp"
],
"env": {
"OPENAGENTEMAIL_API_KEY": "<OPENAGENTEMAIL_API_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 OPENAGENTEMAIL_API_KEY='<OPENAGENTEMAIL_API_KEY>' -- npx -y @openagentemail/mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.mcp]
command = "npx"
args = ["-y", "@openagentemail/mcp"]
env = { OPENAGENTEMAIL_API_KEY = "<OPENAGENTEMAIL_API_KEY>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@openagentemail/mcp"
],
"env": {
"OPENAGENTEMAIL_API_KEY": "<OPENAGENTEMAIL_API_KEY>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "mcp": { "command": "npx", "args": [ "-y", "@openagentemail/mcp" ], "env": { "OPENAGENTEMAIL_API_KEY": "<OPENAGENTEMAIL_API_KEY>" } } } }Or run: gemini mcp add -s user -e OPENAGENTEMAIL_API_KEY='<OPENAGENTEMAIL_API_KEY>' mcp npx -- -y @openagentemail/mcp
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "mcp": { "command": "npx", "args": [ "-y", "@openagentemail/mcp" ], "env": { "OPENAGENTEMAIL_API_KEY": "<OPENAGENTEMAIL_API_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", "@openagentemail/mcp" ], "env": { "OPENAGENTEMAIL_API_KEY": "<OPENAGENTEMAIL_API_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", "@openagentemail/mcp" ], "env": { "OPENAGENTEMAIL_API_KEY": "<OPENAGENTEMAIL_API_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", "@openagentemail/mcp" ], "env": { "OPENAGENTEMAIL_API_KEY": "<OPENAGENTEMAIL_API_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", "@openagentemail/mcp" ], "env": { "OPENAGENTEMAIL_API_KEY": "<OPENAGENTEMAIL_API_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", "@openagentemail/mcp" ], "env": { "OPENAGENTEMAIL_API_KEY": "<OPENAGENTEMAIL_API_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", "@openagentemail/mcp" ], "env": { "OPENAGENTEMAIL_API_KEY": "<OPENAGENTEMAIL_API_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
OPENAGENTEMAIL_API_KEYBearer key for the openagent.email API — best: the identity token (oa_…) returned by POST /v1/identities.RequiredOPENAGENTEMAIL_API_URLBase URL of the openagent.email API.
About openagentemail
OpenAgentEmail gives software agents their own addresses so they can send and receive mail, and it adds structured task threads that record who asked for work, who received it, and what came back. The stdio MCP package lets an agent read and wait for mail, pull one-time codes and links out of messages, and send email using an identity token.
The project is built to run on your own infrastructure. You can deploy a bundled mail stack with Docker Compose or point the API at an existing provider's catch-all mailbox. Agents keep their own execution environment; the service records handoffs and approvals but does not run the model or pick a worker.
It suits teams whose agents run in separate terminals or machines and need a shared, inspectable way to exchange work without sharing admin credentials. Operators who want to keep control of data paths and permissions will find the most value here.
What it does
- Agent mailboxes
- Logical identities on your managed domains, each with its own identity token.
- OTP and link extraction
- Pulls verification codes and links out of mail and can wait for a matching message.
- Task handoffs
- Named recipients, state history and structured results kept in one thread.
- Approvals
- Records a named reviewer's approval or rejection without executing the action.
- Webhooks and notifications
- Opt-in outbound events and human alerts for your integrations.
- Dashboard visibility
- Browser view of mail, tasks, identities and notifications for operators.
Good for
- Hand a code review or research task from one agent to another and read the result later
- Give an agent an address that receives signup and verification emails
- Pull one-time passcodes from incoming mail during automated sign-in flows
- Keep an audit trail of which agent requested and completed each piece of work
Pricing
Open source
Open source under Apache-2.0; self-hosted.
openagentemail FAQ
Which MCP transports are supported?
The published npm package runs over stdio, and the API also offers a remote HTTP MCP endpoint at /mcp.
What Node.js version does the stdio client need?
Node.js 20 or newer.
Do agents need mail server credentials?
No. The stdio client only needs the API URL and an identity token.
Is openagentemail free?
Yes. openagentemail is open source, so you can use and self-host it for free.
How do I add openagentemail to Claude Code?
Run this command in your terminal: claude mcp add mcp --env OPENAGENTEMAIL_API_KEY='<OPENAGENTEMAIL_API_KEY>' -- npx -y @openagentemail/mcp
What are the best alternatives to openagentemail?
The closest alternatives to openagentemail are Email Agent, AgentMail, Mail Send, Mailkite and agent-mailbox — Mailbox and Wake System for AI Agent Teams.
Where this comes from
- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.