Mailprotector

v1.0.5
io.github.WYRE-AI/mailprotector-mcp Checked 1 day ago Published 13 days ago

MCP server for Mailprotector — customers, domains, users, quarantine, allow/block rules for MSPs.

Values you need

VariableWhat it is
MAILPROTECTOR_API_KEYrequired secret Mailprotector API key (per manager-role, from the web console profile page)
MAILPROTECTOR_RESELLER_IDrequired The MSP's reseller id in Mailprotector (the default scope for scoped tools)
MAILPROTECTOR_BASE_URLoptional API host override Default: https://emailservice.io
MCP_TRANSPORToptional Transport mode. Set to 'stdio' for local CLI use; the image defaults to 'http' for gateway hosting. Default: stdio
AUTH_MODEoptional Credential source: 'env' reads vars locally, 'gateway' expects header injection from the WYRE MCP Gateway. The image defaults to 'gateway'. Default: env
LOG_LEVELoptional Log verbosity: debug, info, warn, error Default: info

Docker discovery passed

Requires Docker

Run in a terminal
claude mcp add mailprotector-mcp -e 'MAILPROTECTOR_API_KEY=<MAILPROTECTOR_API_KEY>' -e 'MAILPROTECTOR_RESELLER_ID=<MAILPROTECTOR_RESELLER_ID>' -- docker run -i --rm -e MAILPROTECTOR_API_KEY -e MAILPROTECTOR_RESELLER_ID ghcr.io/wyre-ai/mailprotector-mcp:v1.0.5
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mailprotector-mcp": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MAILPROTECTOR_API_KEY",
        "-e",
        "MAILPROTECTOR_RESELLER_ID",
        "ghcr.io/wyre-ai/mailprotector-mcp:v1.0.5"
      ],
      "command": "docker",
      "env": {
        "MAILPROTECTOR_API_KEY": "<MAILPROTECTOR_API_KEY>",
        "MAILPROTECTOR_RESELLER_ID": "<MAILPROTECTOR_RESELLER_ID>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mailprotector-mcp": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MAILPROTECTOR_API_KEY",
        "-e",
        "MAILPROTECTOR_RESELLER_ID",
        "ghcr.io/wyre-ai/mailprotector-mcp:v1.0.5"
      ],
      "command": "docker",
      "env": {
        "MAILPROTECTOR_API_KEY": "<MAILPROTECTOR_API_KEY>",
        "MAILPROTECTOR_RESELLER_ID": "<MAILPROTECTOR_RESELLER_ID>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "MAILPROTECTOR_API_KEY",
      "id": "mailprotector-api-key",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "MAILPROTECTOR_RESELLER_ID",
      "id": "mailprotector-reseller-id",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "mailprotector-mcp": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MAILPROTECTOR_API_KEY",
        "-e",
        "MAILPROTECTOR_RESELLER_ID",
        "ghcr.io/wyre-ai/mailprotector-mcp:v1.0.5"
      ],
      "command": "docker",
      "env": {
        "MAILPROTECTOR_API_KEY": "${input:mailprotector-api-key}",
        "MAILPROTECTOR_RESELLER_ID": "${input:mailprotector-reseller-id}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mailprotector-mcp]
command = "docker"
args = ["run", "-i", "--rm", "-e", "MAILPROTECTOR_API_KEY", "-e", "MAILPROTECTOR_RESELLER_ID", "ghcr.io/wyre-ai/mailprotector-mcp:v1.0.5"]
env = { "MAILPROTECTOR_API_KEY" = "<MAILPROTECTOR_API_KEY>", "MAILPROTECTOR_RESELLER_ID" = "<MAILPROTECTOR_RESELLER_ID>" }

For AI agents

  1. Ask the user for: MAILPROTECTOR_API_KEY, MAILPROTECTOR_RESELLER_ID. 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: mailprotector_status, mailprotector_list_categories, mailprotector_list_category_tools, mailprotector_execute_tool, mailprotector_customers_list, mailprotector_customers_get, mailprotector_customers_create, mailprotector_domains_list, ….
  5. If it fails, check that the required runtime is installed (Docker) and that the values above are set.

Machine-readable: install.md · manifest.json