IG

infrahark/gam-mcp

Developer tools
0 stars 0 forks Качество 64 Тренд 20

MCP server for Google Ad Manager — pull line item delivery, order revenue, ad unit performance, and inventory forecasts directly in Claude

Обзор

MCP server for Google Ad Manager. Pull line item delivery, order revenue, ad unit performance, and inventory forecasts directly in Claude. Add to your claude_desktop_config.json (Mac: ~/Library/Application Support/Claude/claude_desktop_config.json): A browser window will open. Sign in with the Google account that has access to your GAM network, click , and you're done. Your token and network code are saved locally and auto-refresh. gam-report-mcp includes a bundled OAuth client — no GCP project required. On first run it opens a browser for Google sign-in. Your token is saved at ~/.gam-report-mcp/tokens.json. Your GAM network code is detected automatically. If your account has multiple networks, you'll be prompted to pass --network-code. (optional): Download your OAuth credentials JSON and add --credentials-file /path/to/credentials.json to both the config args and the setup command. All tools accept ISO dates or natural language ("last 7 days", "this month", "today").

README

gam-report-mcp

MCP server for Google Ad Manager. Pull line item delivery, order revenue, ad unit performance, and inventory forecasts directly in Claude.

Quick start

Step 1 — Authenticate (run once in Terminal):

npx gam-report-mcp --setup

A browser window opens. Sign in with the Google account that has access to your GAM network and click Allow. Your token and network code are saved locally and auto-refresh.

Step 2 — Add to Claude:

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (create it if it doesn’t exist):

{
  "mcpServers": {
    "gam-report": {
      "command": "npx",
      "args": ["gam-report-mcp"]
    }
  }
}

Restart Claude Desktop. GAM tools will appear automatically.

Claude Code (CLI)

claude mcp add gam-report -- npx gam-report-mcp

Then restart Claude Code.

Authentication

gam-report-mcp includes a bundled OAuth client — no GCP project required. Your token is saved at ~/.gam-mcp/tokens.json and refreshes automatically.

Your GAM network code is detected automatically on first run. If your account has multiple networks you’ll be prompted to pass --network-code.

Using your own GCP credentials (optional): add --credentials-file /path/to/credentials.json to both the setup command and the config args.

Re-authenticate

npx gam-report-mcp --setup

Available tools

Tool What it returns
get_line_item_delivery Impressions, clicks, CTR, delivery % vs goal per line item
get_order_revenue Revenue, impressions, CPM per order/advertiser
get_ad_unit_performance Impressions, fill rate, revenue, RPM per ad unit
get_forecast Available, matched, possible impressions for a line item or ad unit

All tools accept ISO dates or natural language (“last 7 days”, “this month”, “today”).

Example prompts

  • “Show me line item delivery for this month”
  • “Which advertiser had the highest revenue last week?”
  • “What’s the fill rate on the homepage leaderboard?”
  • “How much inventory is available for line item 12345 in November?”

License

MIT

View this README on GitHub

Установка

npx gam-report-mcp

Конфигурация

{ "mcpServers": { "gam-report": { "command": "npx", "args": ["gam-report-mcp"] } } }