IMAP MCP
MCP server by langmail Community
IMAP MCP server: your AI agent searches, reads, files and drafts email in any IMAP mailbox.
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-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"imap-mcp": {
"command": "npx",
"args": [
"-y",
"imap-mcp"
],
"env": {
"IMAP_HOST": "YOUR_IMAP_HOST",
"IMAP_USERNAME": "YOUR_IMAP_USERNAME",
"IMAP_PASSWORD": "YOUR_IMAP_PASSWORD"
}
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"imap-mcp": {
"command": "npx",
"args": [
"-y",
"imap-mcp"
],
"env": {
"IMAP_HOST": "YOUR_IMAP_HOST",
"IMAP_USERNAME": "YOUR_IMAP_USERNAME",
"IMAP_PASSWORD": "YOUR_IMAP_PASSWORD"
}
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"imap-mcp": {
"command": "npx",
"args": [
"-y",
"imap-mcp"
],
"env": {
"IMAP_HOST": "YOUR_IMAP_HOST",
"IMAP_USERNAME": "YOUR_IMAP_USERNAME",
"IMAP_PASSWORD": "YOUR_IMAP_PASSWORD"
}
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add imap-mcp --env IMAP_HOST=YOUR_IMAP_HOST --env IMAP_USERNAME=YOUR_IMAP_USERNAME --env IMAP_PASSWORD=YOUR_IMAP_PASSWORD -- npx -y imap-mcp{
"mcpServers": {
"imap-mcp": {
"command": "npx",
"args": [
"-y",
"imap-mcp"
],
"env": {
"IMAP_HOST": "YOUR_IMAP_HOST",
"IMAP_USERNAME": "YOUR_IMAP_USERNAME",
"IMAP_PASSWORD": "YOUR_IMAP_PASSWORD"
}
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add imap-mcp npx -y 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 imap-mcp block.
What you need
| Setting | Needed | What it is |
|---|---|---|
IMAP_Environment variable | Required | Hostname of the IMAP server (e.g. imap.example.com) |
IMAP_Environment variable | Required | Username for IMAP authentication, also the default From address |
IMAP_Environment variable, secret | Required | Password for IMAP authentication |
IMAP_Environment variable | Optional | Port of the IMAP server Default: 993 |
IMAP_Environment variable | Optional | Set to true to connect over TLS Default: false |
IMAP_Environment variable | Optional | Set to false to accept a server certificate that is self-signed or not valid for IMAP_HOST Default: true |
MCP_Environment variable | Optional | What 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 →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
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.
