Google AdSense MCP Server
by sirmackeio.github.SirMacke/adsense-mcpv0.2.0
Read AdSense Management API v2 accounts, inventory, payments, policy, and reports through MCP.
context tax
queued
security
queued
cold start
queued
freshness
Active17d ago
Install Google AdSense MCP server
Install in Claude Code
claude mcp add adsense -e ADSENSE_ACCESS_TOKEN='<adsense-access-token>' -e ADSENSE_CLIENT_SECRET='<adsense-client-secret>' -e ADSENSE_REFRESH_TOKEN='<adsense-refresh-token>' -- npx -y @sirmacke/adsense-mcpInstall in Cursor
{
"mcpServers": {
"adsense": {
"command": "npx",
"args": [
"-y",
"@sirmacke/adsense-mcp"
],
"env": {
"ADSENSE_ACCESS_TOKEN": "<adsense-access-token>",
"ADSENSE_CLIENT_SECRET": "<adsense-client-secret>",
"ADSENSE_REFRESH_TOKEN": "<adsense-refresh-token>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"adsense": {
"command": "npx",
"args": [
"-y",
"@sirmacke/adsense-mcp"
],
"env": {
"ADSENSE_ACCESS_TOKEN": "<adsense-access-token>",
"ADSENSE_CLIENT_SECRET": "<adsense-client-secret>",
"ADSENSE_REFRESH_TOKEN": "<adsense-refresh-token>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"adsense": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@sirmacke/adsense-mcp"
],
"env": {
"ADSENSE_ACCESS_TOKEN": "<adsense-access-token>",
"ADSENSE_CLIENT_SECRET": "<adsense-client-secret>",
"ADSENSE_REFRESH_TOKEN": "<adsense-refresh-token>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"adsense": {
"command": "npx",
"args": [
"-y",
"@sirmacke/adsense-mcp"
],
"env": {
"ADSENSE_ACCESS_TOKEN": "<adsense-access-token>",
"ADSENSE_CLIENT_SECRET": "<adsense-client-secret>",
"ADSENSE_REFRESH_TOKEN": "<adsense-refresh-token>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| ADSENSE_ACCESS_TOKEN | — | yes | Optional short-lived OAuth access token. |
| ADSENSE_CLIENT_ID | — | — | OAuth desktop client ID. Required when not using an access token. |
| ADSENSE_CLIENT_SECRET | — | yes | OAuth desktop client secret. Required when not using an access token. |
| ADSENSE_REFRESH_TOKEN | — | yes | OAuth refresh token. Required when not using an access token. |
| ADSENSE_ACCOUNT | — | — | Optional AdSense account resource name. The first accessible account is used when omitted. |
Freshness
Active — last maintenance signal 17d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-09-22 · 17d ago · GitHub
Latest release
no data · GitHub
Package published
no data · npm/PyPI
Registry entry updated
2026-09-22 · 17d ago · official registry · v0.2.0
FAQ
›How do I install the Google AdSense MCP server in Claude Code?
Run: claude mcp add adsense -e ADSENSE_ACCESS_TOKEN='<adsense-access-token>' -e ADSENSE_CLIENT_SECRET='<adsense-client-secret>' -e ADSENSE_REFRESH_TOKEN='<adsense-refresh-token>' -- npx -y @sirmacke/adsense-mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Google AdSense require an API key?
Yes. It expects ADSENSE_ACCESS_TOKEN, ADSENSE_CLIENT_SECRET, ADSENSE_REFRESH_TOKEN, of which 3 are secrets.
›Can I use Google AdSense as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Google AdSense in the official MCP registry?
Yes, as io.github.SirMacke/adsense-mcp.
Alternatives to Google AdSense
Other finance & fintech MCP servers.