Build with an AI agent
Connect Claude Code, Cursor, Codex or another coding agent to Klaviyo: give it the docs as Markdown, connect it to your account through the MCP server, and point it at a skill for the task.
Set up your agent
Paste this into your agent. It reads Klaviyo's docs, connects the MCP server and installs the CLI, asking you before anything touches your account.
Set me up to build with the Klaviyo API. Read https://developers.klaviyo.com/llms.txt for Klaviyo's developer docs, then follow https://developers.klaviyo.com/en/docs/agent_setup.md to connect the Klaviyo MCP server (https://mcp.klaviyo.com/mcp) and install the Klaviyo CLI.Connect your agent to Klaviyo
Klaviyo's MCP server lets an agent work with the data in a Klaviyo account. Add the remote server at https://mcp.klaviyo.com/mcp to your MCP client. In Claude Code, run this command:
claude mcp add --transport http klaviyo https://mcp.klaviyo.com/mcpAgent skills
Agent skills are step-by-step instructions that an AI coding agent such as Claude Code, Cursor or Codex follows to build on the Klaviyo API. Each one is a short SKILL.md that links to the reference and code files it needs, all in Markdown. Point your agent at the one that fits what you're building.
- Klaviyo API Key → OAuth MigrationGuide developers through migrating an existing Klaviyo private API key integration to OAuth 2.0 with PKCE.
- Klaviyo New OAuth IntegrationGuide developers through building a complete, production-ready Klaviyo OAuth integration from scratch.
- Klaviyo onsite forms for a Vercel Shop storefrontThis skill builds and manages Klaviyo onsite forms (popups, flyouts, full-screen forms, banners and embeds) for one storefront, from the terminal.
- Klaviyo analytics and draft campaigns for a storefrontThis skill answers questions about a store's Klaviyo data, and turns the answers into draft segments and campaigns, through the Klaviyo MCP server.
- Klaviyo for Vercel ShopThis skill connects a Vercel Shop storefront to Klaviyo, so browsing and cart activity, email signups and back-in-stock requests reach Klaviyo, and the flows Klaviyo already runs for Shopify stores (welcome, browse abandonment, abandoned cart, back in stock) work on the headless storefront too.
- Klaviyo for Vercel Shop's Shop AgentThis skill lets Shop Agent, Vercel Shop's built-in AI shopping assistant, offer a back-in-stock email when the variant a shopper wants is sold out, subscribe them through Klaviyo, and record in Klaviyo that the agent did it.
Files for agents
Every page has a Markdown version: add .md to the end of its URL. llms.txt indexes the reference by resource, llms-full.txt holds the essential guides and the agent skills in one file and links the rest, and you can download the OpenAPI spec the reference is generated from.