# MCP Server — Plunk

Connect Plunk to Claude, Cursor, and any Model Context Protocol client. Forty-two tools for transactional email, contacts, segments, campaigns, and workflows.

[Get started free](https://send.akmarketingseo.com/auth/signup) | [Documentation](https://send-docs.akmarketingseo.com/guides/mcp-server)

---

## Setup

The server is published as `@plunk/mcp`. You need a secret key (`sk_…`) from Settings → API Keys.

```bash
claude mcp add plunk --env PLUNK_API_KEY=sk_your_key -- npx -y @plunk/mcp
```

For Claude Desktop, Cursor, or any other client, add it to your MCP config:

```json
{
  "mcpServers": {
    "plunk": {
      "command": "npx",
      "args": ["-y", "@plunk/mcp"],
      "env": {
        "PLUNK_API_KEY": "sk_your_key"
      }
    }
  }
}
```

Self-hosting? Set `PLUNK_API_URL` to your own API domain.

## Tools

**Read-only** — the only tools registered when `PLUNK_READ_ONLY=true`: `plunk_list_contacts`, `plunk_get_contact`, `plunk_verify_email`, `plunk_list_templates`, `plunk_list_campaigns`, `plunk_get_campaign`, `plunk_get_campaign_stats`, `plunk_list_segments`, `plunk_list_domains`, `plunk_check_domain`, `plunk_list_workflows`, `plunk_get_workflow`, `plunk_check_workflow`, `plunk_list_workflow_fields`, `plunk_list_workflow_executions`, `plunk_get_workflow_execution`

**Writing**: `plunk_create_contact`, `plunk_update_contact`, `plunk_subscribe_contact`, `plunk_unsubscribe_contact`, `plunk_delete_contact`, `plunk_send_email`, `plunk_track_event`, `plunk_create_template`, `plunk_create_campaign`, `plunk_test_campaign`, `plunk_send_campaign`, `plunk_cancel_campaign`, `plunk_create_segment`, `plunk_create_workflow`, `plunk_update_workflow`, `plunk_duplicate_workflow`, `plunk_delete_workflow`, `plunk_add_workflow_step`, `plunk_add_workflow_steps`, `plunk_update_workflow_step`, `plunk_delete_workflow_step`, `plunk_connect_workflow_steps`, `plunk_disconnect_workflow_steps`, `plunk_set_workflow_enabled`, `plunk_start_workflow_execution`, `plunk_cancel_workflow_executions`

Workflows are created disabled. The agent adds steps (emails, delays, yes/no and multi-branch conditions), and `plunk_check_workflow` reports anything that would fail at run time; enabling is refused while such errors remain.

## Safety

- **Sends ask you first.** Sending a campaign, or an email to more than one recipient, prompts you and shows the recipient count. Enabling a workflow that sends email asks too. The confirmation comes from you through your MCP client, not from the model.
- **Read-only mode is structural.** With `PLUNK_READ_ONLY=true` the mutating tools are never registered, so they cannot be invoked at all.
- **Account actions are out of reach.** Billing, project deletion, and key rotation require a dashboard session, so no tool can touch them.

[Back to features](/features) | [Pricing](/pricing) | [Documentation](https://send-docs.akmarketingseo.com/guides/mcp-server)
