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.
Install mailbox-mcp
Built from the published package, never by AI.
claude mcp add mailbox-mcp -- npx -y mailbox-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"mailbox-mcp": {
"args": [
"-y",
"mailbox-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"mailbox-mcp": {
"args": [
"-y",
"mailbox-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"mailbox-mcp": {
"args": [
"-y",
"mailbox-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add mailbox-mcp -- npx -y mailbox-mcp{
"mcpServers": {
"mailbox-mcp": {
"args": [
"-y",
"mailbox-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add mailbox-mcp npx -y mailbox-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
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
| Setting | Needed | What it is |
|---|---|---|
MAILBOX_Environment variable, secret | Optional | Passphrase 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
ANo 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 →Jitsu MCP server lets AI assistants configure and operate Jitsu data pipelines. It covers destinations, streams, connections and functions, plus Live Events and connector syncs. It is aimed at teams that run event data pipelines.
Vexa sends a bot into Google Meet, Microsoft Teams, Zoom and Jitsi calls to capture speaker-labelled transcripts live or after the call. It suits teams that want meeting transcripts they can self-host.
Gives Claude and other MCP-compatible AI agents access to LinkedIn through your own browser session. It reads profiles, researches companies, finds jobs, and manages messages and connection requests.
Runs a NetSapiens phone system from Claude, ChatGPT, or any MCP client. Each person signs in as themselves, and their assistant gets role-aware tools for calls, voicemail, queues, and provisioning.
Resend MCP Server connects AI assistants to the Resend email platform. It lets them send and receive emails and manage contacts, broadcasts, templates, and domains. It suits developers and teams who use MCP clients such as Claude or Cursor.
The source does not describe labelhead-artist-momentum. It is a README for Paperclip, an open-source orchestration app for teams of AI agents.
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.
