Skip to content
Cursor

Google AdSense for Cursor

io.github.sirmacke/adsense-mcp

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

client:Cursor transport:stdio runtime:npm

Install Google AdSense in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

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>"
      }
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

Google AdSense in other clients