Klaviyo MCP server for AI agents

Look up and update profiles, manage lists, segments and marketing consent, record events, report on metrics, and read or send campaigns, flows and templates in a Klaviyo account.

KlaviyoAPI_KEY

Runs with your users' own Klaviyo accounts. Credentials stay on prompt-tm.com.

27 tools · 0 triggers

Auth
API key
Tools
27
Triggers
0
Category
Email, CRM

Klaviyo's MCP server and this toolkit

Klaviyo runs its own MCP server at https://mcp.klaviyo.com/mcp. It signs in with OAuth and works in the Klaviyo account you sign in to. Klaviyo also publishes a local version, klaviyo-mcp-server, which runs on your machine with a private API key.

What Prompt TM adds

This toolkit is for an agent that works in Klaviyo accounts your users connect themselves, each with their own key. It calls Klaviyo's REST API (revision 2026-10-15), not Klaviyo's MCP server, and serves the tools below at one MCP URL, next to any other toolkit you add.

  • Each user connects a Klaviyo private API key through a connect link on prompt-tm.com. Prompt TM checks the key with Klaviyo, stores it encrypted and adds it to each call. The agent never sees it.
  • The user_id in the MCP URL picks whose Klaviyo account a call uses.
  • Sending a campaign, subscribing or unsubscribing people, changing list members and recording events can all reach a customer's inbox or phone. Those tools count as destructive, so you can hold them until a person approves.
  • Read tools cover profiles, lists, segments, events, metric reports, campaigns, flows and templates.

Tools and triggers

  • Get account

    KLAVIYO_GET_ACCOUNTS

    Returns the Klaviyo account the private key belongs to: organization name, default sender, time zone, currency and public API key.read-only

  • Get profiles

    KLAVIYO_GET_PROFILES

    Lists profiles (contacts) in the account, 20 per page by default. Find one person with a filter on email, phone_number or external_id.read-only

  • Get profile

    KLAVIYO_GET_PROFILE

    Returns one profile with its fields and custom properties. Include `lists` or `segments` to see what it belongs to.read-only

  • Create profile

    KLAVIYO_CREATE_PROFILE

    Creates a profile. Klaviyo answers 409 when a profile with that email, phone number or external ID exists; use Create or update profile to upsert. Creating a profile doesn't subscribe it to marketing.

  • Update profile

    KLAVIYO_UPDATE_PROFILE

    Changes the fields of a profile. Fields you leave out keep their values. Doesn't change marketing consent.

  • Create or update profile

    KLAVIYO_CREATE_OR_UPDATE_PROFILE

    Creates a profile, or updates the one with the same email, phone number or external ID. Doesn't change marketing consent; use Subscribe profiles for that.

  • Get lists

    KLAVIYO_GET_LISTS

    Lists the account's lists with their IDs and names, 10 per page.read-only

  • Get list

    KLAVIYO_GET_LIST

    Returns one list: name, opt-in process (single or double), created and updated times.read-only

  • Create list

    KLAVIYO_CREATE_LIST

    Creates an empty list. Klaviyo allows 150 new lists a day.

  • Get profiles in list

    KLAVIYO_GET_PROFILES_FOR_LIST

    Lists the profiles on a list, 20 per page by default.read-only

  • Add profiles to list

    KLAVIYO_ADD_PROFILES_TO_LIST

    Adds existing profiles to a list without giving marketing consent (use Subscribe profiles for consent). An "Added to list" flow on this list can send them messages.destructive

  • Remove profiles from list

    KLAVIYO_REMOVE_PROFILES_FROM_LIST

    Removes profiles from a list. They stop getting marketing sent to this list; their consent and other lists stay as they are.destructive

  • Get segments

    KLAVIYO_GET_SEGMENTS

    Lists the account's segments with their IDs and names, 10 per page.read-only

  • Get profiles in segment

    KLAVIYO_GET_PROFILES_FOR_SEGMENT

    Lists the profiles in a segment, 20 per page by default.read-only

  • Subscribe profiles

    KLAVIYO_BULK_SUBSCRIBE_PROFILES

    Records marketing consent for email, SMS, WhatsApp or push and, with a list, adds the profiles to it. On a double opt-in list each profile gets a confirmation message first. Runs as a job.destructive

  • Unsubscribe profiles

    KLAVIYO_BULK_UNSUBSCRIBE_PROFILES

    Removes marketing consent. With a list, profiles on that list are unsubscribed from it; profiles not on the list are unsubscribed from all marketing on that channel. Runs as a job.destructive

  • Get events

    KLAVIYO_GET_EVENTS

    Lists events (opened email, placed order, custom events), 200 per page by default. Filter by metric_id or profile_id; sort `-datetime` for the newest first.read-only

  • Create event

    KLAVIYO_CREATE_EVENT

    Records an event for a profile (creating or updating the profile). A flow triggered by this metric can send the person messages; set backfill to record without triggering flows.destructive

  • Get metrics

    KLAVIYO_GET_METRICS

    Lists the account's metrics (event types such as Placed Order or Opened Email) with their IDs. Use an ID in Get events or Query metric aggregates.read-only

  • Query metric aggregates

    KLAVIYO_QUERY_METRIC_AGGREGATES

    Counts or sums a metric's events over time, e.g. orders and revenue per day, optionally grouped by campaign, flow or message. Read-only, though it is a POST.read-only

  • Get campaigns

    KLAVIYO_GET_CAMPAIGNS

    Lists campaigns with their names, status and send settings, up to 100 per page.read-only

  • Get campaign

    KLAVIYO_GET_CAMPAIGN

    Returns one campaign. Include `campaign-messages` and `campaign-audiences` to see its content and who it goes to.read-only

  • Send campaign

    KLAVIYO_SEND_CAMPAIGN

    Sends a campaign to its audience now, or at the time its send settings schedule. Klaviyo sends it as a background job.destructive

  • Get flows

    KLAVIYO_GET_FLOWS

    Lists automated flows with their status (draft, manual, live) and trigger type, up to 50 per page.read-only

  • Get flow

    KLAVIYO_GET_FLOW

    Returns one flow. Include `flow-actions` to see its steps.read-only

  • Get templates

    KLAVIYO_GET_TEMPLATES

    Lists email templates with their names, editor type and HTML, 10 per page.read-only

  • Get template

    KLAVIYO_GET_TEMPLATE

    Returns one email template with its HTML and plain text.read-only

Try Klaviyo now

Sign in, connect your account and run any of these in the playground, or ask your agent through the router.

Try it free

Connect via MCP

Create an MCP server for Klaviyo in the dashboard, then add its URL to your client. This is the Claude Code command; the client guide has the others.

terminal
claude mcp add --transport http klaviyo \
  "https://www.prompt-tm.com/mcp/<server id>?user_id=<your user>" \
  --header "x-api-key: ptm_…"

Connect via REST

Run a tool with one request. The response is { data, error, successful, log_id } for every tool.

terminal
curl -X POST https://www.prompt-tm.com/api/v3/tools/execute/KLAVIYO_GET_ACCOUNTS \
  -H "x-api-key: $PROMPT_TM_KEY" -H "content-type: application/json" \
  -d '{ "user_id": "alice", "arguments": {} }'

Klaviyo questions

Cookies and analytics

Prompt TM's own cookies only keep you signed in and remember the project you last opened. Accepting turns on Google Analytics on the public pages, so we can count visits and see which pages get read. It never runs in the dashboard, and it does not load until you choose.

Read the privacy notice