Google Meta Ads GA4

v1.0.0Marketing & SEOstable

MCP server for Google Ads, Meta Ads & GA4 — works with ChatGPT, Claude, Cursor, n8n, Windsurf & more. 250+ tools for campaign management, analytics & optimization.

ad-optimizationadvertisingai-agentcampaign-managementchatgpt
Share:
994
Stars
0
Downloads
0
Weekly
0/5

What is Google Meta Ads GA4?

Google Meta Ads GA4 is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp server for google ads, meta ads & ga4 — works with chatgpt, claude, cursor, n8n, windsurf & more. 250+ tools for campaign management, analytics & optimization.

MCP server for Google Ads, Meta Ads & GA4 — works with ChatGPT, Claude, Cursor, n8n, Windsurf & more. 250+ tools for campaign management, analytics & optimization.

This server falls under the Marketing & SEO and Analytics categories on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • MCP server for Google Ads, Meta Ads & GA4 — works with ChatG

Use Cases

MCP server for Google Ads, Meta Ads & GA4 — works with ChatGPT, Claude, Cursor,
irinabuht12-oss

Maintainer

LicenseMIT
Languagetypescript
Versionv1.0.0
UpdatedMay 20, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx google-meta-ads-ga4

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Google Meta Ads GA4

The Google Meta Ads GA4 MCP server gives AI assistants direct access to over 250 advertising and analytics tools spanning Google Ads, Meta Ads, and Google Analytics 4. It connects to live ad accounts via OAuth 2.1 authentication so you can manage campaigns, pull performance reports, and run cross-platform analysis entirely through natural language. Teams use it to automate routine optimizations like pausing under-performing campaigns, building lookalike audiences, and comparing ROAS across channels without leaving their AI client.

Prerequisites

  • An MCP-compatible client such as Claude Desktop, Cursor, or Windsurf
  • Active Google Ads and/or Meta Ads accounts with appropriate access permissions
  • A Google Analytics 4 property (for GA4 features)
  • The MCP endpoint URL provided after signing up at the service portal
  • A modern browser available for the OAuth 2.1 PKCE authentication flow
1

Obtain your MCP endpoint URL

Sign up or log in at the google-meta-ads-ga4 service portal to receive your personal MCP endpoint URL. This URL encodes your account identity and is used in place of raw API keys.

2

Add the server to Claude Desktop

Open claude_desktop_config.json and add a new entry under mcpServers. Replace YOUR_MCP_ENDPOINT_URL with the URL from the previous step.

{
  "mcpServers": {
    "google-meta-ads-ga4": {
      "url": "YOUR_MCP_ENDPOINT_URL"
    }
  }
}
3

Add the server via Claude Code CLI (alternative)

If you use Claude Code instead of Claude Desktop, register the server with a single CLI command.

claude mcp add google-meta-ads-ga4 --transport sse YOUR_MCP_ENDPOINT_URL
4

Connect with Cursor or Windsurf

Add the server to the relevant config file for your editor. For Cursor use ~/.cursor/mcp.json; for Windsurf use ~/.codeium/windsurf/mcp_config.json.

{
  "mcpServers": {
    "google-meta-ads-ga4": {
      "url": "YOUR_MCP_ENDPOINT_URL"
    }
  }
}
5

Authenticate via OAuth

On first use, the server will prompt you to complete an OAuth 2.1 PKCE browser flow to authorize access to your Google Ads, Meta Ads, and GA4 accounts. Follow the browser prompts to grant the required permissions.

6

Test the connection

Ask your AI client a simple question about your ad campaigns to confirm the integration is working and the server can retrieve live data.

Google Meta Ads GA4 Examples

Client configuration

Claude Desktop config block using the SSE endpoint URL.

{
  "mcpServers": {
    "google-meta-ads-ga4": {
      "url": "YOUR_MCP_ENDPOINT_URL"
    }
  }
}

Prompts to try

Example natural-language prompts you can send once the server is connected.

- "Show me all my Google Ads campaigns and their performance this month"
- "Create a lookalike audience based on my top purchasers in Meta Ads"
- "Compare my Google Ads and Meta Ads ROAS for Q1 2026"
- "What are my top traffic sources by conversions this month in GA4?"
- "Pause all campaigns with a ROAS below 2.0"

Troubleshooting Google Meta Ads GA4

OAuth flow does not complete or access is denied

Ensure you are logged into the correct Google or Meta account that owns the ad accounts, and that you have Admin or Standard access. Try opening the OAuth URL in an incognito window to avoid cached credential conflicts.

Tools return empty results for campaigns

Confirm the ad account IDs linked during OAuth match the accounts you expect. If you manage multiple accounts, check that the correct manager/MCC account was authorized.

Server URL rejected by the MCP client

Some clients require the transport type to be explicitly set to 'sse'. In Claude Code CLI use the --transport sse flag. In config files confirm the key is 'url' not 'command'.

Frequently Asked Questions about Google Meta Ads GA4

What is Google Meta Ads GA4?

Google Meta Ads GA4 is a Model Context Protocol (MCP) server that mcp server for google ads, meta ads & ga4 — works with chatgpt, claude, cursor, n8n, windsurf & more. 250+ tools for campaign management, analytics & optimization. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Google Meta Ads GA4?

Follow the installation instructions on the Google Meta Ads GA4 GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Google Meta Ads GA4?

Google Meta Ads GA4 works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Google Meta Ads GA4 free to use?

Yes, Google Meta Ads GA4 is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Marketing & SEO MCP Servers

Explore all marketing & seo servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "google-meta-ads-ga4": { "command": "npx", "args": ["-y", "google-meta-ads-ga4"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Google Meta Ads GA4?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides