Google AdSense

v0.2.0
io.github.SirMacke/adsense-mcp Checked 2 days ago Published 2 months ago

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

Values you need

VariableWhat it is
ADSENSE_ACCESS_TOKENoptional secret Optional short-lived OAuth access token.
ADSENSE_CLIENT_IDoptional OAuth desktop client ID. Required when not using an access token.
ADSENSE_CLIENT_SECREToptional secret OAuth desktop client secret. Required when not using an access token.
ADSENSE_REFRESH_TOKENoptional secret OAuth refresh token. Required when not using an access token.
ADSENSE_ACCOUNToptional Optional AdSense account resource name. The first accessible account is used when omitted.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add adsense-mcp -- npx -y @sirmacke/adsense-mcp@0.2.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "adsense-mcp": {
      "args": [
        "-y",
        "@sirmacke/adsense-mcp@0.2.0"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "adsense-mcp": {
      "args": [
        "-y",
        "@sirmacke/adsense-mcp@0.2.0"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "adsense-mcp": {
      "args": [
        "-y",
        "@sirmacke/adsense-mcp@0.2.0"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.adsense-mcp]
command = "npx"
args = ["-y", "@sirmacke/adsense-mcp@0.2.0"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: adsense_list_accounts, adsense_get_account, adsense_list_payments, adsense_list_child_accounts, adsense_get_ad_blocking_recovery_tag, adsense_list_alerts, adsense_list_policy_issues, adsense_get_policy_issue, ….
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json