MacroMail MCP Server
Provides optional read-only Gmail integration via OAuth, allowing access to Gmail accounts when the server has the necessary OAuth environment variables.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MacroMail MCP ServerDraft a polite reply to the latest email in my inbox."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MacroMail
A free, open-source, self-hostable email tool for AI agents.
MacroMail is this Next.js app. Mail data lives in SQLite under
MACROMAIL_DATA_DIR. Agents talk to it over REST v1 and a hosted MCP
endpoint at /api/mcp.
Source: github.com/willykeenan/macromail.dev. License: MIT.
What works today
Accounts and API keys
Agent mailboxes on the server's own domains (
MACROMAIL_MAILBOX_DOMAINS) with internal delivery between MacroMail mailboxes (no internet inbound)REST v1
MCP at
/api/mcp— the tools on that endpoint workOutbound email through the SMTP account each user saves in Settings (never the server owner’s mailbox)
Optional read-only Gmail/Outlook connect when the server has OAuth env vars
AI triage and drafts with the user’s own Anthropic key (Settings, or the
x-anthropic-keyheader)
Related MCP server: Mail MCP Server
Self-host (3 commands)
cp .env.example .env
npm ci
npm run devOpen http://localhost:3000. Generate
SESSION_SECRET and TOKEN_ENC_KEY with openssl rand -hex 32 before a
production start. More in docs/SELF-HOST.md.
npm run build
npm start
npm testDocs
Human docs: /docs once the app is running, or
the same route locally. Machine-readable: /llms.txt and
/llms-full.txt.
This server cannot be deployed
Maintenance
Related MCP Connectors
Email infrastructure for AI agents — send, receive, search, and reply to email over MCP.
Email inboxes and calendars for AI agents: send, receive, search, draft and schedule.
Email inboxes and calendars for AI agents: send, receive, search, draft and schedule.
Connect any mailbox to Claude, ChatGPT & AI: read, send, reply, schedule & search emails.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with email accounts via IMAP and SMTP, supporting mailbox listing, email search, retrieval, sending, and management.MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to send, read, and manage emails via SMTP and IMAP, with support for attachments, threads, and mailbox organization.1615 npm1MIT
- FlicenseNot gradedqualityBmaintenanceEnables Claude to read, search, draft, send, flag, and move email across multiple IMAP/SMTP mailboxes while keeping credentials local.-
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to read, send, organize, and search emails across multiple IMAP/SMTP mailboxes.714 npmMIT