Skip to content
API Reference
Klaviyo logo

Klaviyo

Marketing

AI-powered email and SMS marketing automation

Klaviyo is a B2C marketing automation platform for email, SMS, and push. Manage customer profiles, subscriptions, lists, segments, catalogs, campaigns, flows, and templates through your AI client.

Add Klaviyo to your zone and connect it to your MCP client.

  1. In your zone’s Keycard Console, go to Applications -> Add Application -> Explore MCP Servers.

  2. Search for Klaviyo and click Install.

  3. A browser tab opens to Klaviyo’s OAuth consent screen. Sign in and approve the requested permissions.

  4. You’re redirected back. Klaviyo appears on the Applications page with a Keycard MCP Gateway URL.

On the Applications page, click Add to Coding Agent next to Klaviyo and pick how you want to install:

  • Cursor - opens a deeplink that hands the MCP config straight to Cursor. Click Install inside Cursor to finish.
  • Claude Code - opens a dialog with a claude mcp add command. Pick a scope (User, Project, or Local), then copy and run the command in your terminal.
  • Install manually - reveals the Server Name and Server URL to paste into any other MCP-compatible client.

Once connected, Klaviyo’s tools are available to the agent, scoped to whoever signs in to your zone.

What Klaviyo can do once installed.

Klaviyo provides 27 tools:

get_account_details
Get account details
get_profiles
Get all profiles in an account
get_profile
Get a profile by ID, including subscription information
create_profile
Create a profile (requires email, phone_number, or external_id)
update_profile
Update a profile by ID
subscribe_profile_to_marketing
Subscribe a profile to marketing channels; creates the profile if it does not exist
unsubscribe_profile_from_marketing
Unsubscribe a profile from marketing channels
get_lists
Get all lists in an account
get_list
Get a list by ID
get_segments
Get all segments in an account
get_segment
Get a segment by ID
get_events
Get individual event records for a filter (profile, metric, etc.); use reports or aggregates for performance data
get_metrics
Get all metrics in an account
get_metric
Get a metric by ID
query_metric_aggregates
Aggregate event data for a metric with optional grouping (event-time semantics; use campaign/flow reports for UI-aligned send-date performance)
get_catalog_items
Get catalog items (products) in an account
get_campaigns
List campaigns with filters (not for status or performance reporting)
get_campaign
Get a campaign by ID
create_campaign
Create a draft campaign
get_campaign_report
Campaign performance metrics (opens, clicks, conversions) with audience, send channel, and timing metadata
get_flows
List flows with filters (not for status or performance reporting)
get_flow
Get a flow by ID
get_flow_report
Flow performance metrics (opens, clicks, conversions) with flow and trigger metadata
create_email_template
Create an email template from HTML
get_email_template
Get an email template by ID (includes HTML or AMP)
assign_template_to_campaign_message
Assign an email template to a campaign message
upload_image_from_url
Upload an image from a URL or data URI

What to do once Klaviyo is installed.

Now do this

  • Confirm the gateway works by asking your AI client to call one of the Klaviyo tools above.

Recommended

  • Decide who can use it - write access policies scoped to the Klaviyo resource so only the right users and agents reach the tools.
  • Watch the calls - every tool call lands in your audit log with user identity, resource, and policy decision.