Email Agent MCP Server

Local email connectivity for AI agents — MCP server for Microsoft 365 and manual-token Gmail setup

Remote serverstreamable-httpTypeScript

What is the Email Agent MCP MCP server?

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.

What the server does

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.

  • send and receive allowlists that control who agents can contact
  • delete disabled by default (requires explicit opt-in)
  • error sanitization that strips API keys, file paths, and stack traces
  • body file sandboxing with path traversal protection

Available tools

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_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
  • MaintainerSteven 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

Credentials and setup notes

Configuration 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.

Installation

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.

Where it fits

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.

Worth knowing first

  • Your data travels to the provider's service, so the usual questions apply about what you send and what they retain.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Email Agent MCP.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
get_mailbox_statuslist_emails + read_email
create_draftdraft-only reply_to_email
bodyFormatalways present: markdown, html, or text. You get text
bodyTruncatedpresent and true only if the body exceeded the 256 KB
Maintainer[Steven Obiajulu](https://www.linkedin.com/in/steven-obiajulu/)
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
list_mailboxesEnumerate configured mailboxes, their status, and the default
get_threadFull conversation context
list_attachmentsList attachment metadata for an email
download_attachmentDownload a file attachment as base64
send_emailSend new email (allowlist-gated)
reply_to_emailReply within thread (allowlist-gated on send)

How to install the Email Agent MCP MCP server

{
  "mcpServers": {
    "email-agent-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "email-agent-mcp"]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
OPENCLAW_HOOKS_TOKENCredential the server authenticates with.Yes
AGENT_EMAIL_GMAIL_CLIENT_IDConfiguration value read at startup.Optional
AGENT_EMAIL_GMAIL_CLIENT_SECRETCredential the server authenticates with.Yes
YOUR_GOOGLE_CLIENT_IDConfiguration value read at startup.Optional
YOUR_GOOGLE_CLIENT_SECRETCredential the server authenticates with.Yes

Example prompts to try

  • Use Email Agent MCP to get mailbox status.
  • Use Email Agent MCP to create draft.
  • Use Email Agent MCP to bodyFormat.

Frequently asked questions

It connects Email Agent MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (get_mailbox_status, create_draft, bodyFormat, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Email Agent MCP directly.