# Supermetrics MCP Server — Full Reference for LLMs > Supermetrics MCP Server is a Model Context Protocol (MCP) server that connects AI agents and coding assistants to 174 marketing, advertising, analytics, e-commerce, CRM, and public data platforms. Query live data from Google Ads, Meta Ads, LinkedIn Ads, Google Analytics 4, TikTok Ads, Shopify, HubSpot, Salesforce, and more. ## Server Details - MCP endpoint: `POST https://mcp.supermetrics.com/mcp` - Direct tool invocation: `POST https://mcp.supermetrics.com/mcp/{tool_name}` - OpenAPI spec: `GET https://mcp.supermetrics.com/openapi.json` - Protocol: JSON-RPC 2.0 (MCP) or direct HTTP ## Platform MCP A separate MCP server at `/platform` manages a Supermetrics team's data pipeline setup through the Supermetrics Management API: data source logins and login links, custom fields, blends, account tags, Data Warehouse transfers, destinations and backfills. - MCP endpoint: `POST https://mcp.supermetrics.com/platform` - Direct tool invocation: `POST https://mcp.supermetrics.com/platform/{tool_name}` - It does not run reporting queries; the tools below are on `/mcp` only, and `/platform` has its own tool list. - Access is enabled per team. The team comes from your API key or token. - Documentation (tools, setup, approvals): `GET https://mcp.supermetrics.com/docs/platform` ## Authentication Bearer tokens in Authorization header: - **OAuth tokens** (recommended): `Authorization: Bearer otok_*` - OAuth authorization: `https://api.supermetrics.com/oauth/authorize` - OAuth token: `https://api.supermetrics.com/oauth/token` - Supports Dynamic Client Registration (DCR) and Client ID Metadata Document (CIMD) - **API keys**: `Authorization: Bearer api_*` - Create at: https://hub.supermetrics.com/api-key-management No pre-existing Supermetrics account is needed. A Supermetrics account with a 14-day free trial is created automatically on the first login — no credit card required. ## Compatible AI Clients Supermetrics MCP works with any MCP-compatible AI client, including: - Claude (Anthropic): https://claude.ai/directory/cc599e7b-8c59-4e89-9bf0-36d47bb9ec80 - ChatGPT: https://chatgpt.com/g/g-I0MDu3qBq-supermetrics-marketing-analytics - Google Gemini Enterprise: https://cloud.withgoogle.com/agentfinder/product/e978e9d5-2895-41e7-98a3-67e39af1cc45 - Microsoft Copilot: https://m365.cloud.microsoft/chat/?titleId=P_482b5243-c377-5a5d-d187-63349eb2d106 - Cursor, Windsurf, Cline, GitHub Copilot, n8n, Power Automate, Azure Logic Apps, Power Apps ## Core Workflow 1. `data_source_discovery()` — list all sources with auth status; pick one. 2. `data_source_discovery(ds_id=X)` — get its configuration: `has_account_list`, `has_fields`, `has_report_type_selection`, `is_date_range_required`, `report_types`, `common_settings`, `account_labels`. 3. Follow the config: - If `has_account_list` is true → `accounts_discovery(ds_id=X)` for account IDs. - If `has_report_type_selection` is true → select report type according to user's needs. - If a report type has `is_free_text_account_required` → a free-text identifier is needed (page alias, URL, profile name). Pass as `ds_accounts` (never via `settings`). - If `has_fields` is true → `field_discovery(ds_id=X)` for metrics and dimensions. - Fill in any required settings values based on the user's request or reasonable defaults. 4. `data_query(ds_id=X, ds_accounts=..., fields=..., settings={...})` — run the query. 5. `get_async_query_results(schedule_id=...)` — poll until results are ready. ## Available Tools ### data_source_discovery Browse available data sources and their capabilities including supported metrics, dimensions, report types, and configuration requirements. - No parameters required for full catalog - Pass `ds_id` to get detailed configuration for a specific source - Returns auth status, login links, account labels, and common settings ### field_discovery Explore available fields, metrics, and dimensions for a specific data source. - Required: `ds_id` (e.g., "FA" for Facebook Ads, "AW" for Google Ads, "GAWA" for GA4) - Optional: `field_type` ("dimension" or "metric") - Automatically detects currency and monetary fields - Returns field IDs, display names, descriptions, and compatibility info ### accounts_discovery Discover and validate connected accounts for a data source. - Required: `ds_id` - Returns account IDs, names, and access status - Use returned account IDs in `data_query` calls ### data_query Execute async data queries against the Supermetrics API. - Required: `ds_id`, `ds_accounts`, `fields` - Optional: `date_range_type`, `start_date`, `end_date`, `settings` (JSON object with report_type and other settings) - Returns `schedule_id` for async result retrieval - Pass `report_type` and all setting values inside the `settings` parameter ### get_async_query_results Retrieve results of data queries using schedule_id. - Required: `schedule_id` (from data_query response) - Poll until status is complete — do not stop on "scheduled", "queued", or "running" ### supermetrics_guide Explains what the server can do and what's new. - Optional: `mode` — `tour` (capabilities and how to get started) or `whats_new` (recent changes) - Call when the user is exploring, unsure what to ask, or asks what changed ### get_business_context Read the team reporting conventions saved for a scope, so they are applied consistently across sessions. - Scope with `ds_id` and `account_id`; saved context covers excluded campaigns, attribution windows, segmentation, naming - `tags` filters by category and matches any tag passed ### manage_business_context Save or delete team reporting conventions so they are applied consistently across sessions. - `action`: `save` or `delete` - Scope with `ds_id` and `account_id` - On `save`, use `mode` `replace` or `append` - Read the current context with `get_business_context` first ### marketing_utilities Build and check UTM-tagged campaign URLs — works without a connected data source. - Every action takes a list of `urls`. `utm_build` tags each URL with the same source/medium/campaign values; `utm_parse` checks each existing URL - Validates against your team's UTM conventions saved in business context (`tags='utm-conventions'`); falls back to best-practice defaults (lowercase, hyphens) otherwise - Preserves platform macros (`{campaignid}`, `{lpurl}`, `__CID_NAME__`) and flags `utm_medium` values GA4 would drop into "Unassigned" - `pagespeed_check`: Google PageSpeed Insights for up to 10 `urls` per call — performance/accessibility/best-practices/SEO scores, Core Web Vitals (lab and real-user) and top fixes; `strategy` MOBILE/DESKTOP, `detail` summary/full - `link_check`: follows up to 50 `urls` through HTTP redirects and reports whether UTM and click-id params (gclid, fbclid, msclkid, ttclid...) survive to the landing page, the hop where any were lost, broken final pages, loops and tagging mistakes. JavaScript and meta-refresh redirects are not followed - `web_vitals_trend`: real-user Core Web Vitals (LCP, INP, CLS, FCP, TTFB) from the Chrome UX Report for up to 50 sites or pages over about the last 6 months (mobile) — current p75 with good/needs improvement/poor rating, direction of change, and rating changes. A bare domain covers the whole site; low-traffic sites have no data - `safety_check`: for up to 50 `urls`, follows each redirect chain and checks every host for Google Web Risk malware/phishing flags, invalid or soon-expiring TLS certificates, and domains that expire within 60 days or were registered in the last 30. Returns ok / warning / critical per URL, with "unknown" where a source had no answer ### get_user_and_team Read the user profile, license details and team members; issue data source login links. - `get_info` returns name, email, team info, license status, expiration dates and team member user IDs - `get_prioritised_accounts` lists a data source's pinned accounts with the cap and monthly change quota - `login_data_source` issues a 24-hour login link for a data source ### manage_user_and_team Invite team members, assign subscription seats, and change a data source's prioritised accounts. - `invite_member` needs `email` and `role` - `add_user_to_subscription` needs `license_id` and `user_ids` from `get_user_and_team` - `set_prioritised_accounts` replaces the whole pinned set and uses the monthly change quota ### get_today Get current date information for query parameters. - Use when constructing custom date ranges - Helps resolve relative date references ("last month", "past 7 days") ### get_support_tickets List your Supermetrics support tickets, or read one ticket's thread by ID. - Only your own tickets are accessible - Check this before opening a new ticket ### contact_supermetrics Send product feedback, create a support ticket, submit a sales enquiry, or reply to an existing ticket. - Reply to an open ticket instead of creating a duplicate ### get_dashboards *(Beta)* List, read, or view the changelog of live, shareable dashboards in Supermetrics Studio. - `list` returns metadata only, newest first, with `filter`, `limit` and `offset` - `get` returns a dashboard's source code and metadata - `changelog` returns a dashboard's version history ### manage_dashboards *(Beta)* Publish or edit live, shareable dashboards in Supermetrics Studio. - Published dashboards get a link that re-queries the data on every view - Editing is incremental — only the parts you change are updated ### campaign_and_resource_get *(Beta)* Get campaign details, list campaigns, and explore related resources. - List campaigns with status filtering and detail levels (full, campaign, ad_group) - Campaign health checks with performance snapshots - Keyword research: idea generation and search volume lookups (Google Ads, Microsoft Ads) - Targeting catalog search and audience reach estimation - Asset library browsing, audience discovery, optimization recommendations - Campaign change history and conversion action discovery - Supported platforms: Google Ads, Meta Ads, Microsoft Ads, TikTok Ads, LinkedIn Ads, ChatGPT Ads ### manage_campaign *(Beta)* Create or update advertising campaigns, including ad groups and ads, in a single call. Omit `campaign_id` to create; pass it to update. (`campaign_create` and `campaign_update` remain as deprecated aliases.) - Full campaign creation with budget, targeting, bidding, and scheduling - Text ads (RSA), display ads, video ads, carousel ads, lead form ads - AI image generation from text prompts - Ad extensions: sitelinks, structured snippets, images - Campaigns are never created live (paused, or a draft on LinkedIn) for safe review before launch - Partial updates: only the fields you send are changed; enable, pause, or remove campaigns, ad groups, and ads - Supported platforms: Google Ads, Meta Ads, Microsoft Ads, TikTok Ads, LinkedIn Ads, ChatGPT Ads ### creative_picker *(Beta)* Browse, upload, AI-generate, or import ad creatives (images and video) for use in campaigns. - Interactive media picker for images and video - Returns an `upload_ref` to pass to `manage_campaign` creatives ### manage_social_media *(Beta)* Manage an Instagram business account (Instagram Insights connection) a LinkedIn company page (LinkedIn Company Pages connection) or a TikTok account (TikTok Organic connection): comments, publishing and scheduling. - List, reply to, hide and delete comments; top-level comments; comments on/off per post - Publish images, reels, carousels, stories and story sequences (up to 10 frames, consistent AI subject) - Alt text, user tags, collaborators, reel covers, trial reels - LinkedIn pages: text, link, image and multi-image posts (up to 20 images), comments and replies - TikTok: videos and photo posts (up to 35 photos) with privacy, comment, duet and stitch settings; comments and replies - Schedule posts, then list, reschedule or cancel them - Optional per-account approval before changes apply ### manage_audits_and_monitors *(Beta)* Run a one-off audit of one ad account, or create, update and run monitors that check marketing data on a schedule. - `audit`: one Google Ads (`AW`), Facebook Ads (`FA`), Snapchat Marketing (`SCM`), LinkedIn Ads (`LIA`), TikTok Ads (`TIK`) or Microsoft Ads (`AC`) account, last 7/14/30/90 days (default 30); returns a `run_token`. Takes a few minutes; the same audit on the same day returns the stored report - The report groups findings, most severe first, under seven angles: trust (can conversion tracking be relied on), delivery, waste, efficiency, allocation, change, upside. Not assessed: ad copy, creative, landing page relevance, search term intent, why numbers moved - Use `data_query` instead for a specific metric, custom dates, other data sources or several accounts - Monitors: `metrics`, `page_check` and `naming_convention` checks on `FA`, `AW`, `AC`, `LIA`, `GAWA` or `DBM` (`GAWA`: `metrics` only; `DBM`: `metrics` and `naming_convention`); hourly, every 6 hours, daily or weekly, depending on the data source; email or Slack notifications - `create` needs name, ds_id, account_ids, config and schedule; `update` takes monitor_id and only the fields to change; `run` runs a monitor now and waits for the result ### read_audits_and_monitors *(Beta)* Read audit reports and monitors. - `audit` waits for an audit and returns its report (`run_token` from `manage_audits_and_monitors`) - `list` returns your monitors; `get` one monitor's settings; `schema` the config a monitor type accepts, with an example. Metric and dimension ids in it come from `field_discovery` ## Supported Data Sources (174) The groups below list commonly used sources as a representative selection. For the complete, always-current list of all 174, call `data_source_discovery` or see https://mcp.supermetrics.com/datasources. ### Advertising Platforms AdRoll, Adform, Amazon Ads, Amazon DSP, Apple Search Ads, Axon by AppLovin, Basis, Beeswax, Capterra PPC, Criteo, Criteo Retail Media, DoubleVerify, Eskimi, Facebook Ads, Facebook Billing Data, Flashtalking, Google Ads, Google Ads Account Explorer, Google Ads Keyword Planner, Google Campaign Manager 360, Google Display & Video 360, Google Search Ads 360, IQM, Integral Ad Science, Kwai Ads, LINE Ads, Lazada Ads, Liftoff, LinkedIn Ads, LiveIntent, MNTN, Microsoft Advertising (Bing), Moloco DSP, Nexxen DSP, Nielsen Digital Ad Ratings, Outbrain Amplify, Outbrain DSP (Zemanta), Pinterest Ads, Quantcast, Quora Ads, RTB House, Rakuten Advertising, Readpeak, Reddit Ads, Shopee Ads, Snapchat Marketing, Spotify Ads, StackAdapt, Taboola, Teads, The Trade Desk, TikTok Ads, Vibe, Walmart Connect (Display), Walmart Connect (Search), X Ads (Twitter), Xing Ads, Yahoo DSP, Yahoo! Japan Display Ads, Yahoo! Japan Search Ads, Yandex.Direct ### Analytics & SEO Adobe Analytics, Adobe Analytics 2.0, Ahrefs, Amplitude, Bing Webmaster Tools, Google Analytics 4, Google PageSpeed Insights, Google Search Console, Google Trends, Hotjar, Matomo, Mixpanel, Piano Analytics (AT Internet), Piwik PRO, Plausible, Semrush Analytics, Semrush Projects, Similarweb, Yandex.Metrica ### Social Media Facebook Insights, Facebook Public Data, Instagram Insights, Instagram Public Data, LinkedIn Company Pages, Pinterest Organic, Pinterest Public Data, Slack, Smarp, Snapchat Marketing, Sprout Social, Threads Insights, TikTok Organic, Vimeo Public Data, X Organic (Twitter), YouTube, YouTube Public Data ### E-Commerce Adobe Commerce (Magento 2), BigCommerce, Centra, Ecwid, Lazada Commerce, PrestaShop, Prisjakt, Recharge, Shopee Commerce, Shopify, Shopware, Squarespace Commerce, Stripe, TikTok Shop, Wix Commerce, WooCommerce ### CRM & Marketing Automation ActiveCampaign, Brevo, Campaign Monitor, Close CRM, Eloqua, HubSpot, HubSpot Contacts, HubSpot Marketing Emails, HubSpot Marketing Forms, Klaviyo, MailChimp, Marketo, Odoo CRM, Omnisend, Pipedrive, Salesforce, Zoho CRM ### Affiliate & Partner Marketing Adtraction, Affluent, Awin, CJ Affiliate, Everflow, Impact, Partnerize, Tradedoubler ### App Analytics & Attribution Adjust, AppsFlyer, Branch, Google Play Console, Google Play Reviews, Apple Public Data ### Review Platforms Capterra Reviews, G2 Reviews, Glassdoor Reviews, Google Play Reviews, Indeed Reviews, Tripadvisor Reviews, Yelp Reviews, Yext ### Other Platforms 8x8, Bambuser, CallRail, Celtra, Clockify, Data Blending, Gong, Google Ad Manager, Google AdSense, Google BigQuery, Google Merchant Center, Google My Business, Google Sheets, Google Sheets (Legacy), Harvest, Ignite, Meltwater, Simplesat, Snowflake, Snowflake (Legacy), Sprinklr ### No-Auth Sources (Easy Start) These fetch publicly available data — no authentication needed: - Facebook Public Data: page data, follower numbers, posts and engagement for any public Facebook page - Apple Public Data: app ratings, reviews, top lists by country - Instagram Public Data, Pinterest Public Data, YouTube Public Data, Vimeo Public Data, X Organic (Twitter) Great for competitor monitoring and quick demos. ## Common Use Cases - Pull Google Ads spend, CPC, ROAS, and conversion data for performance analysis - Compare Meta Ads (Facebook Ads) campaign performance across ad sets - Build automated marketing dashboards combining multiple data sources - Analyze LinkedIn Ads lead gen form submissions and cost per lead - Track TikTok Ads ROAS and audience engagement metrics - Monitor Shopify revenue, orders, and product performance - Query HubSpot contact and deal pipeline data - Review Google Analytics 4 traffic sources and user behavior - Research keywords and audiences for new ad campaigns - Create and manage ad campaigns across platforms from AI chat - Monitor competitor social media performance using public data sources - Export marketing data for analysis in Jupyter notebooks or spreadsheets - Build automated weekly reporting pipelines with n8n or Power Automate ## Important Rules for AI Agents - Never fabricate data — only present actual values from tool responses. - Never invent setting keys or field IDs — only use values returned by discovery tools. - Use field IDs from `field_discovery`, not display names. - When using `date_range_type='custom'`, call `get_today` first to resolve relative dates. - After `data_query` returns a `schedule_id`, poll `get_async_query_results` until results arrive — do not stop on "scheduled", "queued", or "running". - When presenting monetary values, use one currency identifier (symbol or code, not both). ## Links - Supermetrics Hub: https://hub.supermetrics.com/ - Knowledge base: https://docs.supermetrics.com/ - Data source documentation: https://docs.supermetrics.com/docs/connect - Pricing: https://supermetrics.com/pricing - Terms of service: https://supermetrics.com/terms-of-service - Privacy policy: https://supermetrics.com/privacy-policy