Back to Home
gufao icon

mcp-server-mail-agent

Verified Safe

by gufao

Overview

Manages email accounts from multiple providers (Gmail, Outlook, IMAP) with a unified inbox and programmatic access via MCP tools.

Installation

Run Command
docker run --rm -v "$(pwd)/credentials:/app/credentials:ro" --env-file .env mcp-email-server

Environment 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

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens1000
Stars0
Forks0
Last Update2025-12-31

Tags

emailimapgmailoutlookmulti-accountproductivity