---
title: "Claude Code"
description: "Add Unitpost to Claude Code with a single `claude mcp add` command."
url: https://www.unitpost.com/guides/mcp/claude-code
section: MCP
updated: 2026-07-24
---
# Claude Code

## Connection settings

- **Server URL**: https://mcp.unitpost.com/mcp
- **Transport**: Streamable HTTP
- **Auth header**: Authorization: Bearer pk_live_YOUR_KEY (production key from www.unitpost.com)
- **Tools**: one per API operation (emails_send, campaigns_send, …)

## Claude Code

> Add Unitpost to Claude Code with a single `claude mcp add` command.

Run one CLI command (replace the key), then verify with `claude mcp list`.

### 1. Create a production API key

Open https://www.unitpost.com → Settings → API keys → create a scoped key. Copy the full `pk_live_…` value (shown once). In every snippet below, replace `pk_live_YOUR_KEY` with that value.

> Must be production. Keys from unitpost.dev only work on the dev API. This MCP URL is production (`mcp.unitpost.com`) — a .dev key returns 401 Invalid API key on tool calls even if the server appears connected.

### 2. Run this command

Paste as one line. Replace `pk_live_YOUR_KEY` with your key. Keep `Bearer ` inside the quotes. Flags stay before the name/URL.

```bash
claude mcp add --transport http --header "Authorization: Bearer pk_live_YOUR_KEY" unitpost https://mcp.unitpost.com/mcp
```

> Use `-s user` to install for every project. Grant only the scopes the agent needs (e.g. `emails:send` for `emails_send`). Prefer a revocable key dedicated to the agent.

### 3. Verify

Run `claude mcp list` (or `/mcp` in a session). unitpost should be connected with its tools listed.

### 4. Send a test

Ask Claude to send an email from a verified domain and confirm it in Unitpost Activity.

## Related

- [Claude Desktop](https://www.unitpost.com/guides/mcp/claude-desktop): Connect via the mcp-remote bridge in claude_desktop_config.json (API-key auth).
- [Codex](https://www.unitpost.com/guides/mcp/codex): Add the Unitpost MCP server to OpenAI Codex CLI.
- [GitHub Copilot](https://www.unitpost.com/guides/mcp/copilot): Use the Unitpost MCP server with VS Code agent mode / Copilot MCP.
