Local email connectivity for AI agents — MCP server for Microsoft 365 and manual-token Gmail setup
Local email connectivity for AI agents — MCP server for Microsoft 365 and manual-token Gmail setup
Agent Email is an open-source TypeScript MCP server that lets Claude Code, Cursor, Gemini CLI, OpenClaw, and other MCP-compatible runtimes read email, search threads, draft replies, label messages, change read state, move messages, and send mail through your own mailbox. Microsoft 365 / Outlook and Gmail are supported today. Security-first defaults mean agents cannot send email until you explicitly configure an allowlist.
Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.
Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.
| Tool | What it does |
|---|---|
| bodyFormat | always present: markdown, html, or text. You get text |
| bodyTruncated | present and true only if the body exceeded the 256 KB |
| Profile | Microsoft delegated scopes |
| observe | Mail.Read, User.Read, offline_access |
| list_emails | List recent emails with filtering |
| read_email | Read full email content as markdown, or raw HTML with format: "html" |
| search_emails | Full-text search across mailboxes |
| list_mailboxes | Enumerate configured mailboxes, their status, and the default |
| get_mailbox_status | Connection status and warnings |
| get_thread | Full conversation context |
| list_attachments | List attachment metadata for an email |
| download_attachment | Download a file attachment as base64, or save it to a sandboxed directory with save_to |
| download_message | Save a whole message as a raw .eml file to a sandboxed directory |
| send_email | Send new email (allowlist-gated) |
| reply_to_email | Reply within thread (allowlist-gated on send) |
| create_draft | Create email draft |
| update_draft | Update draft content |
| send_draft | Send a saved draft |
| list_scheduled_sends | List pending provider-held scheduled sends (Microsoft 365) |
| cancel_scheduled_send | Cancel a pending scheduled send (Microsoft 365) |
| label_email | Apply labels/categories |
| flag_email | Flag/unflag emails |
| mark_read | Mark as read/unread |
| move_to_folder | Move between folders |
| delete_email | Delete (requires operator env + caller flag) |
| list_folders | Recursively list folders and computed paths (Microsoft 365) |
| create_folder | Create a custom child folder (Microsoft 365) |
| delete_folder | Delete a custom folder (requires operator env + caller flag); system folders are protected (Microsoft 365) |
| list_inbox_rules | List server-side inbox rules (Microsoft 365) |
| create_inbox_rule | Create a persistent safe inbox rule; forwarding, redirection, deletion, and discarding to Deleted Items are blocked (Microsoft 365) |
| delete_inbox_rule | Delete a server-side inbox rule (requires operator env + caller flag) (Microsoft 365) |
| contract.pdf | EMAIL_MCP_SAFE_DIR (default: cwd) |
{
"mcpServers": {
"email-agent-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"email-agent-mcp"
]
}
}
}From the project documentation. Replace placeholders and example paths before connecting.
Your assistant inside the workspace — read channels, search history, post messages and tame the noise.
Build a programmable telecommunications stack for connecting telephony services with the Internet via a cloud-based utility.
Inbox intelligence — search, read, draft and send Gmail through your assistant with OAuth auto-setup.
Read and write Jira, Confluence, Bitbucket, JSM and Compass from your AI client — with your own permissions.
Read and send Telegram messages through your assistant — chats, channels and history via the client API.
Enables Discord bot integration with Model Context Protocol (MCP) compatible applications like Claude Desktop.