Google AdSense
v0.2.0Read AdSense Management API v2 accounts, inventory, payments, policy, and reports through MCP.
Values you need
| Variable | What it is | |
|---|---|---|
ADSENSE_ACCESS_TOKEN | optional secret | Optional short-lived OAuth access token. |
ADSENSE_CLIENT_ID | optional | OAuth desktop client ID. Required when not using an access token. |
ADSENSE_CLIENT_SECRET | optional secret | OAuth desktop client secret. Required when not using an access token. |
ADSENSE_REFRESH_TOKEN | optional secret | OAuth refresh token. Required when not using an access token. |
ADSENSE_ACCOUNT | optional | 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.0Add 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
- 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).
- Restart or reload the client so it starts the server.
- 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, ….
- 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