# SEO Tools: Google Analytics 4

> SEO Tools: Google Analytics 4 is an open-source MCP server for analytics and data. Google Analytics 4: reports, traffic sources, landing pages, events, realtime (read-only). It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/antohins/seo-tools-mcp
- **MCP Registry name:** io.github.antohins/seo-tools-mcp-ga4
- **Categories:** analytics and data, marketing and SEO
- **Listing updated:** 2026-11-13

## About

Google Analytics 4: reports, traffic sources, landing pages, events, realtime (read-only).

## Install

### Claude Code (Terminal)

```sh
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
```

### Claude Desktop (claude_desktop_config.json)

```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>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```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>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```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>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```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>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```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>"
      }
    }
  }
}
```

## 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

- [Agent-Native Analytics](https://ai-powered.com/mcp/agent-native-analytics): Agent-Native Analytics is an open-source MCP server for analytics and data.
- [Google Ads + Meta Ads + SEO/GEO MCP](https://ai-powered.com/mcp/google-ads-meta-ads-seo-geo-mcp): Google Ads + Meta Ads + SEO/GEO MCP is a freemium MCP server for marketing and seo.
- [Tapetide - Indian Stock Market MCP](https://ai-powered.com/mcp/tapetide-indian-stock-market-mcp): Tapetide - Indian Stock Market MCP is a freemium MCP server for finance and payments.
- [World Monitor](https://ai-powered.com/mcp/world-monitor): World Monitor is a freemium MCP server for analytics and data.
- [Calven](https://ai-powered.com/mcp/calven): Calven is an MCP server for marketing and seo.
- [CompanyData](https://ai-powered.com/mcp/companydata): CompanyData is a paid MCP server for analytics and data.
- [MCP](https://ai-powered.com/mcp/mcp-mwhffe53): MCP is a freemium MCP server for marketing and seo.
- [ChartAnt](https://ai-powered.com/mcp/chartant): ChartAnt is a freemium MCP server for design and media.

---
Source: https://ai-powered.com/mcp/seo-tools-google-analytics-4
