# Mailrith MCP server

> Manage subscribers, broadcasts, sequences, automations, and reporting within the Mailrith email marketing platform.

- Repository: https://github.com/anrawool/mailrith-agent-platform
- Page: https://hostedmcp.org/servers/anrawool/mailrith
- Transport: stdio, remote
- Stars: 0
- License: MIT
- Latest version: 2.0.1

## Install

### Claude Code

```sh
claude mcp add --env 'MAILRITH_API_KEY=<YOUR_MAILRITH_API_KEY>' mailrith -- npx -y @mailrith/mcp-server
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "mailrith": {
      "command": "npx",
      "args": [
        "-y",
        "@mailrith/mcp-server"
      ],
      "env": {
        "MAILRITH_API_KEY": "<YOUR_MAILRITH_API_KEY>"
      }
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "mailrith": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mailrith/mcp-server"
      ],
      "env": {
        "MAILRITH_API_KEY": "<YOUR_MAILRITH_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"mailrith","type":"stdio","command":"npx","args":["-y","@mailrith/mcp-server"],"env":{"MAILRITH_API_KEY":"<YOUR_MAILRITH_API_KEY>"}}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "mailrith": {
      "command": "npx",
      "args": [
        "-y",
        "@mailrith/mcp-server"
      ],
      "env": {
        "MAILRITH_API_KEY": "<YOUR_MAILRITH_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add mailrith --env 'MAILRITH_API_KEY=<YOUR_MAILRITH_API_KEY>' -- npx -y @mailrith/mcp-server
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.mailrith]
command = "npx"
args = ["-y", "@mailrith/mcp-server"]

[mcp_servers.mailrith.env]
MAILRITH_API_KEY = "<YOUR_MAILRITH_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'MAILRITH_API_KEY=<YOUR_MAILRITH_API_KEY>' mailrith npx -- -y @mailrith/mcp-server
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "mailrith": {
      "command": "npx",
      "args": [
        "-y",
        "@mailrith/mcp-server"
      ],
      "env": {
        "MAILRITH_API_KEY": "<YOUR_MAILRITH_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `MAILRITH_API_KEY` | yes | yes | A Mailrith workspace API key. |

## FAQ

### How do I authenticate with the Mailrith MCP server?

Claude Desktop and other remote clients use Mailrith OAuth, while code-first clients can use a workspace API key or OAuth access token in the Authorization header.

### What tools are available in the default profile?

The default 'submitted' profile includes tools for managing subscribers, creating and scheduling broadcasts, and updating the status of sequences and automations.
