# MCP Server Imap

> MCP Server Imap is an open-source MCP server. Email tools for any IMAP/SMTP provider: list, read, search, send, and manage messages. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Website:** https://aiwerkmcp.com/servers/imap-email/
- **Repository:** https://github.com/aiwerk/mcp-server-imap
- **MCP Registry name:** io.github.AIWerk/mcp-server-imap
- **Listing updated:** 2026-11-13

## About

Email tools for any IMAP/SMTP provider: list, read, search, send, and manage messages.

## Install

### Claude Code (Terminal)

```sh
claude mcp add mcp-server-imap --env IMAP_HOST='<IMAP_HOST>' --env IMAP_USER='<IMAP_USER>' --env IMAP_PASS='<IMAP_PASS>' --env SMTP_PASS='<SMTP_PASS>' -- npx -y @aiwerk/mcp-server-imap
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-server-imap": {
      "command": "npx",
      "args": [
        "-y",
        "@aiwerk/mcp-server-imap"
      ],
      "env": {
        "IMAP_HOST": "<IMAP_HOST>",
        "IMAP_USER": "<IMAP_USER>",
        "IMAP_PASS": "<IMAP_PASS>",
        "SMTP_PASS": "<SMTP_PASS>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "mcp-server-imap": {
      "command": "npx",
      "args": [
        "-y",
        "@aiwerk/mcp-server-imap"
      ],
      "env": {
        "IMAP_HOST": "<IMAP_HOST>",
        "IMAP_USER": "<IMAP_USER>",
        "IMAP_PASS": "<IMAP_PASS>",
        "SMTP_PASS": "<SMTP_PASS>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "mcp-server-imap": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@aiwerk/mcp-server-imap"
      ],
      "env": {
        "IMAP_HOST": "<IMAP_HOST>",
        "IMAP_USER": "<IMAP_USER>",
        "IMAP_PASS": "<IMAP_PASS>",
        "SMTP_PASS": "<SMTP_PASS>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-server-imap": {
      "command": "npx",
      "args": [
        "-y",
        "@aiwerk/mcp-server-imap"
      ],
      "env": {
        "IMAP_HOST": "<IMAP_HOST>",
        "IMAP_USER": "<IMAP_USER>",
        "IMAP_PASS": "<IMAP_PASS>",
        "SMTP_PASS": "<SMTP_PASS>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "mcp-server-imap": {
      "command": "npx",
      "args": [
        "-y",
        "@aiwerk/mcp-server-imap"
      ],
      "env": {
        "IMAP_HOST": "<IMAP_HOST>",
        "IMAP_USER": "<IMAP_USER>",
        "IMAP_PASS": "<IMAP_PASS>",
        "SMTP_PASS": "<SMTP_PASS>"
      }
    }
  }
}
```

## FAQ

### Is MCP Server Imap free?

Yes. MCP Server Imap is open source, so you can use and self-host it for free.

### How do I add MCP Server Imap to Claude Code?

Run this command in your terminal: claude mcp add mcp-server-imap --env IMAP_HOST='<IMAP_HOST>' --env IMAP_USER='<IMAP_USER>' --env IMAP_PASS='<IMAP_PASS>' --env SMTP_PASS='<SMTP_PASS>' -- npx -y @aiwerk/mcp-server-imap

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/mcp-server-imap
