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

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.

  • Score 76
  • 26 stars
  • 825 a week
  • MIT
  • Updated

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-mcp

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

Step-by-step: install email-smtp-imap-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 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
SettingNeededWhat it is
EMAIL_ACCOUNTS_JSONEnvironment variable, secretRequiredJSON object keyed by account name with SMTP and IMAP settings and credentials; see the repository setup guide.
DEFAULT_EMAIL_ACCOUNTEnvironment variableOptionalDefault 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

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 email-smtp-imap-mcp

All alternatives →

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.

email-smtp-imap-mcp Install

Add to stack

Loading.