
Kampalo
com.kampalov0.3.0更新於 Oct 5, 2026
Google Ads, Meta Ads, GA4, Search Console and Shopify insights, alerts, ROAS rules and ad actions.
概覽
讓助理讀取同步的 Google Ads、Meta Ads、GA4、Search Console 與 Shopify 行銷資料,並執行 Kampalo 的警示、ROAS 規則與廣告暫停動作。
- 功能
- 連線到 Kampalo 代管的 MCP 伺服器,讀取同步的行銷資料,並產出 Google 與 Meta、SEO、GA4 及自然流量的比較簡報。它提供 automate_* 工具,可提議暫停成效不佳的廣告活動、確認該提議、建立廣告與 SEO 警示、建立試執行的 ROAS 自動化規則,以及產生報告 JSON。規則與警示的寫入僅限管理員,實際暫停需要以目錄為依據的提議並明確確認。
- 適用情境
- 當助理需要就 Kampalo 中的付費與自然行銷成效產出簡報,或管理 Kampalo 的警示與 ROAS 暫停規則時使用。它不用於連接廣告帳戶、變更預算、建立廣告活動,也不寫入 Shopify 或 TikTok 資料。
- 執行需求
- 遠端 streamable HTTP 端點 be.kampalo.com/mcp。驗證使用 Authorization Bearer 標頭,攜帶個人 Kampalo API 金鑰(KAMPALO_MCP_API_KEY)或營運方金鑰;Claude 外掛改用 OAuth 登入。除非個人金鑰已綁定使用者,工具還需要 Kampalo 的 user_id 或 user_email。需要能連線到 Kampalo 主機的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Kampalo,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"kampalo": {
"type": "http",
"url": "https://be.kampalo.com/mcp"
}
}
}README
Kampalo plugin for Grok Build
Grok Build plugin that connects to Kampalo’s hosted FastMCP server. Grok can read synced ads/SEO/GA4 data and run the automations Kampalo already has: pause proposals, ads/SEO alerts, ROAS pause rules, and report JSON.
This plugin does not add product APIs. It wires Grok to python manage.py run_mcp_server:
- Read tools from
marketing/agents/suites.py(synced Postgres) automate_*tools frommarketing/agents/automation_backend.py(same services as/api/marketing/actions/, alert rules, automation rules, reports)
In-app Kai (LangGraph) stays read-only. Only this MCP catalog has automate_*.
Installation
After the plugin is listed in the xAI marketplace, in Grok Build run /plugin, search Kampalo, and install.
Until then, install from the plugin repo:
Set KAMPALO_MCP_API_KEY to your personal kmp_… key from Kampalo Settings → API Keys (Starter and Enterprise). On first tool use Grok calls https://be.kampalo.com/mcp with Authorization: Bearer ….
Every tool also needs a Kampalo user_id or user_email. Ask the user if neither is known. A personal key already binds your user, so you can omit both.
Cursor
The same repo ships Cursor packaging next to the Grok files. Both use the same skills/ and the same MCP server.
-
Generate a key in Kampalo Settings → API Keys.
-
Set it in the environment Cursor starts from, then restart Cursor:
-
Install the plugin from this repo in Cursor. Check Settings → MCP shows
kampaloconnected, then ask: Brief Google vs Meta in Kampalo.
Without the plugin, the same server works from a project or user ~/.cursor/mcp.json by copying the kampalo entry from mcp.json.
Claude (claude.ai, Cowork, Claude Code)
The Claude plugin lives in claude/ and is what the Claude directory lists. It uses OAuth: Claude asks you to sign in to Kampalo the first time, so there is no KAMPALO_MCP_API_KEY to set. Its skills are a copy of skills/ without the user_id / user_email step, because the signed-in account is applied automatically. Keep both copies in sync when you edit a skill.
Install in Claude Code from this repo's marketplace (.claude-plugin/marketplace.json points at ./claude):
Run /mcp, choose kampalo, and sign in to Kampalo when prompted.
Network and credentials
The plugin talks only to that MCP host. It does not read local .env / SSH keys or send telemetry elsewhere.
Local Compose (docker compose up) exposes MCP at http://127.0.0.1:8100/mcp. To point Grok at it, override the server URL in .mcp.json for that session.
What Grok can do
With MCP up and a Kampalo user who can mutate data (admin, or enterprise manager/marketer) for confirms. Alert/automation rule writes are admin only.
- Brief Google vs Meta, SEO, GA4, and organic Page/IG from synced stats
- Propose pausing a weak selected campaign
- Confirm that proposal (
confirm=true) — writesPAUSEDto Google or Meta - Create ads alerts (ROAS / CPA / spend pace) and SEO/AEO alerts
- Create a dry-run ROAS automation rule; enable live only with
confirm_live=true - Generate a performance report JSON (no PDF bytes over MCP)
What it cannot do
- Connect OAuth, change budgets, create campaigns, or write Shopify/TikTok
- Pause without a catalog-backed proposal + explicit confirm
- Act as a view-only user for confirms or rule admin
- Invent metrics if MCP is down or the DB has no rows
Layout
Skills
Example prompts
Read
Use my Kampalo email
[email protected]. Brief Google vs Meta. Which campaigns have the worst ROAS?
Propose (no live pause)
Propose pausing the worst ROAS Google campaign. Do not confirm yet.
Expect automate_propose_pause and a pending action_id. The live campaign status must stay ENABLED.
Confirm (live pause)
Confirm pause for action
<id>.
Expect automate_confirm_action with confirm=true. Campaign becomes PAUSED (needs valid Google/Meta tokens).
Watchdog
Create a dry-run rule: pause Google campaigns if ROAS stays below 1 for 3 days with at least $10 spend. Do not enable live.
Expect automate_upsert_automation_rule with dry_run=true, is_active=false.
Failure
Stop MCP and ask again. The bot must not claim a pause or a saved rule.
xAI marketplace entry (when submitting)
Remote source, SHA-pinned. Do not vendor files into xai-org/plugin-marketplace. After pushing this folder to a public repo:
Add one object to their .grok-plugin/marketplace.json:
Then in that fork: python3 scripts/generate-plugin-index.py and python3 scripts/validate-catalog.py. xAI flags branded plugins sourced from a personal GitHub account — move the plugin repo under a Kampalo org before the PR if possible.
License
MIT
來源:README.md,提交 a7f261d
工具
0版本歷史
1- v0.3.0最新Oct 5, 2026


