# MailPace

The MCP server for Claude Code sends transactional email and manages MailPace domains. It can also retrieve delivery, bounce, and deferral status.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 1 repo stars
- Author: mailpace
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/mailpace/mailpace-mcp
- Updated: 2026-11-10
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/mailpace

## What it does

MailPace gives an agent tools to send email and manage MailPace domains and tokens. It can create or edit a sending domain, inspect its DKIM DNS records, and retrieve an email's status using its ID and domain.

Running the server requires Node.js 20 or later, a MailPace organization, and a domain. A domain API token is needed for sending and status checks; an organization API token is needed for domain and token management. Credentials come from environment variables. Automated sending can be limited to approved recipients with `MAILPACE_ALLOWED_RECIPIENTS`.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `MAILPACE_API_TOKEN`, `MAILPACE_ORGANIZATION_TOKEN`, `MAILPACE_ALLOWED_RECIPIENTS`, `MAILPACE_REQUEST_TIMEOUT_MS`, `MAILPACE_MAX_RETRIES` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env MAILPACE_API_TOKEN=<MAILPACE_API_TOKEN> --env MAILPACE_ORGANIZATION_TOKEN=<MAILPACE_ORGANIZATION_TOKEN> --env MAILPACE_ALLOWED_RECIPIENTS=<MAILPACE_ALLOWED_RECIPIENTS> --env MAILPACE_REQUEST_TIMEOUT_MS=<MAILPACE_REQUEST_TIMEOUT_MS> --env MAILPACE_MAX_RETRIES=<MAILPACE_MAX_RETRIES> --transport stdio mailpace -- npx -y @mailpace/mcp
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add mailpace --env MAILPACE_API_TOKEN=<MAILPACE_API_TOKEN> --env MAILPACE_ORGANIZATION_TOKEN=<MAILPACE_ORGANIZATION_TOKEN> --env MAILPACE_ALLOWED_RECIPIENTS=<MAILPACE_ALLOWED_RECIPIENTS> --env MAILPACE_REQUEST_TIMEOUT_MS=<MAILPACE_REQUEST_TIMEOUT_MS> --env MAILPACE_MAX_RETRIES=<MAILPACE_MAX_RETRIES> -- npx -y @mailpace/mcp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mailpace": {
            "command": "npx",
            "args": [
                "-y",
                "@mailpace/mcp"
            ],
            "env": {
                "MAILPACE_API_TOKEN": "<MAILPACE_API_TOKEN>",
                "MAILPACE_ORGANIZATION_TOKEN": "<MAILPACE_ORGANIZATION_TOKEN>",
                "MAILPACE_ALLOWED_RECIPIENTS": "<MAILPACE_ALLOWED_RECIPIENTS>",
                "MAILPACE_REQUEST_TIMEOUT_MS": "<MAILPACE_REQUEST_TIMEOUT_MS>",
                "MAILPACE_MAX_RETRIES": "<MAILPACE_MAX_RETRIES>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mailpace": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@mailpace/mcp"
            ],
            "env": {
                "MAILPACE_API_TOKEN": "<MAILPACE_API_TOKEN>",
                "MAILPACE_ORGANIZATION_TOKEN": "<MAILPACE_ORGANIZATION_TOKEN>",
                "MAILPACE_ALLOWED_RECIPIENTS": "<MAILPACE_ALLOWED_RECIPIENTS>",
                "MAILPACE_REQUEST_TIMEOUT_MS": "<MAILPACE_REQUEST_TIMEOUT_MS>",
                "MAILPACE_MAX_RETRIES": "<MAILPACE_MAX_RETRIES>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e MAILPACE_API_TOKEN=<MAILPACE_API_TOKEN> -e MAILPACE_ORGANIZATION_TOKEN=<MAILPACE_ORGANIZATION_TOKEN> -e MAILPACE_ALLOWED_RECIPIENTS=<MAILPACE_ALLOWED_RECIPIENTS> -e MAILPACE_REQUEST_TIMEOUT_MS=<MAILPACE_REQUEST_TIMEOUT_MS> -e MAILPACE_MAX_RETRIES=<MAILPACE_MAX_RETRIES> mailpace npx -y @mailpace/mcp
```
Replace <…> with your own values

## When to use it
- send a transactional email from an agent
- check whether an email was delivered, bounced, or deferred
- create a sending domain and inspect its DNS records
- create or revoke a domain API token

## Example prompts
- Send a transactional email to the address in the task.
- Check the status of email `email-id` for domain `example.com`.
- List my MailPace domains and verify DNS records for `example.com`.

## Similar
- [smbCloud Mail & Auth](https://affpapa.org/en/nevibecode/mcp/smbcloud-mail-auth.md) — MCP server · ★ 12 repo stars
- [Aerosend](https://affpapa.org/en/nevibecode/mcp/aerosend.md) — MCP server
- [Hypamoon](https://affpapa.org/en/nevibecode/mcp/hypamoon.md) — MCP server
- [DataNexus MCP](https://affpapa.org/en/nevibecode/mcp/datanexus-mcp.md) — MCP server · 7877 installs
- [Trust Score — Domain & Wallet Safety Scanner](https://affpapa.org/en/nevibecode/mcp/trust-score-domain-wallet-safety-scanner.md) — MCP server · 5454 installs
- [OneSignal](https://affpapa.org/en/nevibecode/mcp/onesignal.md) — MCP server · 22491 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
