How to add Klaviyo MCP Server to Windsurf
Klaviyo's official MCP server: manage campaigns, profiles, flows, events, and reporting from AI clients with an API key. Paste the config into ~/.codeium/windsurf/mcp_config.json and restart Windsurf.
Last updated June 14, 2026 · 0★ · stdio · apikey · official
Windsurf config for Klaviyo MCP Server
uvx klaviyo-mcp-server@latest{
"mcpServers": {
"klaviyo-mcp-server": {
"command": "uvx",
"args": [
"klaviyo-mcp-server@latest"
],
"env": {
"PRIVATE_API_KEY": "<your-klaviyo-private-api-key>",
"READ_ONLY": "false",
"ALLOW_USER_GENERATED_CONTENT": "false"
}
}
}
}Requires `uv` (the Python package runner). Install it from https://docs.astral.sh/uv/ if `uvx` is not found.
Setup steps
- 1Open Windsurf → Cascade → the hammer/MCP icon → Configure (or edit ~/.codeium/windsurf/mcp_config.json).
- 2Paste the Klaviyo MCP Server config below.
- 3Fill in placeholder secrets, then save.
- 4Click Refresh in the MCP panel.
- 5Klaviyo MCP Server's tools become available to Cascade.
Before you start
- uv installed (uvx fetches and runs klaviyo-mcp-server@latest; requires Python 3.13+, which uv manages)
- A Klaviyo private API key with the scopes you need (Profiles, Campaigns, Flows, Events, ...)
- Owner, Admin, or Manager role on the Klaviyo account to create that key
What Klaviyo MCP Server can do in Windsurf
get_campaignsList and inspect campaigns.
create_campaignCreate a new campaign.
get_profilesFetch customer profiles.
create_profileCreate a customer profile.
update_profileUpdate an existing profile.
get_flow_reportPull performance reporting for flows.
create_email_templateCreate an email template.
update_dnd_email_templateUpdate a drag-and-drop email template.
Security
The private API key carries exactly the scopes you grant it — mint a minimal one, and set READ_ONLY=true if you only need reporting. Keep ALLOW_USER_GENERATED_CONTENT=false unless you truly need the agent reading customer-written content (reviews, form responses), since that text is a prompt-injection vector.
Klaviyo MCP Server + Windsurf FAQ
Where is the Windsurf config file?
Windsurf reads MCP servers from ~/.codeium/windsurf/mcp_config.json. Paste the Klaviyo MCP Server config there under the "mcpServers" key and restart the client.
Is Klaviyo MCP Server safe to use with Windsurf?
The private API key carries exactly the scopes you grant it — mint a minimal one, and set READ_ONLY=true if you only need reporting. Keep ALLOW_USER_GENERATED_CONTENT=false unless you truly need the agent reading customer-written content (reviews, form responses), since that text is a prompt-injection vector.
Is it safe to connect the Klaviyo MCP server to my production account?
Reasonably, if you use the guardrails: the key's scopes cap what the agent can reach, READ_ONLY=true disables all writes server-side, and ALLOW_USER_GENERATED_CONTENT=false keeps customer-written text (a prompt-injection vector) out of the context. Start read-only with minimal scopes and widen deliberately.
Is this official and free?
Yes — it is published by Klaviyo on PyPI and documented on developers.klaviyo.com, and the server costs nothing beyond your existing Klaviyo subscription. Normal API rate limits and plan-based feature availability still apply.
Does it run locally or hosted?
The standard setup is local: uvx runs the Python package on your machine over stdio with your API key in env. Klaviyo's docs also describe a remote streamable-HTTP option with OAuth dynamic client registration if your client prefers a hosted connection.