Assistant Mail MCP

v1.3.1
io.github.AssistantMail/assistantmail-mcp Checked 3 days ago Published 3 months ago

Agent email with allowlist and consent via AssistantMail.

Values you need

VariableWhat it is
ASSISTANT_MAIL_API_KEYrequired secret AssistantMail API key (amk_...). Required unless passed per-tool.
ASSISTANT_MAIL_API_BASE_URLoptional Optional AssistantMail API base URL. Default: https://api.assistant-mail.ai

npm (npx) discovery passed

Requires Node.js 18+

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

For AI agents

  1. Ask the user for: ASSISTANT_MAIL_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: assistantmail_health, assistantmail_get_me, assistantmail_get_inbound_policy, assistantmail_update_inbound_policy, assistantmail_create_mailbox, assistantmail_list_mailboxes, assistantmail_get_mailbox, assistantmail_update_mailbox, ….
  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