Local email connectivity for AI agents — MCP server for Microsoft 365 and manual-token Gmail setup
If you already use Email Agent MCP, the email agent mcp mcp server is the piece that lets your assistant work with it directly. 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.
The toolset is worth reading before you wire it up, because it tells you what the integration is really for:
get_mailbox_status — list_emails + read_emailcreate_draft — draft-only reply_to_emailbodyFormat — always present: markdown, html, or text. You get textbodyTruncated — present and true only if the body exceeded the 256 KBMaintainer — Steven Obiajululist_emails — List recent emails with filteringread_email — Read full email content as markdown, or raw HTML with format: "html"search_emails — Full-text search across mailboxeslist_mailboxes — Enumerate configured mailboxes, their status, and the defaultget_thread — Full conversation contextlist_attachments — List attachment metadata for an emaildownload_attachment — Download a file attachment as base64Configuration is passed through the environment: OPENCLAW_HOOKS_TOKEN, AGENT_EMAIL_GMAIL_CLIENT_ID, AGENT_EMAIL_GMAIL_CLIENT_SECRET, YOUR_GOOGLE_CLIENT_ID, YOUR_GOOGLE_CLIENT_SECRET. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.
Because this one is hosted, setup is mostly authentication — you point your client at the endpoint and approve access. Nothing runs on your machine, so there is no runtime to keep patched.
Among the team communication options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Email Agent MCP's toolset — get_mailbox_status, create_draft, bodyFormat and 11 more — is a fair guide to whether it matches your workflow. It is maintained by usejunior; worth a glance at recent repository activity before you build anything load-bearing on it.
SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.
| Tool | What it does |
|---|---|
| get_mailbox_status | list_emails + read_email |
| create_draft | draft-only reply_to_email |
| bodyFormat | always present: markdown, html, or text. You get text |
| bodyTruncated | present and true only if the body exceeded the 256 KB |
| Maintainer | [Steven Obiajulu](https://www.linkedin.com/in/steven-obiajulu/) |
| 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_thread | Full conversation context |
| list_attachments | List attachment metadata for an email |
| download_attachment | Download a file attachment as base64 |
| send_email | Send new email (allowlist-gated) |
| reply_to_email | Reply within thread (allowlist-gated on send) |
{
"mcpServers": {
"email-agent-mcp": {
"type": "stdio",
"command": "npx",
"args": ["-y", "email-agent-mcp"]
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| OPENCLAW_HOOKS_TOKEN | Credential the server authenticates with. | Yes |
| AGENT_EMAIL_GMAIL_CLIENT_ID | Configuration value read at startup. | Optional |
| AGENT_EMAIL_GMAIL_CLIENT_SECRET | Credential the server authenticates with. | Yes |
| YOUR_GOOGLE_CLIENT_ID | Configuration value read at startup. | Optional |
| YOUR_GOOGLE_CLIENT_SECRET | Credential the server authenticates with. | Yes |
Your assistant inside the workspace — read channels, search history, post messages and tame the noise.
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.
Exposes REST APIs defined by OpenAPI specifications as Model Context Protocol (MCP) tools, facilitating seamless integration into MCP-based workflows.