adstage
Settings

AI Assistants (MCP)

AdStage provides an MCP (Model Context Protocol) server. Add it as a connector in claude.ai, Claude Code or ChatGPT and your AI assistant can read attribution reports, saved reports, deep links, funnels, retention and the event catalog without opening the dashboard.

Before you start

  • You need an AdStage account that is a member of the organization you want to query.
  • Server URL: https://api.adstage.app/mcp (you can copy it from Settings > AI Assistants in the dashboard)

1. Security model

ItemDescription
PermissionsRead-only. Nothing can be created, changed or deleted.
OrganizationYou pick one or more organizations you belong to when you connect. Only those organizations' data is accessible; organizations you did not select (including ones you are not a member of) are never visible. With several organizations connected you name the organization in each question (see section 6).
AuthenticationOAuth 2.1 with PKCE. You sign in with your own AdStage account and approve the connection — no API keys are copied anywhere.
Token lifetimeAccess tokens live 1 hour and refresh tokens 30 days (replaced on every use); renewal is automatic. The connection itself expires 90 days after approval, after which your AI client asks you to approve it again.
DisconnectingDisconnect at any time under Settings > AI Assistants. Regardless of the expiry date, access also stops immediately when you are removed from an organization, when an organization admin removes that organization from your connection, or when your account or the organization is suspended.
DataQuery results are sent to the Anthropic/OpenAI conversation. Make sure this is acceptable under your company policy.

2. Connect from claude.ai

  1. Go to Settings > Customize > Connectors. The My items tab lists the connectors you added; Explore is the directory.
  2. Click Add > Add custom connector at the top right, name it AdStage, enter the server URL https://api.adstage.app/mcp and click Add. OAuth is detected automatically, so no key or token is entered. The connector then appears in the list as type Web · Custom.
  3. Click Connect on the connector. The AdStage sign-in page opens: sign in, tick the organizations to share (one or more; a single organization is selected automatically) and click Approve.
  4. In a chat, enable AdStage under + > Connectors and ask, e.g. "Compare last week's ad spend and ROAS by channel" or "Show daily installs this month". If you connected several organizations, name the one you mean (e.g. "TripTok ad spend by channel last week").

On Team/Enterprise plans an Owner adds the connector once under Organization settings > Connectors; each member then clicks Connect and approves with their own account.

3. Connect from Claude Code

claude mcp add --transport http adstage https://api.adstage.app/mcp

Run /mcp in a session to sign in; a browser window opens. Choose the organization(s), approve, and the tools become available.

4. Connect from ChatGPT

  1. Open Settings > Integrations > Plugins and click Add > Add MCP server at the top right (desktop-app UI since October 2026; in the older UI enable Developer mode under Settings > Connectors > Advanced and click Create).
  2. On Connect to custom MCP, name it AdStage, choose the type Streamable HTTP and enter the server URL https://api.adstage.app/mcp. If asked for an authentication method, choose OAuth (no key or token).
  3. Save and click connect / sign in: the AdStage sign-in, organization selection (one or more) and approval screens open.

5. Available tools

ToolPurpose
query_attribution_reportSpend, impressions, clicks, installs, conversions, revenue and ROAS grouped by date / channel / campaign / platform …
list_report_fieldsAvailable metrics, dimensions and filters
run_saved_report / list_saved_reportsRun reports saved in the dashboard
get_event_name_histogram / list_event_catalogEvent names and counts being collected
list_deeplinksDeep links and tracking links
list_funnels / get_funnel_reportFunnel definitions and step conversion
query_retention_reportCohort retention
list_ad_platform_integrationsConnected ad platforms
diagnose_tracking_setupCross-checks spend, platform clicks/conversions, tracked clicks, installs and purchases per channel, flags tracking-setup gaps (missing tracking link, lost web/app purchase attribution, cost not collected, consent gating where the platform reports conversions but the app sends no SDK events …) and returns fix steps with guide links
get_connection_infoOrganizations of this connection, currency, timezone and today's date
list_data_connectorsData Hub connectors and their connection status
get_connector_fieldsA connector's fields, accounts, date presets and filter operators
get_connector_datawindsor.ai-style query — fields, range and and/or filters, up to 500 rows per call (Data Hub > AI Analysis)
list_data_destinationsHow to send data to Sheets, Looker Studio, Power BI, Excel, Python, webhooks
get_connector_connect_urlDashboard link to connect a source

When a connection has more than one organization, every data tool requires an organization argument (organization slug or name) and every answer states which organization it refers to. With a single organization the argument may be omitted.

How to read the numbers: money is in the organization base currency; roas_*, ctr and cvr_* are percentages (x100); conversion_value_total includes organic revenue while roas_total uses paid-attributed revenue. Date presets end yesterday by default because today's data is still being collected.

