Connector guide2-minute read14 MCP toolsEnglish · Deutsch · Italiano

如何将 Klaviyo 连接到 Gemini — 通过 MCP

Drive Klaviyo (e-commerce email + SMS) from any AI agent: profiles, lists, segments, events tracking, flows, campaigns, catalogs. 14 tools targeting the modern 2024+ API.

HCBy HelpCode teamUpdated 2 min read Open source on GitHub

No credit card · 7-day trial · Self-host alternative available

MCP connector

Klaviyo

Drive Klaviyo (e-commerce email + SMS) from any AI agent: profiles, lists, segments, events tracking, flows, campaigns, catalogs. 14 tools targeting the modern 2024+ API.

Tools

14

Region

INTL

Category

marketing-automation

Authentication

API Key

Required env vars

KLAVIYO_PRIVATE_API_KEY
Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Source-available BSL-1.1
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

No install? Use cloud.anythingmcp.com directly.

Sign in, install the Klaviyo in one click, paste the credentials, mint an MCP API key — done. No Docker, no git clone, no local server to run.

Open Cloud

TL;DR

Drive Klaviyo (e-commerce email + SMS) from any AI agent: profiles, lists, segments, events tracking, flows, campaigns, catalogs. 14 tools targeting the modern 2024+ API.

💡 无需安装? 直接使用 cloud.anythingmcp.com 登录、点击 Connectors → Klaviyo、粘贴凭证、生成 MCP API key — 完成。无 Docker、无 git clone、无本地服务器。

Klaviyo + Gemini

Drive Klaviyo (e-commerce email + SMS) from any AI agent: profiles, lists, segments, events tracking, flows, campaigns, catalogs. 14 tools targeting the modern 2024+ API.

前提条件

完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:

KLAVIYO_PRIVATE_API_KEY

步骤 1 — 获取凭证

Setup:

  1. Sign in to Klaviyo → bottom-left avatar → Settings → API Keys → Create Private API Key.
  2. Set scopes — at minimum: Profiles (Full), Lists (Full), Segments (Read), Events (Full), Catalogs (Read), Campaigns (Read), Flows (Read).
  3. Copy the key. It's prefixed with pk_. Set KLAVIYO_PRIVATE_API_KEY.

Authentication: Authorization: Klaviyo-API-Key ${KLAVIYO_PRIVATE_API_KEY} (the literal prefix is Klaviyo-API-Key, NOT Bearer). The adapter sets this via API_KEY + custom apiKey value.

…(continued in the in-app connector instructions)

步骤 2 — 安装 adapter

git clone https://github.com/HelpCode-ai/anythingmcp.git
cd anythingmcp && docker compose up -d

步骤 3 — 在 Gemini 中添加连接器

Gemini CLI 从 ~/.gemini/settings.json (Windows: %APPDATA%\gemini\settings.json) 读取 MCP 服务器。添加:

{
  "mcpServers": {
    "anythingmcp": {
      "httpUrl": "https://cloud.anythingmcp.com/mcp",
      "headers": { "Authorization": "Bearer YOUR_MCP_API_KEY" }
    }
  }
}
  1. 从 AnythingMCP 获取你的 MCP API key
  2. 保存文件并重启 gemini
  3. 在 Gemini CLI 中运行 /mcpKlaviyo 应显示为可用。
  4. Vertex AI Studio: 将 https://cloud.anythingmcp.com/mcp 传入请求的 tools 数组,使用相同的 Bearer 头。

可用工具

ToolWhat it does
klaviyo_get_accountsReturn account info: id, name, contact_info, industry, locale, timezone, public_api_key (for client-side tracking)
klaviyo_list_profilesList profiles (paginated)
klaviyo_get_profileFetch one profile by ID
klaviyo_create_or_update_profileUpsert a profile by email, phone_number, or external_id (in that priority)
klaviyo_list_listsList all opted-in lists (newsletter subscriber lists)
klaviyo_add_profiles_to_listSubscribe profiles to a list (silent — does NOT send the double-opt-in email even on lists that require it; for double-opt-in respecting, us
klaviyo_subscribe_profilesSubscribe profiles to a list with CONSENT (triggers the double-opt-in email if the list requires it)
klaviyo_remove_profiles_from_listUnsubscribe profiles from a list
klaviyo_list_segmentsList dynamic segments
klaviyo_create_eventTrack an event on a profile — the cornerstone of Klaviyo's behavioral targeting
klaviyo_list_eventsList events with filters
klaviyo_list_metricsList metrics (event types) the account has seen
klaviyo_list_campaignsList email/SMS campaigns
klaviyo_list_flowsList flows (triggered automation sequences)

FAQ

Gemini 1.5 Pro 或 2.x 支持 MCP 吗? 支持 — Gemini CLI ≥ 0.4 与 Vertex AI tools API 均接受带 Bearer 头的 MCP httpUrl 连接器。

下一步

这份指南对您有帮助吗?

Ready to ship

Your Klaviyo agent is one click away.

Install the connector, paste the key, prompt Gemini. Free for 7 days, no credit card.

相关指南