Google AdSense for VS Code
io.github.sirmacke/adsense-mcp
Read AdSense Management API v2 accounts, inventory, payments, policy, and reports through MCP.
client:VS Code
transport:stdio
runtime:npm
Install Google AdSense in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "adsense-access-token",
"description": "ADSENSE_ACCESS_TOKEN",
"password": true
},
{
"type": "promptString",
"id": "adsense-client-id",
"description": "ADSENSE_CLIENT_ID",
"password": true
},
{
"type": "promptString",
"id": "adsense-client-secret",
"description": "ADSENSE_CLIENT_SECRET",
"password": true
},
{
"type": "promptString",
"id": "adsense-refresh-token",
"description": "ADSENSE_REFRESH_TOKEN",
"password": true
},
{
"type": "promptString",
"id": "adsense-account",
"description": "ADSENSE_ACCOUNT",
"password": true
}
],
"servers": {
"adsense-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@sirmacke/adsense-mcp"
],
"env": {
"ADSENSE_ACCESS_TOKEN": "${input:adsense-access-token}",
"ADSENSE_CLIENT_ID": "${input:adsense-client-id}",
"ADSENSE_CLIENT_SECRET": "${input:adsense-client-secret}",
"ADSENSE_REFRESH_TOKEN": "${input:adsense-refresh-token}",
"ADSENSE_ACCOUNT": "${input:adsense-account}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs