Klaviyo MCP
Klaviyo MCP
Klaviyo MCP server. 24 read-only tools cover campaigns, flows, segments, metrics, reports, and profiles across many accounts.
Install
Claude Code:
claude mcp add klaviyo -e KLAVIYO_KEY_MAIN=pk_your_key -- npx -y @scalably-io/klaviyo-mcpCodex:
codex mcp add klaviyo --env KLAVIYO_KEY_MAIN=pk_your_key -- npx -y @scalably-io/klaviyo-mcpClaude Desktop: download klaviyo-mcp.mcpb from the latest GitHub release and open it. Claude Desktop's install form only accepts one account (KLAVIYO_KEY_MAIN).
Setup
Create a private API key in Klaviyo under Settings > API Keys.
Set one
KLAVIYO_KEY_<name>=pk_xxxenvironment variable per account, for exampleKLAVIYO_KEY_MAINorKLAVIYO_KEY_STOREONE. The server auto-discovers everyKLAVIYO_KEY_*variable at startup;list_accountsshows what it found.Multiple Klaviyo accounts (agencies, multi-brand portfolios) work only through Claude Code or Codex, since both let you pass arbitrary extra environment variables. Add as many
KLAVIYO_KEY_<name>variables as you have accounts, then call tools with the matchingaccountargument (the name afterKLAVIYO_KEY_, lowercased).All 24 tools are read-only.
Tools (24)
Tool | What it does |
| List all configured Klaviyo accounts. Use this first to see which brands are available. |
| List recent email campaigns for a specific Klaviyo account. Returns campaign IDs, names, status, and send dates. |
| Get email campaign performance metrics for a Klaviyo account. Returns opens, clicks, revenue, bounce rate, unsubscribes for the specified time period. |
| List available metrics for a Klaviyo account. Use this to find the 'Placed Order' metric ID needed for revenue reporting. |
| Pull campaign performance summary from ALL configured Klaviyo accounts. Returns a unified cross-brand report. |
| Get email flow (automation) performance for a Klaviyo account. Returns metrics for welcome series, abandoned cart, post-purchase, etc. |
| Get per-variation (A/B arm) email/SMS campaign metrics for a Klaviyo account. Splits results by variation so you can compare arms. |
| Time-series flow (automation) metrics for a Klaviyo account. Buckets by interval. |
| Segment performance metrics for a Klaviyo account: member counts, additions, removals. |
| Sign-up form performance for a Klaviyo account: views, submissions, submit rate. |
| List all segments in a Klaviyo account with name, member count, and creation date. |
| List all email lists in a Klaviyo account with name, opt-in process, and creation date. |
| List all flows (automations) in a Klaviyo account with name, status, trigger type, and last updated. |
| Get full details for a single campaign by ID: name, status, send_time, subject, preview text, channel, and message IDs. |
| List profiles suppressed from email marketing for a single reason. Klaviyo only allows |
| Aggregate values for any Klaviyo metric (e.g. opens, clicks, revenue) over a custom timeframe and interval. |
| Fetch an email template by ID, including HTML/text content. Use for audit/preview. |
| List recent events for a Klaviyo account, optionally filtered by metric_id (e.g. Placed Order). Returns up to 100 most recent. |
| Get Klaviyo account metadata: org name, timezone, currency, contact email, industry. |
| List all tags in a Klaviyo account (used to label campaigns, flows, segments, lists). |
| List email templates in a Klaviyo account (name, editor type, dates). Use |
| Look up a customer profile by email or profile ID: name, location, and email-marketing consent/suppression status. |
| Get a flow's structure by ID: status, trigger, and its actions/steps (type, message channel). Use |
| Expert escape hatch: run any Klaviyo values or series report with full control over statistics, group_by, filter, interval, and timeframe. |
Configuration
Variable | Required | Purpose |
| yes | Private API key for one Klaviyo account. One variable per account; the name after |
| no | Override the Klaviyo API base URL (default |
| no | Base delay in milliseconds for the retry backoff (default 1000) |
Reply shape
Every tool returns plain JSON with status (succeeded, partial, no_op), summary, target, result, proof, warnings, recovery. Failures throw a plain error string: <code>: <message> <hint>.
Limits
Reporting endpoints (campaign_report, flow_report, campaign_ab_report, flow_series_report, segment_report, form_report, custom_report for values/series reports) are rate limited by Klaviyo to 2 requests per minute per account. Reporting data is only available from 2023-06-01 onward; a custom range starting earlier is clamped to that floor. A single reporting request cannot span more than one calendar year, so a longer custom range is auto-windowed into consecutive yearly chunks with a spacing delay between them.
Verify
Each release lists the package version, the .mcpb sha256 and the production commit it was derived from in CHANGELOG.md. CI runs the tests and a clean install of the packed tarball on every push.
Privacy Policy
This server runs locally, on your machine, under your own credentials. It collects no personal data, contains no telemetry, stores nothing persistently, and talks only to the vendor API it wraps. No third party, including Scalably, receives your data. Contact: hello@scalably.io. Canonical copy: https://scalably.io/connector-privacy.html
License
MIT. Copyright Scalably.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/scalably-io/klaviyo-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server