ga4-mcp
Enables listing Google Ads links for GA4 properties.
Provides tools to run GA4 reports, list accounts and properties, get custom dimensions and metrics, and manage GA4 admin tasks.
Allows querying search analytics, inspecting URLs, listing/submitting sitemaps, and managing GSC sites.
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., "@ga4-mcprun a report on last week's page views"
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.
ga4-mcp
GA4 + Google Search Console MCP server. Works with Claude, Copilot, Cursor, Codex, Gemini, and any MCP-compatible AI agent.
16 tools for Google Analytics 4, Search Console, and the Indexing API — run reports, inspect URLs, submit sitemaps, manage properties, and request indexing, all from your AI agent.
Quick Start
npx -y ga4-mcpOr install globally for faster startup:
npm install -g ga4-mcp
ga4-mcpPrerequisites
Authenticate with Google (includes all required scopes):
gcloud auth application-default login \
--scopes="https://www.googleapis.com/auth/analytics.readonly,https://www.googleapis.com/auth/analytics.edit,https://www.googleapis.com/auth/webmasters,https://www.googleapis.com/auth/indexing"Or set GOOGLE_APPLICATION_CREDENTIALS to a service account JSON key file.
Related MCP server: Google MCP Server
Agent Configuration
Claude Code
{
"mcpServers": {
"ga4-analytics": {
"command": "npx",
"args": ["-y", "ga4-mcp"]
}
}
}Cursor / Windsurf / Continue
Add to .cursor/mcp.json or equivalent:
{
"mcpServers": {
"ga4-analytics": {
"command": "npx",
"args": ["-y", "ga4-mcp"]
}
}
}Load only specific tool groups
{
"mcpServers": {
"ga4-analytics": {
"command": "npx",
"args": ["-y", "ga4-mcp", "--tools", "ga4,gsc"]
}
}
}CLI Options
ga4-mcp [options]
--tools <groups> Tool groups to enable: ga4, gsc, indexing, admin, all (default: all)
"ga4" = read-only analytics. "admin" = write/delete mega-tool.
--transport <type> Transport: stdio (default) or http (Streamable HTTP)
--port <number> HTTP port (default: 3000)
--version Show version
--help Show helpEnvironment variables: GA4_MCP_TOOLS, GA4_MCP_TRANSPORT, GA4_MCP_PORT
Tools (16 total)
Utility (1 tool)
Tool | Description |
| Health check — returns pong (always registered) |
GA4 Analytics (6 tools) — group: ga4
Tool | Description |
| List all GA4 accounts and properties |
| Property details (name, timezone, currency) |
| Run GA4 Data API reports |
| Run GA4 realtime reports |
| Custom dimensions and metrics |
| Google Ads links for a property |
GA4 Admin (1 mega-tool, 14 actions) — group: admin
Tool | Description |
| Create/update/delete properties, streams, key events, audiences |
Google Search Console (6 tools) — group: gsc
Tool | Description |
| List all GSC properties |
| Query search analytics (impressions, clicks, CTR, position) |
| URL inspection (index status, crawl info, mobile usability) |
| List submitted sitemaps |
| Add a site to GSC |
| Submit a sitemap |
Indexing API (2 tools) — group: indexing
Tool | Description |
| Notify Google to crawl/remove a URL |
| Check notification status for a URL |
License
MIT
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
- FlicenseBqualityDmaintenanceAn MCP server that integrates Google Search Console and Google Analytics 4 to provide unified SEO and web traffic analysis. It allows users to fetch search performance data, merge page metrics, and generate automated trend reports or actionable insights through tool calls.Last updated16
- Alicense-qualityDmaintenanceA unified MCP server that gives AI assistants direct access to Google Analytics 4, Google Search Console, Google Ads and Google Merchant Center data using OAuth2 user credentials.Last updatedMIT
- Flicense-qualityDmaintenanceAn MCP server that provides Google Analytics and Search Console data as tools for AI assistants, enabling natural language queries for web analytics, SEO performance, and site insights.Last updated
- AlicenseBqualityAmaintenanceMCP server providing 32 tools for Google Search Console and Google Analytics 4, enabling search analytics, URL inspection, indexing, and cross-platform analysis via natural language.Last updated438MIT
Related MCP Connectors
SEO MCP server: crawl your site, find AI-visibility gaps, and ship the fix from your coding agent.
Hosted MCP with 91 agent tools: X, domains, SEO, Maps, Trends, Search, YouTube, TikTok, and more.
Hosted Google Calendar MCP server for AI agents. No self-hosting or Google Cloud setup.
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/chimpmatic/ga4-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server