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

IMAP MCP

MCP server by langmail Community

IMAP MCP server: your AI agent searches, reads, files and drafts email in any IMAP mailbox.

  • Score 82
  • 15 stars
  • 1.1k a week
  • MIT
  • Updated

Install IMAP MCP

Built from the published package, never by AI.

claude mcp add imap-mcp -e IMAP_HOST=YOUR_IMAP_HOST -e IMAP_USERNAME=YOUR_IMAP_USERNAME -e IMAP_PASSWORD=YOUR_IMAP_PASSWORD -- npx -y imap-mcp

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

Step-by-step: install 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 imap-mcp block.

What you need

SettingNeededWhat it is
IMAP_HOSTEnvironment variableRequiredHostname of the IMAP server (e.g. imap.example.com)
IMAP_USERNAMEEnvironment variableRequiredUsername for IMAP authentication, also the default From address
IMAP_PASSWORDEnvironment variable, secretRequiredPassword for IMAP authentication
IMAP_PORTEnvironment variableOptionalPort of the IMAP server Default: 993
IMAP_USE_SSLEnvironment variableOptionalSet to true to connect over TLS Default: false
IMAP_TLS_REJECT_UNAUTHORIZEDEnvironment variableOptionalSet to false to accept a server certificate that is self-signed or not valid for IMAP_HOST Default: true
MCP_ACCESSEnvironment variableOptionalWhat the agent may do: read-only reads the mailbox; no-send also changes it, such as filing mail and saving drafts, but sends nothing; everything also reaches other people, such as sending mail Default: everything

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

Alternatives to IMAP MCP

All alternatives →

Compare with Jitsu, Vexa or Linkedin MCP server

IMAP MCP: common questions

How do I install IMAP MCP?

In Claude Code run claude mcp add imap-mcp -e IMAP_HOST=YOUR_IMAP_HOST -e IMAP_USERNAME=YOUR_IMAP_USERNAME -e IMAP_PASSWORD=YOUR_IMAP_PASSWORD -- npx -y imap-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is IMAP MCP the official server?

IMAP MCP is a community project by langmail, not verified by a company domain.

Is IMAP MCP free?

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

Is IMAP MCP safe to use?

It scores 82 of 100. Grades: maintenance A, licence A, quality C. The security check has not run for it yet. Review the code before you install. How grades work.

What are alternatives to IMAP MCP?

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

Does 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.

IMAP MCP Install

Add to stack

Loading.