Agent Email
MCP server by UseJunior Community
Agent Email is an open-source MCP server that lets AI assistants read, search, draft, send and organize Outlook and Gmail mail. It is built for people who want agents to handle email with guardrails such as send allowlists.
Install Agent Email
Built from the published package, never by AI.
claude mcp add agent-email -- npx -y email-agent-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"agent-email": {
"args": [
"-y",
"email-agent-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"agent-email": {
"args": [
"-y",
"email-agent-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"agent-email": {
"args": [
"-y",
"email-agent-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add agent-email -- npx -y email-agent-mcp{
"mcpServers": {
"agent-email": {
"args": [
"-y",
"email-agent-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add agent-email npx -y email-agent-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the agent-email block.
About
Agent Email is an open-source TypeScript MCP server from UseJunior. It lets assistants such as Claude Code, Cursor, Gemini CLI and OpenClaw read email, search threads, draft replies, label messages, change read state, move messages and send mail through your own mailbox. Microsoft 365 and Outlook are supported, and the source also lists Gmail support.
Security defaults are strict. Agents cannot send email until you configure a send allowlist, delete is disabled by default, and errors are sanitized. A scope profile setting can limit the server to read-only tools. The project suits people who want agents to work with mail under explicit controls.
Written from the project's README and checked against it.
Tools it gives your assistant
list_emailsList recent emails with filtering.read_emailRead full email content as markdown, or raw HTML with format html.search_emailsFull-text search across mailboxes.get_threadGet the full conversation context for a message.create_draftCreate an email draft.send_emailSend new email, gated by a send allowlist.reply_to_emailReply within a thread, gated by a send allowlist on send.label_emailApply labels or categories to an email.mark_readMark an email as read or unread.move_to_folderMove an email between folders.
What you need
- Node.js with npx
- A Microsoft 365 / Outlook or Gmail mailbox
- OAuth configuration, completed with the setup wizard
Try asking
- Summarize my unread emails from this morning
- Search my mail for invoices from last month
- Draft a reply to the latest thread from my manager
Good to know
- Agents cannot send email until a send allowlist is configured.
- Delete is disabled by default and needs explicit opt-in.
- On Gmail, label_email, flag_email, mark_read and move_to_folder fail with NOT_SUPPORTED.
- The observe profile does not remove write scopes from a token already consented as full.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Agent Email
All alternatives →Searches and discovers Agent Skills from the skills.sh registry, according to its listing description. The source file itself documents the Agent Skills format rather than this server.
Connects AI agents to Exa for web search, content fetching, and multi-step research. It is aimed at developers and AI assistant users who want web results and page content inside their assistant.
Apify MCP server gives AI agents web scraping, data extraction, and browser automation through thousands of ready-made Actors from Apify Store. It suits developers and teams who want agents to pull data from websites without installing a separate MCP server for each site.
Official MCP server for changedetection.io that connects AI assistants such as Claude.AI and OpenAI tools to a changedetection.io dashboard. It lets users ask about tracked web page changes, including price and back-in-stock alerts.
Brave Search MCP Server gives AI assistants web, local, place, image, video and news search through the Brave Search API. It also offers grounded Answers for developers and teams that want cited results.
Scrapling is a Python web scraping framework with an MCP server for AI agents. It offers stealth HTTP requests, browser rendering, Cloudflare Turnstile handling, and CSS selector extraction for developers and scrapers.
Compare with Agent Skills Search Server, Exa or Apify
Agent Email: common questions
Can an AI agent send email with Agent Email?
Agents cannot send email until you explicitly configure an allowlist. Send tools such as send_email and reply_to_email are gated by that allowlist.
Which email providers does Agent Email support?
The source says Microsoft 365 / Outlook is supported today and lists Gmail support as well, with some Gmail actions limited.
Does Agent Email delete messages by default?
No. Delete is disabled by default and requires an operator environment setting and an explicit caller flag.
How do I install Agent Email?
In Claude Code run claude mcp add agent-email -- npx -y email-agent-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Agent Email the official server?
Agent Email is a community project by UseJunior, not verified by a company domain.
Is Agent Email free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is Agent Email safe to use?
It scores 79 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Agent Email?
Similar MCP servers: Agent Skills Search Server, Exa, Apify, changedetection.io (official).
Does Agent Email work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
