Skip to main content

MailMCP 📬

Read, search, and draft email from any AI agent — over standard IMAP. Local, free, private.

Works with Gmail, Outlook, Fastmail, or any IMAP server. Never sends: drafts are written to your Drafts folder; a human always presses Send.

Setup

  1. Enable IMAP for your account. Gmail: turn on 2FA, create an App Password (myaccount.google.com → Security → App passwords).
  2. Add the server with credentials in the env block:

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "mail": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/mkorayemai-web/mail-mcp", "mail-mcp"],
      "env": {
        "IMAP_HOST": "imap.gmail.com",
        "IMAP_USER": "you@gmail.com",
        "IMAP_PASS": "your-app-password"
      }
    }
  }
}

Tools

Tool Tier What it does
list_recent free Latest headers from any folder
search_emails free IMAP search: FROM/TO/SUBJECT/BODY + since-days
read_email free Full message body + attachment names
draft_email free Create a draft (never sends)
move_email free Move message to another folder (archive/junk)
cloud_digest cloud Summarised daily inbox brief (needs MPX_API_KEY)

Example prompts

  • "Any email from Stripe this week?" → search_emails
  • "Draft a reply to John agreeing to Thursday" → draft_email
  • "Archive everything from notifications@twitter" → search_emails + move_email

License

MIT

Metadata

Release files for mcpproducts-mail 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcpproducts-mail 0.1.0
File Size Uploaded
mcpproducts_mail-0.1.0.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mcpproducts-mail 0.1.0
File Interpreter ABI Platform
mcpproducts_mail-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.5 kB

Release files / mcpproducts_mail-0.1.0.tar.gz

Download URL mcpproducts_mail-0.1.0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
39b0a9215277166c28e7e6c624855cbae2693cef94f06dc2c34839a112f3f386
BLAKE2b-256 checksum
How to use checksums
974e7c8fa10f00974a02a7a05d058a9988ec55d377594768b7e644cce047ea8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / mcpproducts_mail-0.1.0-py3-none-any.whl

Download URL mcpproducts_mail-0.1.0-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb26a7d22dc10777e49bc0e4f978b41fd0109b42c92e00119304cb6c431498c2
BLAKE2b-256 checksum
How to use checksums
94c27b3b6d897748917af026d699c6e1d8c3d0f9242db36c8747070e797b4502
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

0.1.1

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page