mcp-server-mail-agent
Verified Safeby gufao
Overview
Manages email accounts from multiple providers (Gmail, Outlook, IMAP) with a unified inbox and programmatic access via MCP tools.
Installation
docker run --rm -v "$(pwd)/credentials:/app/credentials:ro" --env-file .env mcp-email-serverEnvironment Variables
- ACCOUNTS_PATH
- IMAP_HOST
- IMAP_USER
- IMAP_PASSWORD
- SMTP_HOST
- OUTLOOK_CLIENT_ID
- OUTLOOK_CLIENT_SECRET
- OUTLOOK_TENANT_ID
Security Notes
The server explicitly rejects plaintext secrets (e.g., IMAP passwords, Outlook client secrets) in the 'accounts.json' configuration file, enforcing the use of environment variables. It validates that these environment variables are set and not empty upon startup. When deployed with Docker, it recommends mounting the 'credentials' directory as read-only, further protecting sensitive files. OAuth flows for Gmail and Outlook follow standard practices for token management and refresh. The MCP communication itself uses stdio, reducing network attack surface for the core protocol.
Similar Servers
mcp-email-server
This server allows MCP clients to interact with email accounts via IMAP and SMTP protocols, enabling functionalities like listing, fetching, sending, and deleting emails.
gmail-mcp
Manages Gmail emails programmatically, enabling AI systems to read, send, archive, and perform other email operations on behalf of a user.
AutotaskMCP
Manage Autotask PSA (Professional Services Automation) data, including tickets, companies, contacts, time entries, and resources, through a Claude Desktop MCP server.
che-apple-mail-mcp
Programmatic management and automation of Apple Mail functionalities on macOS.