Spare Email MCP

v0.1.2
io.github.sparedotemail/spare-email-mcp Checked 2 days ago Published 17 days ago

Read-only MCP server for spare.email mailboxes: list mail, read messages, wait for OTP codes.

Values you need

VariableWhat it is
SPARE_EMAIL_JWTrequired secret Address JWT of the spare.email (or self-hosted cloudflare_temp_email) mailbox to access
SPARE_EMAIL_BASE_URLoptional Base URL of the deployment (default: https://spare.email; set for self-hosted instances)
SPARE_EMAIL_SITE_PASSWORDoptional secret Global x-custom-auth access password, if the deployment enforces one

npm (npx) discovery passed

Requires Node.js 18+

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

For AI agents

  1. Ask the user for: SPARE_EMAIL_JWT. 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: mailbox_info, list_mails, read_mail, wait_for_otp.
  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