MCP Server for Google Ads Meta Ads GA4
Integration with Google Ads API for managing advertising campaigns, ad groups, keywords, and performance tracking.
Integration with Meta Ads API for managing Facebook and Instagram ad campaigns, ad sets, and analytics.
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 Server for Google Ads Meta Ads GA4Generate a Google Ads campaign for winter sale using GA4 audience data"
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 Server for Google Ads, Meta Ads & GA4
Connect Claude, Cursor, and any MCP-compatible AI agent directly to your ad platforms. Stop switching tabs. Stop copy-pasting spreadsheets. Let your AI read, analyze, and optimize your Google Ads, Meta Ads, and GA4 data β all from a single conversation.
π― The Problem
Performance marketers, agencies, and growth teams waste hours every week on:
Manual campaign analysis β logging into Google Ads, Meta Business Suite, and GA4 separately to check what's working.
Context switching β jumping between dashboards, spreadsheets, and Slack to piece together a coherent picture.
Delayed reactions β underperforming campaigns and budget waste go unnoticed until the weekly report lands (too late).
Repetitive reporting β rebuilding the same performance decks every Monday morning.
Your AI assistant (Claude, Cursor, etc.) is brilliant β but it has zero visibility into your ad accounts. Until now.
Related MCP server: Meta Marketing API MCP Server
π‘ The Solution: 4-Agent Pipeline
This MCP server exposes a 4-agent pipeline that turns raw ad data into actionable decisions β all accessible from your AI client:
Agent | Role |
Campaign Reader | Pulls live campaign data from Google Ads API & Meta Ads API β budgets, impressions, clicks, conversions, and more. |
Performance Analyzer | Identifies underperforming campaigns, budget waste, and anomalies across all connected platforms. |
Insight Generator | Delivers AI-powered optimization recommendations β bid adjustments, audience shifts, creative fatigue alerts. |
Report Builder | Generates structured weekly performance reports ready to share with stakeholders or clients. |
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β MCP Client (Claude / Cursor) β
ββββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββ
β MCP Protocol (stdio / HTTP)
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β MCP Server (FastAPI + Python) β
β ββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββββββ β
β βCampaign ReaderβββPerformance Analyzerβββ Insight Generator β β
β ββββββββ¬ββββββββ ββββββββββββββββββββ ββββββββββββ¬βββββββββββ β
β β β β
β βΌ βΌ β
β ββββββββββββββββ βββββββββββββββββββββββ β
β β Google Ads APIβ β Report Builder β β
β β Meta Ads API β βββββββββββββββββββββββ β
β β GA4 API β β
β ββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββπ Tech Stack
Layer | Technology |
Language | Python 3.11+ |
Protocol | |
Framework | FastAPI |
APIs | Google Ads API, Meta Marketing API, Google Analytics Data API (GA4) |
Testing | pytest |
CI/CD | GitHub Actions |
Containerization | Docker |
π¦ Installation
Prerequisites
Python 3.11+
Google Ads Developer Token
Meta Business App with Marketing API access
Google Cloud project with GA4 Data API enabled
1. Clone & Install
git clone https://github.com/phanindraintelligenzit-afk/mcp-server-for-google-ads-meta-ads-ga4.git
cd mcp-server-for-google-ads-meta-ads-ga4
pip install -e ".[dev]"2. Configure Environment
cp .env.example .env
# Fill in your API credentials:
# - GOOGLE_ADS_DEVELOPER_TOKEN
# - GOOGLE_ADS_CLIENT_ID / CLIENT_SECRET / REFRESH_TOKEN
# - META_APP_ID / APP_SECRET / ACCESS_TOKEN
# - GA4_PROPERTY_ID3. Claude Desktop Config
Add to your claude_desktop_config.json:
{
"mcpServers": {
"google-ads-meta-ga4": {
"command": "python",
"args": ["-m", "mcp_server"],
"env": {
"GOOGLE_ADS_DEVELOPER_TOKEN": "YOUR_TOKEN",
"META_ACCESS_TOKEN": "YOUR_TOKEN",
"GA4_PROPERTY_ID": "YOUR_PROPERTY_ID"
}
}
}
}4. Cursor Config
Add to your Cursor settings.json under mcpServers:
{
"mcpServers": {
"google-ads-meta-ga4": {
"command": "python",
"args": ["-m", "mcp_server"],
"env": {
"GOOGLE_ADS_DEVELOPER_TOKEN": "YOUR_TOKEN",
"META_ACCESS_TOKEN": "YOUR_TOKEN",
"GA4_PROPERTY_ID": "YOUR_PROPERTY_ID"
}
}
}
}π Quick Start
Once configured, restart Claude Desktop or Cursor. The MCP server tools will be available automatically.
Example Prompts
"Show me all active Google Ads campaigns with CTR below 2% this week."
"Compare Meta Ads vs Google Ads ROAS for the last 30 days."
"Generate a weekly performance report for my GA4 property."
"Which campaigns are wasting budget? Give me optimization recommendations."
"Pull conversion data from GA4 and cross-reference with Google Ads campaigns."MCP Client Config Examples
Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"ad-platforms": {
"command": "python",
"args": ["-m", "mcp_server"],
"cwd": "/path/to/mcp-server-for-google-ads-meta-ads-ga4"
}
}
}Cursor (.cursor/mcp.json in project root):
{
"mcpServers": {
"ad-platforms": {
"command": "python",
"args": ["-m", "mcp_server"],
"cwd": "/path/to/mcp-server-for-google-ads-meta-ads-ga4"
}
}
}π§ API / Tools Available
Tool | Description |
| List all campaigns from Google Ads and/or Meta Ads |
| Fetch impressions, clicks, spend, conversions for a campaign |
| Identify underperformers, budget waste, and anomalies |
| AI-powered optimization suggestions |
| Build a structured weekly performance report |
| Pull sessions, conversions, and engagement from GA4 |
| Side-by-side Google Ads vs Meta Ads analysis |
| Detect overspend and reallocation opportunities |
π― Use Cases
Performance Marketers β Automate daily monitoring and get instant optimization recommendations without leaving your AI workspace.
Agencies β Generate client-ready reports in seconds, audit multiple ad accounts, and surface cross-client insights.
Growth Teams β Unify Google Ads, Meta Ads, and GA4 data into a single source of truth for faster, data-driven decisions.
Freelancers & Consultants β Deliver enterprise-grade analysis without enterprise-grade tooling costs.
π° Pricing
Tier | What's Included |
Free Repo | Full source code (MIT). Clone, test, and deploy yourself. |
Done-for-You Setup | $1,000 β $3,000 β We configure the server, connect your ad accounts, customize the pipeline, and get you live in days. |
Contact us for custom enterprise deployments or multi-account agency setups.
πΊ Roadmap
Google Ads API integration
Meta Ads API integration
GA4 Data API integration
4-agent pipeline (Campaign Reader β Performance Analyzer β Insight Generator β Report Builder)
Slack / email report delivery
Automated bid adjustment suggestions with approval workflow
TikTok Ads API integration
LinkedIn Ads API integration
Custom dashboard UI
Multi-account agency management panel
π License
MIT License β see LICENSE for details.
Built by AIdentify β AI Automation Marketplace.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- 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/phanindraintelligenzit-afk/mcp-server-for-google-ads-meta-ads-ga4'
If you have feedback or need assistance with the MCP directory API, please join our Discord server