SEO Tools: Google Analytics 4
Google Analytics 4: reports, traffic sources, landing pages, events, realtime (read-only).
- Pricing
- Open source
- Runs
- Locally
- Version
- 1.8.0
- Listing updated
- 4 days ago
About SEO Tools: Google Analytics 4
SEO Tools: Google Analytics 4 is an open-source MCP server for analytics and data. It runs locally on your machine and is started by your AI client.
Install
Run in a terminal
claude mcp add seo-tools-mcp-ga4 --env GOOGLE_CLIENT_SECRET='<GOOGLE_CLIENT_SECRET>' --env GA4_REFRESH_TOKEN='<GA4_REFRESH_TOKEN>' -- npx -y seo-tools-mcp-ga4Add to claude_desktop_config.json
{
"mcpServers": {
"seo-tools-mcp-ga4": {
"command": "npx",
"args": [
"-y",
"seo-tools-mcp-ga4"
],
"env": {
"GOOGLE_CLIENT_SECRET": "<GOOGLE_CLIENT_SECRET>",
"GA4_REFRESH_TOKEN": "<GA4_REFRESH_TOKEN>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"seo-tools-mcp-ga4": {
"command": "npx",
"args": [
"-y",
"seo-tools-mcp-ga4"
],
"env": {
"GOOGLE_CLIENT_SECRET": "<GOOGLE_CLIENT_SECRET>",
"GA4_REFRESH_TOKEN": "<GA4_REFRESH_TOKEN>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"seo-tools-mcp-ga4": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"seo-tools-mcp-ga4"
],
"env": {
"GOOGLE_CLIENT_SECRET": "<GOOGLE_CLIENT_SECRET>",
"GA4_REFRESH_TOKEN": "<GA4_REFRESH_TOKEN>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"seo-tools-mcp-ga4": {
"command": "npx",
"args": [
"-y",
"seo-tools-mcp-ga4"
],
"env": {
"GOOGLE_CLIENT_SECRET": "<GOOGLE_CLIENT_SECRET>",
"GA4_REFRESH_TOKEN": "<GA4_REFRESH_TOKEN>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"seo-tools-mcp-ga4": {
"command": "npx",
"args": [
"-y",
"seo-tools-mcp-ga4"
],
"env": {
"GOOGLE_CLIENT_SECRET": "<GOOGLE_CLIENT_SECRET>",
"GA4_REFRESH_TOKEN": "<GA4_REFRESH_TOKEN>"
}
}
}
}Configuration
GOOGLE_CLIENT_IDGoogle OAuth client ID (Desktop app), shared with the gsc server.GOOGLE_CLIENT_SECRETGoogle OAuth client secret.GA4_REFRESH_TOKENOAuth refresh token (obtained via ga4_oauth_start / ga4_oauth_finish).GA4_SA_JSONPath to a service-account JSON key (alternative to OAuth).GA4_PROPERTY_IDDefault GA4 property id (numeric, e.g. 123456789).GA4_OAUTH_PORTLoopback port for the OAuth flow (default 8586).
Pricing
Open source
SEO Tools: Google Analytics 4 FAQ
Is SEO Tools: Google Analytics 4 free?
Yes. SEO Tools: Google Analytics 4 is open source, so you can use and self-host it for free.
How do I add SEO Tools: Google Analytics 4 to Claude Code?
Run this command in your terminal: claude mcp add seo-tools-mcp-ga4 --env GOOGLE_CLIENT_SECRET='<GOOGLE_CLIENT_SECRET>' --env GA4_REFRESH_TOKEN='<GA4_REFRESH_TOKEN>' -- npx -y seo-tools-mcp-ga4
What are the best alternatives to SEO Tools: Google Analytics 4?
The closest alternatives to SEO Tools: Google Analytics 4 are Agent-Native Analytics, Google Ads + Meta Ads + SEO/GEO MCP, Tapetide - Indian Stock Market MCP, World Monitor and Calven.
Alternatives to SEO Tools: Google Analytics 4

Agent-Native Analytics
MCP serverOpen-source analytics app where an AI agent builds charts and dashboards from your data
- Remote
- Open source
- 7.7K GitHub stars
- Analytics and data

Google Ads + Meta Ads + SEO/GEO MCP
MCP serverHosted MCP connector for managing Google Ads, Meta Ads, GA4 and Search Console from chat
- 8 tools
- Remote
- Freemium
- 8.1K GitHub stars
- Marketing and SEO

Tapetide - Indian Stock Market MCP
MCP serverIndian NSE and BSE stock market data for AI assistants through 48 MCP tools
- 17 tools
- Remote
- Freemium
- 150 GitHub stars
- Finance and payments

World Monitor
MCP serverLive geopolitical intelligence dashboard with an API and MCP server for agents
- Remote
- Freemium
- Analytics and data

Calven
MCP serverProduct marketing context from Calven delivered into Claude, ChatGPT and other AI tools
Not checked yet- Remote
- Free trial
- 3 GitHub stars
- Marketing and SEO

CompanyData
MCP serverSearch and enrich company records from official registers via the CompanyData API
- 3 tools
- Remote
- Paid
- 3 GitHub stars
- Analytics and data