A self-hosted MCP server that gives Claude Code full IMAP and SMTP access. 15 tools cover the boring parts: search across folders, attachment fetch, drafts the agent can revise before send, move/copy/flag/delete, and folder management. Multi-account is built in: Gmail, Fastmail, Proton via Bridge, iCloud, Outlook 365, and any generic IMAP server can run side by side in one .env. Credentials never leave your machine.
服务器配置
{
"mcpServers": {
"email": {
"type": "http",
"url": "http://localhost:3000/mcp",
"headers": {
"Authorization": "Bearer YOUR_MCP_AUTH_TOKEN"
}
}
}
}