email-smtp-imap-mcp
MCP server by samihalawa Community
Email SMTP/IMAP MCP gives AI assistants access to several email inboxes over SMTP and IMAP. It can search, read, send, reply, forward and organize mail. It is built for people who manage work, personal, support or client accounts.
Install email-smtp-imap-mcp
Built from the published package, never by AI.
claude mcp add email-smtp-imap-mcp -e EMAIL_ACCOUNTS_JSON=YOUR_EMAIL_ACCOUNTS_JSON -- npx -y email-smtp-imap-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"email-smtp-imap-mcp": {
"env": {
"EMAIL_ACCOUNTS_JSON": "YOUR_EMAIL_ACCOUNTS_JSON"
},
"args": [
"-y",
"email-smtp-imap-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"email-smtp-imap-mcp": {
"env": {
"EMAIL_ACCOUNTS_JSON": "YOUR_EMAIL_ACCOUNTS_JSON"
},
"args": [
"-y",
"email-smtp-imap-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"email-smtp-imap-mcp": {
"env": {
"EMAIL_ACCOUNTS_JSON": "YOUR_EMAIL_ACCOUNTS_JSON"
},
"args": [
"-y",
"email-smtp-imap-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add email-smtp-imap-mcp --env EMAIL_ACCOUNTS_JSON=YOUR_EMAIL_ACCOUNTS_JSON -- npx -y email-smtp-imap-mcp{
"mcpServers": {
"email-smtp-imap-mcp": {
"env": {
"EMAIL_ACCOUNTS_JSON": "YOUR_EMAIL_ACCOUNTS_JSON"
},
"args": [
"-y",
"email-smtp-imap-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
Step-by-step: install email-smtp-imap-mcp in Antigravity CLI
gemini mcp add email-smtp-imap-mcp npx -y email-smtp-imap-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 email-smtp-imap-mcp block.
About
Email SMTP/IMAP MCP is a local MCP server that connects an AI assistant to one or more email inboxes. It can search email by text, sender, recipient, subject, date, read state, flag state or attachments. It can also read messages, send plain-text or HTML email with attachments, reply, reply-all, forward, flag or unflag messages, mark them read or unread, move them to other folders, and list folders.
Accounts are defined in a .env file or in the MCP client's env object, and each one is selected with account_name. The server uses stdio transport and no hosted relay. It works with Gmail, iCloud Mail, Fastmail, Outlook and other standard SMTP/IMAP providers. It suits people who need one server for several inboxes.
Written from the project's README and checked against it.
Tools it gives your assistant
accounts_listLists every configured account and identifies the default without exposing credentials.emails_findSearches email by text, sender, recipient, subject, date, read state, flag state or attachments.email_sendSends plain-text or HTML email with CC, BCC, sender aliases and base64 attachments.email_respondReplies, reply-all or forwards a message by UID with threading and optional attachments.emails_modifyMarks messages read or unread, flags or unflags them, or moves them to another folder.folders_listLists folders with optional total and unread counts.
What you need
- Node.js with npx to run the package
- An email account with SMTP and IMAP access
- An app password or provider password for each account
- An MCP client such as Claude Desktop
| Setting | Needed | What it is |
|---|---|---|
EMAIL_Environment variable, secret | Required | JSON object keyed by account name with SMTP and IMAP settings and credentials; see the repository setup guide. |
DEFAULT_Environment variable | Optional | Default account name from EMAIL_ACCOUNTS_JSON; optional when the first account should be used. |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- List my configured email accounts.
- Find the five newest unread emails in my personal account.
- Reply to the latest email from my support inbox.
Good to know
- Servers without STARTTLS are rejected when secure is false.
- Plaintext-only relays are not supported.
- Both SMTP and IMAP require TLS 1.2 or newer and a valid server certificate.
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 email-smtp-imap-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
email-smtp-imap-mcp: common questions
Does it support multiple email accounts?
Yes. Accounts are named in the configuration and selected with account_name. The source states there is no application-level account-count limit.
Are plaintext mail servers supported?
No. Plaintext-only relays are not supported, and servers without STARTTLS are rejected when secure is false. Both SMTP and IMAP require TLS 1.2 or newer.
Does it rely on a hosted service?
No. It runs as a local stdio server, and the source says there is no hosted relay or separate control panel.
How do I install email-smtp-imap-mcp?
In Claude Code run claude mcp add email-smtp-imap-mcp -e EMAIL_ACCOUNTS_JSON=YOUR_EMAIL_ACCOUNTS_JSON -- npx -y email-smtp-imap-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is email-smtp-imap-mcp the official server?
email-smtp-imap-mcp is a community project by samihalawa, not verified by a company domain.
Is email-smtp-imap-mcp free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is email-smtp-imap-mcp safe to use?
It scores 76 of 100. Grades: maintenance B, 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 email-smtp-imap-mcp?
Similar MCP servers: Jitsu, Vexa, Linkedin MCP server, Netsapiens MCP.
Does email-smtp-imap-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.
