e2a — email for AI agents

v0.3.2
io.github.Mnexa-AI/mcp-server Checked 2 hours ago Published 6 months ago

Authenticated email gateway for AI agents — per-agent inboxes, HITL approval, SPF/DKIM verified.

Values you need

VariableWhat it is
E2A_API_KEYrequired secret e2a API key from https://e2a.dev
E2A_AGENT_EMAILoptional Default agent inbox (e.g. bot@your-domain.com). Optional — single-agent accounts auto-resolve.
E2A_BASE_URLoptional Self-hosted e2a backend URL. Defaults to https://e2a.dev. Default: https://e2a.dev

npm (npx) verified

Requires Node.js 18+

Run in a terminal
claude mcp add mcp-server -e 'E2A_API_KEY=<E2A_API_KEY>' -- npx -y --package=@e2a/mcp-server@0.3.2 e2a-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp-server": {
      "args": [
        "-y",
        "--package=@e2a/mcp-server@0.3.2",
        "e2a-mcp"
      ],
      "command": "npx",
      "env": {
        "E2A_API_KEY": "<E2A_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-server": {
      "args": [
        "-y",
        "--package=@e2a/mcp-server@0.3.2",
        "e2a-mcp"
      ],
      "command": "npx",
      "env": {
        "E2A_API_KEY": "<E2A_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "E2A_API_KEY",
      "id": "e2a-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "mcp-server": {
      "args": [
        "-y",
        "--package=@e2a/mcp-server@0.3.2",
        "e2a-mcp"
      ],
      "command": "npx",
      "env": {
        "E2A_API_KEY": "${input:e2a-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp-server]
command = "npx"
args = ["-y", "--package=@e2a/mcp-server@0.3.2", "e2a-mcp"]
env = { "E2A_API_KEY" = "<E2A_API_KEY>" }

Remote (hosted)

Run in a terminal
claude mcp add --transport http mcp-server https://mcp.e2a.dev/mcp --header 'Authorization: <Authorization>'
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "mcp-server": {
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.e2a.dev/mcp",
        "--header",
        "Authorization: <Authorization>"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-server": {
      "headers": {
        "Authorization": "<Authorization>"
      },
      "url": "https://mcp.e2a.dev/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "mcp-server": {
      "headers": {
        "Authorization": "<Authorization>"
      },
      "type": "http",
      "url": "https://mcp.e2a.dev/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp-server]
command = "npx"
args = ["-y", "mcp-remote", "https://mcp.e2a.dev/mcp", "--header", "Authorization: <Authorization>"]

For AI agents

  1. Ask the user for: E2A_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: send_email, reply_to_message, list_messages, get_message, get_attachment_data, list_agents, whoami, create_agent, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json