6. Adding or switching organizations · disconnecting

  • Several organizations in one connection: disconnect under Settings > AI Assistants, click Connect again in your AI client and tick several organizations on the consent screen. Do the same when you later need one more organization (organizations cannot be added to an existing connection).
  • When asking: with several organizations connected, name the organization in the question (e.g. "TripTok ad spend by channel last week"). If you leave it out, the assistant either asks which one you mean or queries each connected organization and shows them separately; either way the server rejects a query with no organization (ORGANIZATION_REQUIRED), numbers are never mixed across organizations, and every answer states the organization it refers to. Within a conversation the assistant usually keeps using the organization you named earlier, so you rarely need to repeat it; name a different one when you switch. The server itself does not remember it (every tool call carries the organization), so in a new chat, or whenever the assistant asks again, just name the organization again.
  • All organizations at once: ask e.g. "Show last week's ad spend for every connected organization" and the assistant queries each organization separately and presents them side by side. One tool call covers one organization (there is no all-organizations query), and numbers are never merged across organizations unless you ask for a comparison. The scope is the organizations ticked for this connection that you are still a member of; anything else is rejected with ORGANIZATION_NOT_ALLOWED. Base currency and timezone can differ per organization, so ask for totals only when the currencies match (a total is added up by the assistant, not computed by the server). Ask "which organizations are connected?" to check the list.
  • One connection per organization if you prefer isolation per connector: Claude Code lets you register the same URL under different names (claude mcp add --transport http adstage-triptok https://api.adstage.app/mcp). claude.ai allows only one connector per URL, so use multi-select there.
  • Managing connections: each connection lists its organizations and an expiry date. You can disconnect your own connection entirely. Organization OWNERs/ADMINs see members' connections on the Organization connections tab and can remove their organization only from a connection; the other organizations stay, and if it was the last one the connection is revoked.
  • When the connector was deleted in the AI client: claude.ai does not tell AdStage when you delete a connector (no revocation call), so the connection row stays Active. The tokens were already discarded by the client, so this is not a security issue, but the list no longer matches reality: rows with an Unused for N days badge (no tool call for 14+ days) or a Reconnected — older connection badge (the same user connected again from the same client) should be disconnected here. Left alone, a connection expires after 30 days without use. Clients that do send a revocation call disconnect the whole connection immediately, whichever token they send.
  • Call history (checking an answer): the Call history button on a connection row lists every tool the assistant called with its conditions (organization, date range, metrics, dimensions, filters), the number of rows returned, the duration and any error code. View result shows the exact JSON the assistant received (kept for 30 days), and for report calls Open in dashboard opens the attribution report with the same conditions so you can compare the numbers one to one (when the dashboard's current organization is the organization of that call). Call records are kept for 90 days. Organization OWNERs/ADMINs see only their organization's calls on the Organization connections tab; platform admins see everything. The assistant's final wording never reaches the server, so it is not recorded — what is recorded is the data the server gave the assistant.
  • Expiry: a connection expires 90 days after approval. Click Connect again in your AI client to choose the organizations and approve again.

Platform administrators (AdStage super admins) can see every connection across all organizations under Admin > AI Assistant Connections and force-disconnect any of them. Tokens are invalidated immediately and the actor is recorded.

7. Troubleshooting

SymptomWhat to do
"Couldn't reach the MCP server"Check that the server URL is exactly https://api.adstage.app/mcp
The sign-in page keeps saying "Sign in required"Sign in to the dashboard again, then retry from your AI client. GAMEPOT dashboard accounts: open the AD+ tab once, then retry
"This request was started in a different browser"Approve in the same browser that started the connection from your AI client. Start the connection again
No eligible organizationYou are not a member of any active organization. Ask an organization OWNER or ADMIN to add you from Settings > User Settings (Add User > Invite existing user), then click Connect again
ORGANIZATION_REQUIRED in an answerThe connection spans several organizations, so the question must say which one. Ask again with the organization name (the assistant usually asks first or queries each organization separately)
ORGANIZATION_NOT_ALLOWED in an answerThat organization is not part of this connection (typo, not selected at approval, or you have since left it). Ask "which organizations are connected?" to check, or disconnect and Connect again to reselect
It suddenly asks you to sign in or approve againThe connection expired (90 days) or was not used for 30 days, it was disconnected (by you, an organization admin or a platform admin), its last remaining organization was removed, you no longer have an active membership in any of its organizations, or your account or the organization was suspended. Removing or leaving just one of several organizations does not sign you out: the connection keeps working for the others and questions about that organization return ORGANIZATION_NOT_ALLOWED. Click Connect again in your AI client

Table of Contents