SuperAPI AI Directory

your-mail-mcp

Read-only, self-hosted search over multiple IMAP accounts, mirrored by mbsync into a local notmuch index. Cannot send, delete or move mail.

Open website

About this tool

Purpose: Let an AI assistant search your historical emails in a local index, for example to find booking numbers, hotel Wi-Fi passwords, invoices, warranty periods, or someone's written commitments. All accounts feed into the same index, supporting natural-language-style full-text search.

Main capabilities: Provides 11 read-only tools, including search, ids, files, count, show, thread, attachment, and others. Queries support from:, to:, subject:, tag:, folder:, date:2026-01-01..2026-06-30, and and/or/not combinations, can be scoped by account, and can use include_excluded to include the trash and junk folders. Trash and junk are automatically identified per account via RFC 6154 SPECIAL-USE. Attachments are provided by part: images inline (up to 5MB), text returned as marked-up text, and other binaries returned as short-lived signed links.

Usage: Requires Docker. Write accounts into accounts.json, pass passwords via environment variables in .env, then run docker compose up -d. Claude Code, Codex, Cursor, and Claude Desktop can connect via stdio; the Claude and ChatGPT mobile apps need to connect via an HTTPS connector, and you can expose a public address using Tailscale Funnel or Cloudflare Tunnel, and set PUBLIC_URL and OAUTH_PASSPHRASE in .env.

Use cases: Viewing overnight email summaries on mobile, bringing email leads into coding or writing sessions, and running a persistent scheduled summary agent.

Limitations: The process has no path for sending, deleting, moving, or tagging; mbsync is configured to pull only. Passwords are written in plaintext into a generated config inside the container with 0600 permissions, unencrypted. OAUTH_PASSPHRASE is the only shared credential, and anyone holding it can see the entire mailbox. Known issue: search's thread summary displays the sender-controlled display name even if the email is in a folder excluded by default. The project is maintained by a single person, with no third-party security audit.