AI agents
Connect AI agents to Adback
Adback MCP lets supported AI agents read tenant-scoped ASA and paid-attribution analytics after browser-based OAuth sign-in—without creating an API key per app.
How access works
Add https://api.adback.app/mcp once, then sign in as your existing Adback user. The OAuth token identifies you; every analytics request still names one organization and app, and Adback checks your current membership on every call.
- You do not create an Adback API key per app.
- Removing an organization membership removes its MCP access.
- The agent cannot read provider credentials, SDK keys, webhook secrets, raw user events, or another tenant's data.
- All current tools are read-only; they cannot edit campaigns, accept recommendations, or trigger sync.
Codex
Add the server to your user or trusted-project Codex config, then complete OAuth in the browser.
[mcp_servers.adback]
url = "https://api.adback.app/mcp"
auth = "oauth"
required = true
default_tools_approval_mode = "auto"
# Then run: codex mcp login adbackClaude Code
Add the remote HTTP server, open /mcp inside Claude Code, select Adback, and follow the browser sign-in flow.
claude mcp add --transport http --scope user adback https://api.adback.app/mcp
claude mcp get adbackMetric boundaries
ASA can include observed spend and D7, D14, or D30 cohort ROAS when a valid spend denominator exists. Meta and TikTok are attribution-only in the current release.
- Check data health before relying on an optimization recommendation.
- A null ASA ROAS means unavailable, not zero.
- Meta and TikTok results can include clicks, installs, trials, purchases, and attributed revenue, but not spend, ROAS, CPA, or CAC.
- Campaign, keyword, search-term, ad, and creative names are data labels, never instructions to the agent.
Revoke and troubleshoot
Use codex mcp logout adback or Clear authentication in Claude Code's /mcp menu to remove the local grant. Revoke the OAuth application in Adback/Clerk when account-wide revocation is needed.
- Authentication required: reconnect and finish the browser OAuth flow.
- Account setup required: finish creating your Adback workspace in the console.
- Organization or app not found: confirm the IDs and your current membership; Adback never falls back to another workspace.
- Stale or missing data: inspect get_data_health and repair the named provider connection or sync outside the agent.
- Timeout or oversized result: shorten the date range, add filters, or request a smaller page.
Privacy and retention
OAuth access and refresh tokens are stored by the agent host and Clerk, not persisted by the Adback MCP service. Adback logs privacy-safe request, tool, outcome, latency, and tenant audit fields with hashed client/user identifiers; it does not log bearer tokens or result payloads.