Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

mailbox-mcp

MCP server by jgalea Community

Gives AI tools like Claude Code, Cursor and Windsurf access to Gmail, IMAP and JMAP email across multiple accounts. Assistants can search, read, send, draft and label messages from one server. Aimed at people who want AI help with their inbox.

  • Score 76
  • 11 stars
  • 175 a week
  • MIT
  • Updated

Install mailbox-mcp

Built from the published package, never by AI.

claude mcp add mailbox-mcp -- npx -y mailbox-mcp

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install mailbox-mcp in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the mailbox-mcp block.

About

mailbox-mcp is an MCP server that connects email accounts to AI assistants such as Claude Code, Cursor and Windsurf. It supports Gmail through the Gmail API, and any IMAP/SMTP or JMAP provider, with several accounts served by one server. Assistants can search, read, send, reply, forward, draft and label messages.

The server treats email content as untrusted. It fences mail text in markers, removes hidden text, and asks for confirmation before sending to new recipients. Per-account read-only and drafts-only modes, send caps, and an optional approval queue are available. It suits people who want an AI assistant to handle their email with added controls.

Written from the project's README and checked against it.

Tools it gives your assistant

  • list_accountsLists the email accounts configured in the server.
  • authenticateAdds a new Gmail, IMAP or JMAP account.
  • search_emailsSearches messages, optionally within a single folder.
  • multi_account_searchRuns the same query across every configured account in parallel.
  • read_emailReads a single message.
  • read_threadReads a conversation thread on Gmail and JMAP.
  • send_emailSends a new email, with optional from and attachments.
  • reply_emailReplies to a message, with optional from and attachments.
  • forward_emailForwards a message, with optional from and attachments.
  • create_draftCreates a draft, including reply drafts via in_reply_to.

What you need

  • Node.js, since the server runs from npm via npx
  • A Google Cloud project with an OAuth desktop client, for Gmail accounts
  • An app password for IMAP or JMAP accounts
  • A MAILBOX_MCP_PASSPHRASE value for IMAP or JMAP accounts
  • An MCP-compatible AI tool such as Claude Code
SettingNeededWhat it is
MAILBOX_MCP_PASSPHRASEEnvironment variable, secretOptionalPassphrase used to encrypt IMAP/JMAP credentials at rest. Required for IMAP and JMAP accounts.

From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.

Try asking

  • Find the invoice from last month across all my email accounts.
  • Summarize the thread with Sam about the Q3 budget.
  • Draft a reply to the newest message from my landlord.

Good to know

  • Sends are capped at 10 per minute and 100 per 24 hours per account by default.
  • Prompt injection is not fully prevented, so a human should keep approving sends.
  • The external approval queue is off by default.
  • Gmail setup requires creating a Google Cloud project and OAuth credentials.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to mailbox-mcp

All alternatives →

Compare with Jitsu, Vexa or Linkedin MCP server

mailbox-mcp: common questions

Can it work with more than one email account?

Yes. One server can connect Gmail, IMAP and JMAP accounts together, and multi_account_search runs the same query across all of them.

Does it protect against prompt injection from emails?

It fences email text as untrusted data, removes hidden text, and requires confirmation for new recipients. The source says prompt injection is still not impossible to prevent.

Can the AI send email without my approval?

Sends to new recipients need an explicit confirmation flag by default. Accounts can be set to read-only or drafts-only, and an external approval mode is available but off by default.

How do I install mailbox-mcp?

In Claude Code run claude mcp add mailbox-mcp -- npx -y mailbox-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is mailbox-mcp the official server?

mailbox-mcp is a community project by jgalea, not verified by a company domain.

Is mailbox-mcp free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is mailbox-mcp safe to use?

It scores 76 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to mailbox-mcp?

Similar MCP servers: Jitsu, Vexa, Linkedin MCP server, Netsapiens MCP.

Does mailbox-mcp work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

mailbox-mcp Install

Add to stack

Loading.