Agent Email
Let agents read, draft, label and send Outlook or Gmail mail from your own mailbox
Agent Email 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
- CLI, Self-hosted
- Runs
- Locally
- What it can do
- Can change data (6 tools)
- Version
- 0.6.1
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add email-agent-mcp -- npx -y email-agent-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": {
"email-agent-mcp": {
"command": "npx",
"args": [
"-y",
"email-agent-mcp"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"email-agent-mcp": {
"command": "npx",
"args": [
"-y",
"email-agent-mcp"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"email-agent-mcp": {
"command": "npx",
"args": [
"-y",
"email-agent-mcp"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"email-agent-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"email-agent-mcp"
]
}
}
}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 email-agent-mcp -- npx -y email-agent-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.email-agent-mcp]
command = "npx"
args = ["-y", "email-agent-mcp"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"email-agent-mcp": {
"command": "npx",
"args": [
"-y",
"email-agent-mcp"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "email-agent-mcp": { "command": "npx", "args": [ "-y", "email-agent-mcp" ] } } }Or run: gemini mcp add -s user email-agent-mcp npx -- -y email-agent-mcp
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "email-agent-mcp": { "command": "npx", "args": [ "-y", "email-agent-mcp" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "email-agent-mcp": { "command": "npx", "args": [ "-y", "email-agent-mcp" ] } } }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": { "email-agent-mcp": { "command": "npx", "args": [ "-y", "email-agent-mcp" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "email-agent-mcp": { "command": "npx", "args": [ "-y", "email-agent-mcp" ] } } }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": { "email-agent-mcp": { "command": "npx", "args": [ "-y", "email-agent-mcp" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "email-agent-mcp": { "command": "npx", "args": [ "-y", "email-agent-mcp" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "email-agent-mcp": { "command": "npx", "args": [ "-y", "email-agent-mcp" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About Agent Email
Email access for agents usually means wrestling with OAuth, Graph delta queries and threading quirks. This server wraps that into a set of stdio tools and ships a setup wizard that walks through OAuth and mailbox selection. Microsoft 365 and Outlook are the mailbox the README says was validated end to end, and Gmail is listed as supported too.
Safety is built around defaults. Agents cannot send anything until you configure a send allowlist, delete is disabled unless you opt in, errors are sanitised to strip keys and file paths, and body files are sandboxed against path traversal. A scope profile lets you choose between a full set of Microsoft permissions and an observe profile that only reads. The README is careful to say observe narrows the tool list rather than guaranteeing a narrower OAuth token if the mailbox has already consented to write scopes.
There is also an email watcher that polls a mailbox and wakes an OpenClaw gateway when new mail arrives.
Tools this server provides (14)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 6 of 14 tools change data; 1 name doesn't say.
From the server's own tool labels and tool names; not verified by us.
- list_emailsName suggests: reads
- No description
- read_emailName suggests: reads
- No description
- search_emailsName suggests: reads
- No description
- get_threadName suggests: reads
- No description
- create_draftName suggests: changes
- No description
- update_draftName suggests: changes
- No description
- send_draftName suggests: changes
- No description
- send_emailName suggests: changes
- No description
- reply_to_emailName suggests: changes
- No description
- label_email
- No description
- mark_readName suggests: reads
- No description
- move_to_folderName suggests: changes
- No description
- get_mailbox_statusName suggests: reads
- No description
- list_inbox_rulesName suggests: reads
- No description
What it does
- Read and search
- List, read and search emails and fetch whole threads.
- Drafts and sending
- Create, update and send drafts, send mail directly, or reply to a message.
- Mailbox organising
- Label messages, change read state and move them between folders.
- Send allowlist
- Sending is blocked until you configure who the agent may contact.
- Observe scope profile
- An optional profile removes write tools and requests read-only Microsoft scopes.
Good for
- Triage an inbox and draft replies for review
- Summarise a long email thread
- Categorise newsletters and notifications
- Run a read-only mailbox assistant
- Wake an agent when new mail lands
Pricing
Open source
Apache 2.0 licence badge in the README
More servers for the same service
Agent Email FAQ
Which mail providers work?
Microsoft 365 or Outlook and Gmail are listed as supported.
Can an agent send mail right away?
No, sending needs an explicit allowlist.
Can Agent Email delete messages?
Delete is disabled by default and needs opt-in.
How do I install Agent Email?
Run npx -y email-agent-mcp and follow the setup wizard.
Which licence applies?
The README badge shows Apache 2.0.
Is Agent Email free?
Yes. Agent Email is open source, so you can use and self-host it for free.
How do I add Agent Email to Claude Code?
Run this command in your terminal: claude mcp add email-agent-mcp -- npx -y email-agent-mcp
What are the best alternatives to Agent Email?
The closest alternatives to Agent Email are TrendRadar, Ha MCP, Concord MCP, TryPost and Open Sunsama.
Where this comes from
- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

