# email-mcp

Gives your agent a mailbox: read, search, send and watch incoming mail. Handy when you want to clear an inbox without leaving the chat.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 136
- Author: codefuturist
- License: LGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/codefuturist/email-mcp
- Updated: 2026-10-19
- HTML: https://affpapa.org/en/nevibecode/mcp/email-mcp

## What it does

The server exposes 52 tools, 7 prompts and 6 resources over MCP. It handles several accounts at once, plus drafts, templates, provider-aware labels, scheduled sending and ICS calendar extraction. The IMAP IDLE watcher keeps a connection open and pushes new mail to the agent, which sorts it by your rules. Verification codes get caught and copied to the clipboard, then cleared automatically.

Two transports: stdio for local clients, Streamable HTTP for networked access. Existing stdio setups keep working as they are. Config is TOML at `~/.config/email-mcp/config.toml`, and the provider is detected for you — Gmail, Outlook, Yahoo, iCloud, Fastmail, ProtonMail, Zoho, GMX. Passwords stay out of logs, connections use TLS/STARTTLS, and a token-bucket limiter caps requests per account. Attachment downloads are capped at 5 MB in base64.

Node.js 24 or newer is required. If npm's global prefix is root-owned, `npm install -g` fails with `EACCES` — running through `npx` sidesteps that because nothing lands globally. OAuth2 for Gmail and Microsoft 365 is marked experimental, so try it on a test account before pointing it at a mailbox you care about.

## Requirements
- Needs: Node.js (commands run via npx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add email-mcp -- npx -y @codefuturist/email-mcp
```

### Codex

**Platform CLI**
```bash
codex mcp add email-mcp -- npx -y @codefuturist/email-mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "email-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@codefuturist/email-mcp"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "email-mcp": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@codefuturist/email-mcp"
            ]
        }
    }
}
```

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add email-mcp npx -y @codefuturist/email-mcp
```

## When to use it
- read and sort incoming mail from several accounts
- find a message by sender or subject
- send a reply or forward a message
- schedule an email for later
- pull a verification code out of a fresh message

## Example prompts
- Show today's unread mail and sort it by importance
- Find the invoice email from accounting last month
- Reply to the client's latest message with the text I'm about to write

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47392
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43872

## Other versions with the same name
- [email-mcp · marlinjai](https://affpapa.org/en/nevibecode/mcp/marlinjai-email-mcp.md) — ★ 26

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
