General5 min read

Klaviyo MCP: Email Automation Data in Your Terminal

klaviyomcpemailmarketingintegrations

Email Marketing Without the Browser

Klaviyo is the tool a lot of e-commerce brands use for email automation — flow emails, abandoned cart sequences, post-purchase follow-ups, win-back campaigns. It's good at what it does. The problem is the same as any other SaaS: context switching. You're debugging a customer journey issue in your terminal and you need to check whether a flow is active, what the current enrollment numbers look like, or if a segment has been updated since yesterday. Open Klaviyo, find the flow, check the stats. Thirty seconds, but it breaks your focus.

The Klaviyo MCP server lets Claude Code query your Klaviyo account directly. You can check flow status, pull campaign performance, inspect segment membership, and review subscription data without leaving your terminal.

What It Exposes

  • Flow status, trigger conditions, and step-level performance
  • Campaign send history, open rates, click rates, revenue attribution
  • Segment definitions and member counts
  • Profile and subscription data
  • List and tag management

You can also update certain data — add or remove profiles from segments, update profile properties, trigger manual campaign sends if that's part of your workflow.

Setup

You'll need a Klaviyo Private API Key. Create one under Account > Settings > API Keys in your Klaviyo dashboard. The key has access to whatever your account permissions allow, so use a key with the minimum scope you need for what you're trying to do.

The MCP server communicates with Klaviyo's REST API. It runs locally and registers its tools with Claude Code on startup, same as other MCP servers.

Use Cases

E-commerce operations teams can build scripts that check flow health — are all your abandoned cart emails still active, are enrollment triggers still firing, what did yesterday's campaign revenue look like. You can automate the data gathering so that instead of opening Klaviyo to check a flow's performance, you get a summary delivered inside your terminal session as part of whatever you're working on.

Get Started with Claude Code

Start building with Claude Code today. Free to download, powerful enough for production.