# MailFlat

> MailFlat is an open-source MCP server. Real email inboxes for AI agents: open an address, read the one-time code, send mail. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Website:** https://mailflat.net/docs/ai/mcp
- **Repository:** https://github.com/mailflat/mailflat-sdks
- **MCP Registry name:** io.github.MailFlat/mailflat-mcp
- **Listing updated:** 2026-08-27

## About

Real email inboxes for AI agents: open an address, read the one-time code, send mail.

## Install

### Claude Code (Terminal)

```sh
claude mcp add mailflat-mcp --env MAILFLAT_API_KEY='<MAILFLAT_API_KEY>' -- uvx mailflat-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mailflat-mcp": {
      "command": "uvx",
      "args": [
        "mailflat-mcp"
      ],
      "env": {
        "MAILFLAT_API_KEY": "<MAILFLAT_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "mailflat-mcp": {
      "command": "uvx",
      "args": [
        "mailflat-mcp"
      ],
      "env": {
        "MAILFLAT_API_KEY": "<MAILFLAT_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "mailflat-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mailflat-mcp"
      ],
      "env": {
        "MAILFLAT_API_KEY": "<MAILFLAT_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "mailflat-mcp": {
      "command": "uvx",
      "args": [
        "mailflat-mcp"
      ],
      "env": {
        "MAILFLAT_API_KEY": "<MAILFLAT_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "mailflat-mcp": {
      "command": "uvx",
      "args": [
        "mailflat-mcp"
      ],
      "env": {
        "MAILFLAT_API_KEY": "<MAILFLAT_API_KEY>"
      }
    }
  }
}
```

## FAQ

### Is MailFlat free?

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

### How do I add MailFlat to Claude Code?

Run this command in your terminal: claude mcp add mailflat-mcp --env MAILFLAT_API_KEY='<MAILFLAT_API_KEY>' -- uvx mailflat-mcp

## 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/mailflat
