MCP Marketing Analytics
OfficialThis server provides MCP tools for discovering and querying marketing analytics data, with initial support for Google Ads. You can:
Health Check – Verify the server is running.
Data Source Discovery – Search and list available marketing data sources and their configuration requirements.
Account Discovery – List connected marketing accounts for a selected source (e.g., Google Ads accounts under your credentials).
Field Discovery – Browse and search available metrics and dimensions for a given data source.
Query Execution – Run analytics queries by specifying a source, accounts, fields, date range, and optional filters.
Result Retrieval – Fetch results of a previously executed query using a schedule ID.
Google Ads Integration – Uses real Google Ads API when OAuth credentials are configured; otherwise falls back on mock data for testing.
Provides tools for Google Ads account discovery, field discovery for metrics and dimensions, and data query execution against the Google Ads API.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Marketing AnalyticsPull last week's Google Ads performance by campaign"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Marketing Analytics
A minimal MCP server for marketing analytics data discovery and querying, starting with a Google Ads integration layer.
Features
Data source discovery
Google Ads account discovery
Field discovery for metrics and dimensions
Data query execution with mock fallback and real Google Ads support when configured
Related MCP server: Meta Ads MCP Server
Local setup
Install dependencies:
npm installCopy the environment template:
cp .env.example .envBuild the project:
npm run buildStart the server:
npm start
Testing with MCP Inspector
Run the inspector against the local server:
npx @modelcontextprotocol/inspector node dist/server.jsExample tool calls
Health check:
{
"name": "health_check",
"arguments": {}
}Discover sources:
{
"name": "data_source_discovery",
"arguments": {
"search": "google"
}
}Discover accounts:
{
"name": "accounts_discovery",
"arguments": {
"source": "AW"
}
}Discover fields:
{
"name": "field_discovery",
"arguments": {
"source": "AW",
"search": "cost"
}
}Run a query:
{
"name": "data_query",
"arguments": {
"source": "AW",
"accounts": ["1234567890"],
"fields": ["date", "campaign_name", "clicks", "cost"],
"dateRange": {
"start": "2026-07-01",
"end": "2026-07-07"
},
"filters": ["clicks > 100"]
}
}Retrieve query result:
{
"name": "get_query_results",
"arguments": {
"scheduleId": "schedule-123"
}
}Google Ads configuration
To enable the real Google Ads API flow, define these environment variables in your .env file:
GOOGLE_ADS_DEVELOPER_TOKEN=
GOOGLE_ADS_CLIENT_ID=
GOOGLE_ADS_CLIENT_SECRET=
GOOGLE_ADS_REFRESH_TOKEN=
GOOGLE_ADS_CUSTOMER_ID=
GOOGLE_ADS_LOGIN_CUSTOMER_ID=
GOOGLE_ADS_API_VERSION=v25
GOOGLE_ADS_MOCK_MODE=falseOAuth 2.0 setup for Google Ads
Create or select a Google Cloud project.
Enable the Google Ads API in the Google Cloud console.
Create OAuth 2.0 Client ID credentials for a desktop application.
Add the following OAuth scopes to the consent screen:
https://www.googleapis.com/auth/adwords
Use a redirect URI such as:
http://localhost
Complete the OAuth authorization flow and store the generated refresh token in
GOOGLE_ADS_REFRESH_TOKEN.Insert your Google Ads developer token and customer IDs in the environment variables above.
Recommended values for the environment file
GOOGLE_ADS_DEVELOPER_TOKEN: your Google Ads manager/developer token.GOOGLE_ADS_CLIENT_ID: OAuth client ID from Google Cloud.GOOGLE_ADS_CLIENT_SECRET: OAuth client secret from Google Cloud.GOOGLE_ADS_REFRESH_TOKEN: refresh token obtained after the OAuth flow.GOOGLE_ADS_CUSTOMER_ID: the Google Ads customer ID you want to query.GOOGLE_ADS_LOGIN_CUSTOMER_ID: the manager/customer ID used for login context, often the same as the customer ID.GOOGLE_ADS_API_VERSION: Google Ads API version; defaults tov25.GOOGLE_ADS_MOCK_MODE: opt-in demo data mode; keepfalsefor the real integration.
Local OAuth helper
A local helper is now included so you can complete the flow directly from this project.
Make sure your
.envcontainsGOOGLE_ADS_CLIENT_IDandGOOGLE_ADS_CLIENT_SECRET.Build the project:
npm run buildStart the OAuth helper:
npm run oauth:google-adsOpen the printed URL in your browser, approve the consent screen, and return to the terminal.
The helper will exchange the authorization code for tokens and print the response.
Example OAuth flow
If you want to test the flow manually, use the standard OAuth 2.0 desktop-app flow:
https://accounts.google.com/o/oauth2/v2/auth?client_id=YOUR_CLIENT_ID&redirect_uri=http://localhost:3000/callback&response_type=code&access_type=offline&scope=https://www.googleapis.com/auth/adwords&prompt=consentThen exchange the returned authorization code for a refresh token using the local helper above.
Important notes
The Google Ads API requires a valid developer token and OAuth credentials.
The current implementation uses mock data whenever the required credentials are missing.
Once the credentials are present, the server will attempt to call the real Google Ads API endpoints.
Connection diagnostics
Use the google_ads_connection_status MCP tool to verify production configuration
without returning credential values. Missing credentials now produce a clear error;
mock responses are used only when GOOGLE_ADS_MOCK_MODE=true.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
Alicense-qualityBmaintenanceMCP server that provides tools and resources for interacting with Google Ads API, enabling search, metadata retrieval, and account management through natural language.Last updated800Apache 2.0- Alicense-qualityDmaintenancePython MCP server that exposes Meta Marketing API data, providing tools to manage ad accounts, campaigns, and analytics through natural language interfaces.Last updatedMIT
- Alicense-qualityDmaintenanceMCP server for Google Ads campaign reporting and management via Claude, enabling GAQL queries, performance metrics, and campaign modifications.Last updated18MIT
- Alicense-qualityDmaintenanceA comprehensive Google Ads API integration for AI assistants through the Model Context Protocol. This server enables Claude AI and other MCP-compatible clients to manage Google Ads campaigns, analyze performance, and execute GAQL queries with natural language commands.Last updatedMIT
Related MCP Connectors
MCP server for Google search results via SERP API
MCP server for interacting with the Supabase platform
Hosted Amazon Seller Central and Amazon Ads MCP server for Claude, ChatGPT, Cursor, and agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/azuostech/MCPMarketing'
If you have feedback or need assistance with the MCP directory API, please join our Discord server