An open-source MCP server that provides AI agents with secure access to read, search, and manage emails via Microsoft 365 and Gmail. It features security-first defaults like recipient allowlists and markdown content conversion to facilitate safe agent interaction with mailboxes.
Claim it to get a verified publisher badge, a free copy of our full audit findings, and direct contact for any high-priority issues we find.
Install from
M8ven verifies MCPs across every public registry — install directly from whichever one you prefer.
process.env. You'll be asked to provide them before it can run.AGENT_EMAIL_CLIENT_IDAGENT_EMAIL_DELETE_ENABLED— 1. operator sets =true in the email-agent-mcp process environment (and AGENT_EMAIL_HARD_DELETE_ENABLED=true for permanent deletion). Restart required after change.AGENT_EMAIL_GMAIL_BROKER_URLAGENT_EMAIL_GMAIL_CLIENT_IDAGENT_EMAIL_GMAIL_CLIENT_SECRETAGENT_EMAIL_HARD_DELETE_ENABLED— 1. operator sets AGENT_EMAIL_DELETE_ENABLED=true in the email-agent-mcp process environment (and =true for permanent deletion). Restart required after change.AGENT_EMAIL_RECEIVE_ALLOWLISTAGENT_EMAIL_SEND_ALLOWLIST— /tmp/email-agent-mcp-live/send-allowlist.json \BROKER_REQUIRE_KVBROKER_TICKET_TTL_MSEMAIL_AGENT_MCP_HOME— /tmp/email-agent-mcp-live \EMAIL_AGENT_MCP_REPLY_SENDER— If your mailbox status name is not an email address, pass --reply-sender <email> or set so the script can find a self-sent message for the draft-reply check.EMAIL_MCP_SAFE_DIR— relative to , default the process working directory) orGMAIL_OAUTH_SCOPESKV_REST_API_URLLOG_LEVELOPENCLAW_HOOKS_TOKEN— export ="your-hooks-token"[](https://m8ven.ai/mcp/usejunior-email-agent-mcp-8wbi8s)