Skip to content
MCP server

MailPace

Send transactional email and manage MailPace domains and tokens from an MCP client

Runs locally

MailPace is an open-source MCP server for communication. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, Self-hosted
Runs
Locally
What it can do
Can delete data (1 tool)
Version
2.0.1

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add mailpace-mcp --env MAILPACE_API_TOKEN='<MAILPACE_API_TOKEN>' --env MAILPACE_ORGANIZATION_TOKEN='<MAILPACE_ORGANIZATION_TOKEN>' -- npx -y @mailpace/mcp

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "mailpace-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mailpace/mcp"
      ],
      "env": {
        "MAILPACE_API_TOKEN": "<MAILPACE_API_TOKEN>",
        "MAILPACE_ORGANIZATION_TOKEN": "<MAILPACE_ORGANIZATION_TOKEN>"
      }
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "mailpace-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mailpace/mcp"
      ],
      "env": {
        "MAILPACE_API_TOKEN": "<MAILPACE_API_TOKEN>",
        "MAILPACE_ORGANIZATION_TOKEN": "<MAILPACE_ORGANIZATION_TOKEN>"
      }
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "mailpace-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mailpace/mcp"
      ],
      "env": {
        "MAILPACE_API_TOKEN": "<MAILPACE_API_TOKEN>",
        "MAILPACE_ORGANIZATION_TOKEN": "<MAILPACE_ORGANIZATION_TOKEN>"
      }
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "mailpace-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mailpace/mcp"
      ],
      "env": {
        "MAILPACE_API_TOKEN": "<MAILPACE_API_TOKEN>",
        "MAILPACE_ORGANIZATION_TOKEN": "<MAILPACE_ORGANIZATION_TOKEN>"
      }
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add mailpace-mcp --env MAILPACE_API_TOKEN='<MAILPACE_API_TOKEN>' --env MAILPACE_ORGANIZATION_TOKEN='<MAILPACE_ORGANIZATION_TOKEN>' -- npx -y @mailpace/mcp

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.mailpace-mcp]
command = "npx"
args = ["-y", "@mailpace/mcp"]
env = { MAILPACE_API_TOKEN = "<MAILPACE_API_TOKEN>", MAILPACE_ORGANIZATION_TOKEN = "<MAILPACE_ORGANIZATION_TOKEN>" }

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "mailpace-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mailpace/mcp"
      ],
      "env": {
        "MAILPACE_API_TOKEN": "<MAILPACE_API_TOKEN>",
        "MAILPACE_ORGANIZATION_TOKEN": "<MAILPACE_ORGANIZATION_TOKEN>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "mailpace-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@mailpace/mcp"
          ],
          "env": {
            "MAILPACE_API_TOKEN": "<MAILPACE_API_TOKEN>",
            "MAILPACE_ORGANIZATION_TOKEN": "<MAILPACE_ORGANIZATION_TOKEN>"
          }
        }
      }
    }

    Or run: gemini mcp add -s user -e MAILPACE_API_TOKEN='<MAILPACE_API_TOKEN>' -e MAILPACE_ORGANIZATION_TOKEN='<MAILPACE_ORGANIZATION_TOKEN>' mailpace-mcp npx -- -y @mailpace/mcp

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "mailpace-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@mailpace/mcp"
          ],
          "env": {
            "MAILPACE_API_TOKEN": "<MAILPACE_API_TOKEN>",
            "MAILPACE_ORGANIZATION_TOKEN": "<MAILPACE_ORGANIZATION_TOKEN>"
          }
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "mailpace-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@mailpace/mcp"
          ],
          "env": {
            "MAILPACE_API_TOKEN": "<MAILPACE_API_TOKEN>",
            "MAILPACE_ORGANIZATION_TOKEN": "<MAILPACE_ORGANIZATION_TOKEN>"
          }
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "mailpace-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@mailpace/mcp"
          ],
          "env": {
            "MAILPACE_API_TOKEN": "<MAILPACE_API_TOKEN>",
            "MAILPACE_ORGANIZATION_TOKEN": "<MAILPACE_ORGANIZATION_TOKEN>"
          }
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "mailpace-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@mailpace/mcp"
          ],
          "env": {
            "MAILPACE_API_TOKEN": "<MAILPACE_API_TOKEN>",
            "MAILPACE_ORGANIZATION_TOKEN": "<MAILPACE_ORGANIZATION_TOKEN>"
          }
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "mailpace-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@mailpace/mcp"
          ],
          "env": {
            "MAILPACE_API_TOKEN": "<MAILPACE_API_TOKEN>",
            "MAILPACE_ORGANIZATION_TOKEN": "<MAILPACE_ORGANIZATION_TOKEN>"
          }
        }
      }
    }

    The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "mailpace-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@mailpace/mcp"
          ],
          "env": {
            "MAILPACE_API_TOKEN": "<MAILPACE_API_TOKEN>",
            "MAILPACE_ORGANIZATION_TOKEN": "<MAILPACE_ORGANIZATION_TOKEN>"
          }
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "mailpace-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@mailpace/mcp"
          ],
          "env": {
            "MAILPACE_API_TOKEN": "<MAILPACE_API_TOKEN>",
            "MAILPACE_ORGANIZATION_TOKEN": "<MAILPACE_ORGANIZATION_TOKEN>"
          }
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • MAILPACE_API_TOKENDomain API token for sending email and domain-scoped status lookups.
  • MAILPACE_ORGANIZATION_TOKENOrganization API token for domain and domain API token management.
  • MAILPACE_ALLOWED_RECIPIENTSOptional comma-separated recipient allowlist of exact addresses or @domain rules.
  • MAILPACE_REQUEST_TIMEOUT_MSOptional per-request timeout in milliseconds. Defaults to 30000.
  • MAILPACE_MAX_RETRIESOptional retry count for idempotent requests and 429 responses. Defaults to 2.

