Gadschain

io.github.SnipMCP由 GitHub 账号 SnipMCP 发布v0.1.1更新于 Oct 27, 2026

Google Ads MCP server. Read campaigns, manage budgets, pause/enable, add negative keywords.

已验证STDIO仅桌面数据与分析商业与电商

概览

AI 生成的概览

本地运行的 MCP 服务器,让助手读取并调整 Google Ads 广告系列:预算、暂停/启用状态和否定关键词。

可以做什么
  • 列出广告系列,并按花费与转化指标查看搜索词
  • 以美元为单位修改广告系列每日预算
  • 暂停或启用广告系列
  • 为指定广告系列添加否定关键词并选择匹配类型
  • 返回结构化、已清洗的结果,出错时给出可读的错误信息而非原始 API 数据
适用场景
适合日常 Google Ads 账户运营:找出浪费预算的广告系列或搜索词、调整预算、暂停或恢复广告系列、添加否定关键词,都可以在对话中完成。
运行要求
以 Python 包在本地运行(pip 安装,或用 Docker)。需要通过环境变量提供 Google Ads API 凭据:GOOGLE_ADS_DEVELOPER_TOKEN、GOOGLE_ADS_CLIENT_ID、GOOGLE_ADS_CLIENT_SECRET、GOOGLE_ADS_REFRESH_TOKEN,以及 GOOGLE_ADS_LOGIN_CUSTOMER_ID 和 GOOGLE_ADS_CUSTOMER_ID。需要访问 Google Ads API 的网络连接。
安装前请注意
需要开发者令牌、OAuth 客户端凭据和刷新令牌,这些凭据可访问真实广告账户,请勿写入日志或共享配置。修改预算、暂停/启用和添加否定关键词都会写入真实账户,可能影响实际花费。README 还推广了付费的托管云服务。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Gadschain,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

GadsChain

The AI layer between your Google Ads account and your marketing decisions.

Battle-tested. Six tools cover the daily-ops loop — campaign listing, search-term review, budget tuning, pause/enable, and negative-keyword grooming. All responses are strict Pydantic models. No raw protobuf reaches the agent.

[GadsChain Demo]

☁️ Moving to production?

The open-source server runs locally with your own API keys. For hosted infrastructure with multi-account failover, SLA guarantees, and webhook alerts — join the managed cloud waitlist.

The Problem

Raw Google Ads API returns thousands of rows. One bad campaign structure bleeds budget silently. GadsChain reads, sanitizes, and acts on your ad data before waste compounds.

Installation

bash
git clone https://github.com/SnipMCP/gadschain.gitcd gadschainpip install -e ".[dev]"cp .env.example .env

Or with Docker:

bash
docker-compose up --build

Configuration

env
GOOGLE_ADS_DEVELOPER_TOKEN=your_developer_token_hereGOOGLE_ADS_CLIENT_ID=your_oauth_client_id_hereGOOGLE_ADS_CLIENT_SECRET=your_oauth_client_secret_hereGOOGLE_ADS_REFRESH_TOKEN=your_refresh_token_hereGOOGLE_ADS_LOGIN_CUSTOMER_ID=1234567890   # MCC (manager), digits onlyGOOGLE_ADS_CUSTOMER_ID=1234567890         # default operating accountGOOGLE_ADS_API_VERSION=v24LOG_LEVEL=INFO

Usage

Three example prompts to send to Claude (or any MCP-compatible agent):

  1. Use get_campaigns to show me which campaigns are bleeding budget this month
  2. Run get_search_terms for the last 30 days and tell me which queries are wasting spend
  3. Add "free", "cheap", "jobs" as negative keywords to campaign 12345

Run it in two terminals

bash
# Tab 1 — start the MCP serverpython -m gadschain.server
bash
# Tab 2 — call a tool from a Python shell or your MCP client# Tool signatures:#   get_campaigns(customer_id=None)#   get_search_terms(customer_id=None, days=30, campaign_id=None)#   update_budget(campaign_id, new_budget_dollars, customer_id=None)#   pause_campaign(campaign_id, customer_id=None)#   enable_campaign(campaign_id, customer_id=None)#   add_negative_keywords(campaign_id, keywords, match_type="BROAD", customer_id=None)

How it works

Three layers between raw Google Ads output and your model:

Google Ads API → [Fetch] → [Transform] → [Act] → MCP Tool → AI Agent                  GAQL      micros→$       safe                  queries   enum→str       mutations                            CTR→%          shared-budget guard
  • Fetch: Targeted GAQL queries — only the columns the daily-ops loop actually needs. No SELECT *, no protobuf pagination footguns.
  • Transform: Currency micros divided to dollars, CTR scaled to percent, enums to human strings, every nested attribute lookup tolerates missing fields without crashing.
  • Act: Mutations route through guard rails — REMOVED blocked on status changes, shared budgets refused (shared_budget_refused), match types validated before any mutate call. The agent never gets an exception; it gets a structured {"error": ..., "message": ...} it can reason about.

Real numbers from a live Franka Pizzeria account (28-day window)

RAW GOOGLE ADS PAYLOAD          GADSCHAIN OUTPUT─────────────────────────────────────────────────Impressions:    3,389           Spend (28d):      $51.41Clicks:         163             Conversions:      3 ($17.14 each)CTR:            4.81%           Conv. rate:       1.84%Cost/click:     $0.32 avg       Surface:          Display Network waste                                                  identified on Fridays                                                  ($0.11 CPC vs $0.44 avg)

In one read of a real account, GadsChain surfaced $51.41 spent over 28 days for 3 conversions at $17.14 each — a 1.84% conversion rate hidden inside a 4.81% CTR that looks healthy on paper. The Display Network was the silent culprit, with Friday clicks averaging $0.11 CPC vs the $0.44 search-side average — cheap junk traffic inflating CTR while contributing nothing to conversions. The agent saw it because the transformed payload made channel attribution legible instead of buried in protobuf.

Roadmap

  • Managed cloud tier (hosted, multi-tenant, webhook alerts)
  • Phase 2: ChatGPT REST shim (FastAPI surface over the same six tools)
  • Bid-strategy tuning tools (target CPA, target ROAS)
  • Anomaly alerts on cost-per-conversion drift

Contributing

PRs welcome. Run pytest before submitting.

来源:README.md,提交 c95819c

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分