MCP Setup · Claude Desktop

Connect Claude Desktop to Admaxxer

Anthropic's desktop app — native MCP.

Use Claude Desktop on macOS or Windows. Paste the snippet, restart the app, and Claude can read your campaigns, revenue, and attribution.

Setup walkthrough

1 Generate an MCP token in Admaxxer

Sign in to Admaxxer and open Settings → AI Providers → MCP. Click 'Generate MCP token'. Copy the token immediately — we only store a SHA-256 hash, so the plaintext is shown exactly once. Save it somewhere safe; if you lose it, generate a new one.

2 Open the Claude Desktop config file

On macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`. On Windows: `%APPDATA%\Claude\claude_desktop_config.json`. Create the file if it doesn't exist (Claude Desktop only reads it on startup).

code ~/Library/Application\ Support/Claude/claude_desktop_config.json

3 Paste the Admaxxer MCP server config

If the file is empty, paste this whole block. If it already has `mcpServers`, just add the `admaxxer` key inside the existing object. Replace the placeholder with the token you copied in step 1.

{
  "mcpServers": {
    "admaxxer": {
      "url": "https://admaxxer.com/mcp/sse",
      "transport": "sse",
      "headers": {
        "Authorization": "Bearer mcp_ADM_<paste_token_here>"
      }
    }
  }
}

4 Restart Claude Desktop

Fully quit (Cmd-Q on macOS) and reopen — Claude Desktop only reads the config on launch. The 6 `admaxxer_*` tools should now appear in the tool picker.

5 Verify the connection

Ask your AI 'What ad accounts do I have connected?' If it lists your Meta + Google connections, you're done. If it says it doesn't have access to that information, see the Troubleshooting section below — most often a stale config or an unrestarted client.

Try these prompts after setup

Once Claude Desktop is connected, ask it any of these — the answers come straight from your Admaxxer workspace.

Pro tip: Pin the Admaxxer connection in Claude Desktop's MCP server list — that way it's available without having to enable it per-conversation.

Tools your AI can call

Admaxxer's MCP server exposes 6 tools. Read tools run automatically; write tools (pause / update_campaign) require explicit user confirmation in Admaxxer.

admaxxer_list_connectionsread

Lists every Meta + Google ad-platform connection in the workspace, with status (healthy / token expired / disabled), platform, and account label. Used by the AI to discover which connections to query for insights.

Example prompt: “What ad accounts do I have connected?”

admaxxer_list_campaignsread

Lists active or paused campaigns for a given connection (Meta or Google). Returns campaign ID, name, objective, status, daily budget, and lifetime spend.

Example prompt: “Show me all my Meta campaigns sorted by spend.”

admaxxer_get_campaign_insightsread

Pulls metrics for one campaign over a date range — impressions, clicks, spend, conversions, ROAS, CPA. Optional breakdowns by age, gender, device, region.

Example prompt: “How did campaign 'BFCM Scale' perform last week?”

admaxxer_get_account_insightsread

Account-level rollup of insights across all campaigns for a connection. Optional breakdowns. Best for high-level ROAS / spend trends.

Example prompt: “What's my Meta account ROAS for the last 30 days?”

admaxxer_query_metricsread

Runs a whitelisted Tinybird analytics pipe (visitors, revenue, MER, LTV, MMM, attribution, forecast). The workspace_id is injected server-side — the AI cannot see another workspace's data.

Example prompt: “What's my blended MER for the last 14 days vs the prior 14 days?”

admaxxer_get_workspace_contextread

Returns the workspace's plan tier, currency, time zone, connected platforms, and last-sync timestamps. Useful for the AI to ground its answers.

Example prompt: “What plan am I on and when was my data last synced?”

Troubleshooting

401 Unauthorized when the client first connects

Your token has been revoked or expired. Open Admaxxer → Settings → AI Providers → MCP and generate a fresh token. Replace the value in your client's config file and restart the client.

The Admaxxer tools don't show up in the tool picker

Most MCP clients only read the config file at startup. Fully quit the client (not just close the window) and reopen it. In Cursor, Cmd-Shift-P → Reload Window. In Claude Desktop, Cmd-Q then relaunch.

Rate-limit errors on heavy questions (HTTP 429)

Tinybird-backed pipes are rate-limited per token to protect the analytics layer. Spread the call out (`for the last 7 days` instead of `the last 90 days hourly`) or wait 30 seconds and retry. Free workspaces share a tighter bucket than paid.

Tool result says 'Connection does not belong to this workspace'

You issued the MCP token from a workspace that doesn't have the ad connection wired up. Switch to the right workspace in Admaxxer (top-left switcher), reissue the token, and update the client config.

Destructive tool calls (pause / update_campaign) aren't running

By design — write tools require explicit confirmation in Admaxxer's UI. Open `/chat` in Admaxxer; the agent will surface a confirm card with the exact action. The same confirmation flow applies to MCP-initiated writes.

Ready to connect?

Generate an MCP token in Admaxxer, paste it into Claude Desktop's config (~/Library/Application Support/Claude/claude_desktop_config.json (macOS) · %APPDATA%\Claude\claude_desktop_config.json (Windows)), and your AI is wired into every ad account in this workspace.

Generate your MCP token