# Email (IMAP/SMTP)

> Email (IMAP/SMTP) is an open-source MCP server for communication. Read, search, draft and send mail over IMAP and SMTP for iCloud, Gmail, Yahoo and Outlook. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/mindstone/mcp-servers/tree/HEAD/connectors/email-imap
- **MCP Registry name:** io.github.mindstone/mcp-server-email-imap
- **Categories:** [communication](https://ai-powered.com/categories/communication)
- **Listing updated:** 2026-11-23

## About

This connector talks directly to mail servers with an app-specific password rather than OAuth. It recognises iCloud, Gmail, Yahoo and Outlook or Microsoft 365 from the address domain, and accepts custom IMAP and SMTP hosts and ports; if the domain is unknown it refuses to start instead of guessing a provider.

Sending has built-in brakes against prompt-injection mass mailing. email_send is capped at 25 recipients per call and 50 sends per rolling hour by default, returning structured errors with a retry time when exceeded. Raising those limits bypasses the guardrails, as the settings note. Attachments are downloaded into a private staging directory under a workspace path, and outbound attachments may be read only from inside it.

The README lists 17 tools across mailbox, message, draft and send operations, and configure_email_imap can switch accounts inside a running server. It needs Node.js 20 or newer and ships as an npm package from the Mindstone mcp-servers collection.

## Features

- **Major providers:** iCloud, Gmail, Yahoo, Outlook and custom IMAP hosts.
- **Provider auto-detection:** Chooses a provider from the email domain, or refuses to start.
- **Send caps:** Default 25 recipients per send and 50 sends per hour.
- **Draft management:** Save and update drafts as well as send.
- **Attachment staging:** Downloads go to a private directory under a workspace path.
- **Account switching:** configure_email_imap changes accounts without a restart.

## Good for

- Search and summarise an iCloud inbox from an assistant
- Draft replies and save them for review
- Fetch an attachment into a workspace folder
- Limit the damage of an injected send instruction

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add mcp-server-email-imap --env EMAIL_IMAP_EMAIL='<EMAIL_IMAP_EMAIL>' --env EMAIL_IMAP_PASSWORD='<EMAIL_IMAP_PASSWORD>' -- npx -y @mindstone/mcp-server-email-imap
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mcp-server-email-imap": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-email-imap"
      ],
      "env": {
        "EMAIL_IMAP_EMAIL": "<EMAIL_IMAP_EMAIL>",
        "EMAIL_IMAP_PASSWORD": "<EMAIL_IMAP_PASSWORD>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-server-email-imap": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-email-imap"
      ],
      "env": {
        "EMAIL_IMAP_EMAIL": "<EMAIL_IMAP_EMAIL>",
        "EMAIL_IMAP_PASSWORD": "<EMAIL_IMAP_PASSWORD>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp-server-email-imap": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-email-imap"
      ],
      "env": {
        "EMAIL_IMAP_EMAIL": "<EMAIL_IMAP_EMAIL>",
        "EMAIL_IMAP_PASSWORD": "<EMAIL_IMAP_PASSWORD>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mcp-server-email-imap": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-email-imap"
      ],
      "env": {
        "EMAIL_IMAP_EMAIL": "<EMAIL_IMAP_EMAIL>",
        "EMAIL_IMAP_PASSWORD": "<EMAIL_IMAP_PASSWORD>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp-server-email-imap --env EMAIL_IMAP_EMAIL='<EMAIL_IMAP_EMAIL>' --env EMAIL_IMAP_PASSWORD='<EMAIL_IMAP_PASSWORD>' -- npx -y @mindstone/mcp-server-email-imap
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp-server-email-imap]
command = "npx"
args = ["-y", "@mindstone/mcp-server-email-imap"]
env = { EMAIL_IMAP_EMAIL = "<EMAIL_IMAP_EMAIL>", EMAIL_IMAP_PASSWORD = "<EMAIL_IMAP_PASSWORD>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mcp-server-email-imap": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-email-imap"
      ],
      "env": {
        "EMAIL_IMAP_EMAIL": "<EMAIL_IMAP_EMAIL>",
        "EMAIL_IMAP_PASSWORD": "<EMAIL_IMAP_PASSWORD>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e EMAIL_IMAP_EMAIL='<EMAIL_IMAP_EMAIL>' -e EMAIL_IMAP_PASSWORD='<EMAIL_IMAP_PASSWORD>' mcp-server-email-imap npx -- -y @mindstone/mcp-server-email-imap

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-server-email-imap": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-email-imap"
      ],
      "env": {
        "EMAIL_IMAP_EMAIL": "<EMAIL_IMAP_EMAIL>",
        "EMAIL_IMAP_PASSWORD": "<EMAIL_IMAP_PASSWORD>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-server-email-imap": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-email-imap"
      ],
      "env": {
        "EMAIL_IMAP_EMAIL": "<EMAIL_IMAP_EMAIL>",
        "EMAIL_IMAP_PASSWORD": "<EMAIL_IMAP_PASSWORD>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mcp-server-email-imap": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-email-imap"
      ],
      "env": {
        "EMAIL_IMAP_EMAIL": "<EMAIL_IMAP_EMAIL>",
        "EMAIL_IMAP_PASSWORD": "<EMAIL_IMAP_PASSWORD>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp-server-email-imap": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-email-imap"
      ],
      "env": {
        "EMAIL_IMAP_EMAIL": "<EMAIL_IMAP_EMAIL>",
        "EMAIL_IMAP_PASSWORD": "<EMAIL_IMAP_PASSWORD>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mcp-server-email-imap": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-email-imap"
      ],
      "env": {
        "EMAIL_IMAP_EMAIL": "<EMAIL_IMAP_EMAIL>",
        "EMAIL_IMAP_PASSWORD": "<EMAIL_IMAP_PASSWORD>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mcp-server-email-imap": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-email-imap"
      ],
      "env": {
        "EMAIL_IMAP_EMAIL": "<EMAIL_IMAP_EMAIL>",
        "EMAIL_IMAP_PASSWORD": "<EMAIL_IMAP_PASSWORD>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mcp-server-email-imap": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-email-imap"
      ],
      "env": {
        "EMAIL_IMAP_EMAIL": "<EMAIL_IMAP_EMAIL>",
        "EMAIL_IMAP_PASSWORD": "<EMAIL_IMAP_PASSWORD>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp-server-email-imap": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-email-imap"
      ],
      "env": {
        "EMAIL_IMAP_EMAIL": "<EMAIL_IMAP_EMAIL>",
        "EMAIL_IMAP_PASSWORD": "<EMAIL_IMAP_PASSWORD>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 2 of 5 tools change data; 2 names don't say. From the server's own tool labels and tool names; not verified by us.

- `email_send` (name suggests: changes): Sends an email, subject to recipient and rate caps.
- `email_get_attachment` (name suggests: reads): Downloads an attachment into a staging directory.
- `email_save_draft`: Saves a draft.
- `email_update_draft` (name suggests: changes): Updates an existing draft.
- `configure_email_imap`: Switches accounts inside a running server.

## FAQ

### How does Email (IMAP/SMTP) authenticate?

With an app-specific password in EMAIL_IMAP_PASSWORD, plus your address in EMAIL_IMAP_EMAIL.

### What are the send limits?

25 combined recipients per call and 50 email_send calls per hour by default, both adjustable.

### Can Email (IMAP/SMTP) use plain-text ports?

Yes, ports 143 and 25 are allowed if configured; the README says the host owns that decision.

### What does Email (IMAP/SMTP) need to run?

Node.js 20 or newer.

### Is Email (IMAP/SMTP) free?

Yes. Email (IMAP/SMTP) is open source, so you can use and self-host it for free.

### How do I add Email (IMAP/SMTP) to Claude Code?

Run this command in your terminal: claude mcp add mcp-server-email-imap --env EMAIL_IMAP_EMAIL='<EMAIL_IMAP_EMAIL>' --env EMAIL_IMAP_PASSWORD='<EMAIL_IMAP_PASSWORD>' -- npx -y @mindstone/mcp-server-email-imap

### What are the best alternatives to Email (IMAP/SMTP)?

The closest alternatives to Email (IMAP/SMTP) are TrendRadar, TryPost, Discord MCP, Gmail MCP and Getmitra.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [TrendRadar](https://ai-powered.com/mcp/trendradar): TrendRadar is an open-source MCP server for communication.
- [TryPost](https://ai-powered.com/mcp/trypost): TryPost is a paid MCP server for marketing and seo.
- [Discord MCP](https://ai-powered.com/mcp/discord-mcp): Discord MCP is an open-source MCP server for communication.
- [Gmail MCP](https://ai-powered.com/mcp/gmail-mcp-3): Gmail MCP is an open-source MCP server for communication.
- [Getmitra](https://ai-powered.com/mcp/getmitra): Getmitra is an MCP server for communication.
- [Valentina](https://ai-powered.com/mcp/valentina): Valentina is an MCP server for e-commerce.
- [Carla](https://ai-powered.com/mcp/carla): Carla is an MCP server for communication.
- [MCP for iCloud](https://ai-powered.com/mcp/mcp-for-icloud-2): MCP for iCloud is an MCP server for communication.

---
Source: https://ai-powered.com/mcp/email-imap-smtp-2
