# Agent Email

Connect an agent to Outlook or Gmail to search mail, prepare replies, and manage messages through MCP.

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

## What it does

Agent Email gives MCP-compatible agents tools for working with a mailbox. They can list and read messages, search conversations, create or edit drafts, reply, and send email. For Outlook, the server can also label messages, change their read state, and move them between folders.

Sending is gated by an allowlist, so the agent cannot send mail until you configure permitted recipients. Deletion is disabled by default and requires explicit opt-in. Start `npx -y email-agent-mcp` to open the setup wizard for OAuth and mailbox selection. In Claude Code, add the server with `claude mcp add email-agent-mcp -- npx -y email-agent-mcp`.

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

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add email-agent-mcp -- npx -y email-agent-mcp
```

### Codex

**Platform CLI**
```bash
codex mcp add agent-email -- npx -y email-agent-mcp
```

### Cursor

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

### GitHub Copilot

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

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add agent-email npx -y email-agent-mcp
```

## When to use it
- search a mailbox for a particular conversation
- prepare a reply without sending it
- send mail only to approved recipients
- mark messages as read or move them to folders
- apply labels to Outlook messages

## Example prompts
- Find the conversation about the release and show me its messages.
- Draft a reply to this email, but leave it unsent.
- Mark this message as read and move it to the processed folder.

## Similar
- [Excel MCP Server](https://affpapa.org/en/nevibecode/mcp/excel-mcp-server.md) — MCP server · ★ 4268
- [kordoc](https://affpapa.org/en/nevibecode/mcp/kordoc.md) — MCP server · ★ 2795
- [Power BI Authoring MCP Server (Local)](https://affpapa.org/en/nevibecode/mcp/power-bi-authoring-mcp-server-local.md) — MCP server · ★ 1248
- [Microsoft 365 MCP Server](https://affpapa.org/en/nevibecode/mcp/microsoft-365-mcp-server.md) — MCP server · ★ 1085
- [anymd](https://affpapa.org/en/nevibecode/mcp/anymd.md) — MCP server · ★ 1054
- [Docling MCP](https://affpapa.org/en/nevibecode/mcp/docling-mcp.md) — MCP server · ★ 779

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