45
/ 100
1 month ago
glama

Agent Email

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.

Is this your MCP?

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.

// key findings
No credential exfiltration, no sensitive file access, no obfuscation
Static analysis found nothing flowing your secrets to unexpected places.
Open source with a license and README
Anyone can audit the code, the license is declared, and the publisher documents what it does.
🔐
You'll be asked for 2 credentials: AGENT_EMAIL_GMAIL_CLIENT_SECRET, OPENCLAW_HOOKS_TOKEN
These are read from process.env at runtime. Make sure you trust where they’ll be sent.
// required environment variables
This server reads these from process.env. You'll be asked to provide them before it can run.
configAGENT_EMAIL_CLIENT_ID
configAGENT_EMAIL_DELETE_ENABLED1. operator sets =true in the email-agent-mcp process environment (and AGENT_EMAIL_HARD_DELETE_ENABLED=true for permanent deletion). Restart required after change.
configAGENT_EMAIL_GMAIL_BROKER_URL
configAGENT_EMAIL_GMAIL_CLIENT_ID
🔐 secretAGENT_EMAIL_GMAIL_CLIENT_SECRET
configAGENT_EMAIL_HARD_DELETE_ENABLED1. operator sets AGENT_EMAIL_DELETE_ENABLED=true in the email-agent-mcp process environment (and =true for permanent deletion). Restart required after change.
configAGENT_EMAIL_RECEIVE_ALLOWLIST
configAGENT_EMAIL_SEND_ALLOWLIST/tmp/email-agent-mcp-live/send-allowlist.json \
configBROKER_REQUIRE_KV
configBROKER_TICKET_TTL_MS
configEMAIL_AGENT_MCP_HOME/tmp/email-agent-mcp-live \
configEMAIL_AGENT_MCP_REPLY_SENDERIf 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.
configEMAIL_MCP_SAFE_DIRrelative to , default the process working directory) or
configGMAIL_OAUTH_SCOPES
configKV_REST_API_URL
configLOG_LEVEL
🔐 secretOPENCLAW_HOOKS_TOKENexport ="your-hooks-token"
// full audit trail
The full breakdown of what we checked, the deductions that landed, the network hosts, the dependency advisories, and concrete fix guidance is available to verified publishers.
// improvement guidance — verified publishers only
We have 1 concrete improvement we can share with the publisher of this MCP. Each comes with specific guidance to raise the trust score.
// embed badge in your README
[![M8ven Score](https://m8ven.ai/badge/mcp/usejunior-email-agent-mcp-8wbi8s)](https://m8ven.ai/mcp/usejunior-email-agent-mcp-8wbi8s)
commit: aa82e5702c7da1857308a18e212280a5c9bd856e
code hash: 73a9de620adcb2f6facd791632d281618ad0196713dcfb443bfd4a7809d2ec15
verified: 6/14/2026, 11:16:12 AM
view raw JSON →