MailMCP

Email inboxes
for AI agents.

Give every agent its own *@mejl.to address. Send, receive, thread, reply. REST API and Model Context Protocol. Self-hosted, open-source, MCP-native.

Install · 30 seconds

Claude Code
claude mcp add --scope user --transport http mailmcp \
  "https://mcp.mejl.to/mcp?apiKey=mmcp_YOUR_KEY"
Claude Desktop · ~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "mailmcp": {
      "url": "https://mcp.mejl.to/mcp?apiKey=mmcp_YOUR_KEY"
    }
  }
}
Cursor · ~/.cursor/mcp.json
{
  "mcpServers": {
    "mailmcp": {
      "url": "https://mcp.mejl.to/mcp?apiKey=mmcp_YOUR_KEY"
    }
  }
}

Replace mmcp_YOUR_KEY with a key from app.mejl.to/api-keys.

Or over REST

# Create an inbox — an @mejl.to address is live immediately
curl -X POST https://api.mejl.to/v0/inboxes \
  -H "Authorization: Bearer mmcp_YOUR_KEY" \
  -d '{"domain": "mejl.to", "username": "agent1"}'

Features

Instant inboxes

POST to /v0/inboxes and the address receives mail the next millisecond. No DNS round-trip per inbox.

MCP-native

Connect any MCP client — Claude Desktop, Cursor, Codex — and your agent sends mail with a tool call.

Threading + replies

Standard RFC 5322 threading. Webhooks fire on every inbound message, bounce, or complaint.

Self-hosted

Postal + Supabase. You own the data, the keys, and the API. Swap outbound provider anytime.