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.
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:
- Sign in to Klaviyo → bottom-left avatar → Settings → API Keys → Create Private API Key.
- Set scopes — at minimum: Profiles (Full), Lists (Full), Segments (Read), Events (Full), Catalogs (Read), Campaigns (Read), Flows (Read).
- Copy the key. It's prefixed with
pk_. SetKLAVIYO_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" }
}
}
}
- 从 AnythingMCP 获取你的 MCP API key。
- 保存文件并重启
gemini。 - 在 Gemini CLI 中运行
/mcp—Klaviyo应显示为可用。 - Vertex AI Studio: 将
https://cloud.anythingmcp.com/mcp传入请求的tools数组,使用相同的 Bearer 头。
可用工具
| Tool | What it does |
|---|---|
klaviyo_get_accounts | Return account info: id, name, contact_info, industry, locale, timezone, public_api_key (for client-side tracking) |
klaviyo_list_profiles | List profiles (paginated) |
klaviyo_get_profile | Fetch one profile by ID |
klaviyo_create_or_update_profile | Upsert a profile by email, phone_number, or external_id (in that priority) |
klaviyo_list_lists | List all opted-in lists (newsletter subscriber lists) |
klaviyo_add_profiles_to_list | Subscribe 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_profiles | Subscribe profiles to a list with CONSENT (triggers the double-opt-in email if the list requires it) |
klaviyo_remove_profiles_from_list | Unsubscribe profiles from a list |
klaviyo_list_segments | List dynamic segments |
klaviyo_create_event | Track an event on a profile — the cornerstone of Klaviyo's behavioral targeting |
klaviyo_list_events | List events with filters |
klaviyo_list_metrics | List metrics (event types) the account has seen |
klaviyo_list_campaigns | List email/SMS campaigns |
klaviyo_list_flows | List flows (triggered automation sequences) |
FAQ
Gemini 1.5 Pro 或 2.x 支持 MCP 吗? 支持 — Gemini CLI ≥ 0.4 与 Vertex AI tools API 均接受带 Bearer 头的 MCP httpUrl 连接器。
下一步
这份指南对您有帮助吗?