Skip to main content
Glama
samtactical

google-ads-mcp

by samtactical

google-ads-mcp

Google Ads API 用の読み取り専用 MCP サーバーです。キャンペーン、広告グループ、キーワード、生のGAQLクエリなどのレポーティングツールを公開しているため、MCP クライアント(Claude Code、Claude Desktop など)から Google Ads アカウントをクエリできます。mutate/write ツールはありません — サーがキャンペーン、予算、入札を変更することはできません。

ツール

ツール

説明

list_accessible_customers

設定した認証情報でアクセスできる顧客 ID を一覧表示します。

get_account_hierarchy

マネージャー(MCC)アカウント配下のアカウントを一覧表示します。

list_campaigns

キャンペーンとその設定(指標なし)を一覧表示します。において

get_campaign_performance

キャンペーン単位の指標(インプレッション、ク リック、コスト、コンババージョン)を取得します。

get_ad_group_performance

広告グループ単位の指標を取得します。

get_keyword_performance

キーワード単位の指標を取得します。

run_gaql

読み取り専用の生の GAQL SELECT クエリを実行します。

前提条件

Google Ads API の認証情報が必要です。

  1. 認証に使用するマネージャー(MCC)アカウントの Google Ads API Center(ツールと設定 → API Center)から取得した developer token

  2. Google Ads API を有効にした Google Cloud プロジェクトから取得した OAuth2 の client ID / client secret

  3. ターゲットのアカウントに対するアクセス権を持つユーザーの refresh token。Google の OAuth デスクトップフローガイ を参照するか、google-ads Python ライブラリに同梱のヘルパースクリプトを実行してください。

  4. マネージャー(MCC)アカウントを介してクライアカルアントの代わりに認証する場合、その login_customer_id

設定

# from the repo root
pip install -e .

認証情報は次のいずれの方法で設定します。

オプション A: YAML ファイル

cp google-ads.yaml.example google-ads.yaml
# edit google-ads.yaml with your values

オプション B: 環境変数

cp .env.example .env
# edit .env, then export the variables into your shell environment

カレンとディレクトリの google-ads.yaml、ま たは GOOGLE_ADS_* 環境変数が自動的に読み込まれます。別の場場所の YAML ファイルを指定する場合は、GOOGLE_ADS_CONFIGURATION_FILE_PATH を設定してください。

単独実行

python -m google_ads_mcp
# or, after `pip install -e .`:
google-ads-mcp

サーバーは MCP 仕様に従って、stdio で通信します。

MCP クライアントへの登録

Claude Code(プロジェクトレベルの .mcp.json、または claude mcp で追加):

{
  "mcpServers": {
    "google-ads": {
      "command": "google-ads-mcp",
      "env": {
        "GOOGLE_ADS_CONFIGURATION_FILE_PATH": "/absolute/path/to/google-ads.yaml"
      }
    }
  }
}

Claude Desktop (claude_desktop_config.json) も同様です。

セキュリティ上の注意

  • このサーバーは GoogleAdsService.SearchStream を介して GAQL SELECT クエリのみを発行します。GAQL には INSERT/UPDATE/DELETE 構文がないため、 これらのツールを介して Google Ads のデータを変更することはできません。

  • google-ads.yaml.env をコミットしないでください。どちらも gitignore 対象です。developer token、OAuth client secret、refresh token は認証情報として扱ってください。

  • customer_id および エンティティ ID は、GAQL クエリ文字列に埋め込まれる前に数値として検証されます。

-
license - not tested
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

  • Google Ads, Meta (Facebook) Ads, GA4 and Merchant Center analysis in plain language. Read-only.

  • Read-only access to your VortexIQ store data: audits, KPIs, alerts, Brand DNA, reports, Ask VIQ.

  • Read-only MCP access to sessions, funnels, campaigns, errors, live visitors, and anomalies.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/samtactical/Google-ads-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server