About MailPace

Two kinds of credentials decide which tools appear. A domain API token unlocks sending and status checks for one domain. An organization token adds domain and token management. Supply either or both as environment variables; nothing is accepted on the command line.

Sending supports attachments, tags and an idempotency key so a retried request does not deliver twice. Because sending is an external side effect, the README advises confirming recipients and setting MAILPACE_ALLOWED_RECIPIENTS, a list of exact addresses or @domain rules, for unattended use. Tools carry structured output schemas and behaviour annotations.

It is a Node.js 20 stdio server, run with npx or Docker, with configurable timeout and retry counts. The code is MIT-licensed.

Tools this server provides (12)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 1 of 12 tools deletes data and 5 change data; 1 name doesn't say.

From the server's own tool labels and tool names; not verified by us.

mailpace_send_emailName suggests: changes
Sends an email with attachments, tags and an Idempotency-Key.
mailpace_get_email_statusName suggests: reads
Gets delivery, bounce or deferral status by domain and email ID.
mailpace_list_domainsName suggests: reads
Lists domains with pagination and sorting.
mailpace_get_domainName suggests: reads
Gets a domain by ID.
mailpace_create_domainName suggests: changes
Creates a sending domain.
mailpace_update_domainName suggests: changes
Updates a domain's name or URL.
mailpace_verify_domain
Checks DKIM and advanced verification DNS records.
mailpace_list_domain_api_tokensName suggests: reads
Lists a domain's API tokens.
mailpace_get_domain_api_tokenName suggests: reads
Gets one domain API token.
mailpace_create_domain_api_tokenName suggests: changes
Creates a domain API token.
mailpace_update_domain_api_tokenName suggests: changes
Renames a domain API token.
mailpace_revoke_domain_api_tokenName suggests: deletes
Revokes a domain API token permanently.

What it does

Send email
Sends transactional mail with attachments, tags and idempotency keys.
Delivery status
Looks up delivery, bounce or deferral status by domain and email ID.
Domain management
Lists, creates, updates and gets domains.
DNS verification
Checks DKIM and advanced verification records.
API token management
Lists, creates, renames and revokes domain tokens.
Recipient allowlist
Restricts sending to approved addresses or domains.

Good for

  • Send a one-off transactional email from an assistant
  • Check whether a message bounced or was deferred
  • Add and verify a new sending domain
  • Rotate or revoke a domain API token
  • Lock an automation to internal recipients only

Pricing

Open source

MIT licence; needs a MailPace account. Prices not published.

MailPace FAQ

What credentials does MailPace need?

At least one of a domain API token or an organization API token.

How can sending be made safer?

Set MAILPACE_ALLOWED_RECIPIENTS and use an idempotency key when retrying.

How do I run MailPace?

With npx -y @mailpace/mcp, from a local build, or in Docker.

What are the requirements?

Node.js 20 or newer and a MailPace organization and domain.

Is MailPace free?

Yes. MailPace is open source, so you can use and self-host it for free.

How do I add MailPace to Claude Code?

Run this command in your terminal: claude mcp add mailpace-mcp --env MAILPACE_API_TOKEN='<MAILPACE_API_TOKEN>' --env MAILPACE_ORGANIZATION_TOKEN='<MAILPACE_ORGANIZATION_TOKEN>' -- npx -y @mailpace/mcp

What are the best alternatives to MailPace?

The closest alternatives to MailPace are TrendRadar, TryPost, Discord MCP, Gmail MCP and Getmitra.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers