Setting Up AI Connectors (MCP)

docs@attribution.aiReviewed 2026-04-28Status published
<!-- Keep tool references aligned with lib/mcp/tool-registry.ts -->

Connect Claude, ChatGPT, or Gemini to your data

Attribution.ai connects directly to Claude, ChatGPT, and Gemini so you can ask questions like "How is Meta performing this week?" or "Which channel has the worst incremental ROAS?" and get answers grounded in your actual marketing data — no spreadsheets, no copy-paste.

This is the AI connector setup guide. You don't need to be a developer to follow it.

Before you start

You'll need:

  • An Attribution.ai account with at least one connected channel (Shopify, Amazon, etc.).
  • A paid Claude, ChatGPT, or Gemini account that supports custom connectors. Free tiers don't have this feature on most providers as of April 2026.

If you're not sure whether your AI plan supports custom connectors, search the provider's docs for "MCP" or "custom connector" — that's the underlying protocol Attribution.ai uses.


Easiest path — one-click connect from the dashboard

The fastest way to connect is from inside Attribution.ai:

  1. Open Settings → API & AI in the dashboard, or visit /dashboard/settings/api.
  2. Find the AI you want to connect — Claude, ChatGPT, or Gemini.
  3. Click Connect.
  4. A new tab opens to the AI provider; sign in if needed and approve the connection.
  5. You're redirected back to Attribution.ai with a green confirmation. That's it.

This route uses OAuth, so there are no API keys to copy and no expiration to babysit.

Connecting from your phone

If you started this on your laptop but want to finish on your phone (or vice versa), the connector page shows a QR code next to each provider. Scan it with your phone's camera and the connection link opens directly on the device — including the AI provider's mobile app if it's installed.


Step-by-step in each AI client

If your client doesn't pick up the connection automatically, here's how to set it up by hand.

Claude

  1. Open Claude (web or desktop).
  2. Click your name → Settings → Connectors.
  3. Choose Add custom connector.
  4. Server URL: https://attribution.ai/api/mcp/rpc
  5. Choose OAuth when asked for the auth method, sign in to Attribution.ai when prompted, and approve the data scopes.
  6. Open a new chat and ask: "What tools do you have available from Attribution.ai?" You should see a list of analytics, attribution, and operations tools.

ChatGPT

  1. Open ChatGPT and go to Settings → Connectors (Plus / Team / Enterprise plans).
  2. Add a connector with server URL https://attribution.ai/api/mcp/rpc.
  3. Complete the OAuth flow when ChatGPT redirects you to attribution.ai.
  4. Start a new chat with the connector enabled and try a real question, like "How did Meta spend perform last week vs the prior week?".

Gemini

  1. Open Gemini → Connectors / Extensions.
  2. Add server URL https://attribution.ai/api/mcp/rpc.
  3. Authenticate via OAuth when prompted.
  4. Confirm by asking "List the Attribution.ai tools available." — Gemini should respond with a tool inventory.

If any of these screens look different from what's described, the providers update their UIs frequently — search the provider help center for "custom connector" or "MCP server".


What the AI can actually do

Once connected, the AI can answer questions about:

  • Performance — channel-level revenue, spend, ROAS, customer counts.
  • Attribution — which channels touched a conversion, decay, blended views.
  • MMM — channel contribution, response curves, budget shift simulations.
  • Incrementality — running and recent lift tests, iROAS, confidence intervals.
  • Surveys — recovered demand, post-purchase signals.
  • Operations — sync status, integration health, recent activity.

The AI sees the same data you do in the dashboard — nothing more, nothing less. If a teammate has read-only access in your workspace, their AI connector will be read-only too.


Quick troubleshooting

  • "Could not connect" or "Authentication failed" — make sure you're signed in to Attribution.ai in the same browser, then retry the OAuth flow.
  • "No tools available" — refresh the AI client. Some providers cache the tool list for a few minutes.
  • "The data looks empty" — your AI is connected, but your workspace has no data for the date range you asked about. Check Settings → Integrations to confirm syncs are healthy, or ask the AI: "What's my earliest and latest data point?"

If none of these work, email support@attribution.ai with the AI client name and a screenshot of the error and we'll dig in.


For developers

Most users can stop reading here. The rest of this page is for engineers building custom MCP clients or scripted integrations.

Endpoint

  • POST https://attribution.ai/api/mcp/rpc
  • Protocol: JSON-RPC 2.0 over HTTP
  • Auth: OAuth 2.1 + PKCE (preferred) or bearer API key

OAuth discovery

  • GET https://attribution.ai/.well-known/oauth-authorization-server
  • GET https://attribution.ai/.well-known/oauth-protected-resource

When to use API keys instead of OAuth

  • Automation scripts and CI jobs
  • Backend-to-backend pipelines
  • Clients that don't support OAuth + PKCE

Create one in Settings → API & AI and pass it as Authorization: Bearer atai_.... Keys are shown once at creation; rotate per-integration.

Tool families

Discoverable via tools/list at runtime, or browse /developers/mcp/tools in the app:

  • discovery and documentation: discover, explain, ask
  • analytics: performance, campaigns, trends, customers, surveys, products
  • planning and analysis: optimization, experiments, insights, compare
  • operations: manage, diagnose, influencers

Error codes

  • 401 Unauthorized — token/key is invalid, revoked, or expired.
  • 429 Rate limited — back off with exponential delay.
  • 400 Bad request — confirm endpoint is /api/mcp/rpc and payload is JSON-RPC 2.0.
  • No data returned — verify the workspace has synced data for the requested range.

Security

  • Create one key per integration. Don't share keys across services.
  • Store keys in environment variables or a secrets manager. Never commit them.
  • Read-only scoped credentials cannot perform write actions; use them by default.
  • Revoke a key immediately on exposure.

Related articles