Skip to content
Grok

Google AdSense for Grok

io.github.sirmacke/adsense-mcp

Read AdSense Management API v2 accounts, inventory, payments, policy, and reports through MCP.

client:Grok transport:stdio runtime:npm

Install Google AdSense in Grok

.mcp.json (in your project root)

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "adsense-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@sirmacke/adsense-mcp"
      ],
      "env": {
        "ADSENSE_ACCESS_TOKEN": "<ADSENSE_ACCESS_TOKEN>",
        "ADSENSE_CLIENT_ID": "<ADSENSE_CLIENT_ID>",
        "ADSENSE_CLIENT_SECRET": "<ADSENSE_CLIENT_SECRET>",
        "ADSENSE_REFRESH_TOKEN": "<ADSENSE_REFRESH_TOKEN>",
        "ADSENSE_ACCOUNT": "<ADSENSE_ACCOUNT>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

Google AdSense in other clients