Claude Code
Run one CLI command (replace the key), then verify with `claude mcp list`.
What are the connection details?
| 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, …) |
How do I connect Claude Code?
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, replacepk_live_YOUR_KEYwith 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.Run this command
Paste as one line. Replace
pk_live_YOUR_KEYwith your key. KeepBearerinside the quotes. Flags stay before the name/URL.Shellclaude mcp add --transport http --header "Authorization: Bearer pk_live_YOUR_KEY" unitpost https://mcp.unitpost.com/mcpUse
-s userto install for every project. Grant only the scopes the agent needs (e.g.emails:sendforemails_send). Prefer a revocable key dedicated to the agent.Verify
Run
claude mcp list(or/mcpin a session). unitpost should be connected with its tools listed.Send a test
Ask Claude to send an email from a verified domain and confirm it in Unitpost Activity.