# GA4 + Google Search Console + Bing

> GA4 + Google Search Console + Bing is an open-source MCP server for web search and scraping. Local read-only MCP server linking GA4, Search Console and Bing data for AI assistants. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Self-hosted
- **Repository:** https://github.com/kkvlabs/ga4-gsc-mcp
- **MCP Registry name:** com.kkvlabs/ga4-gsc-mcp
- **Categories:** [web search and scraping](https://ai-powered.com/categories/web-search-and-scraping), [marketing and SEO](https://ai-powered.com/categories/marketing-and-seo), [analytics and data](https://ai-powered.com/categories/analytics-and-data), [seo tools](https://ai-powered.com/categories/seo-tools)
- **Listing updated:** 2026-11-27

## About

Connects an AI assistant such as Claude or Cursor to Google Analytics 4, Google Search Console and Bing Webmaster Tools so traffic and search questions can be answered in plain language. It runs on your own machine with your own Google or Bing credentials and requests only read-only scopes.

The server joins the three data sources, so a question about a traffic drop can be answered with clicks, impressions, sessions and key events together, along with the dates and property behind each result. It exposes 36 tools, including ready-made analyses such as quick wins, keyword cannibalization and content decay, plus raw GA4 report and Search Analytics access for custom queries.

It suits SEO and marketing people who already use an MCP-capable client and are comfortable creating a Google Cloud project and OAuth or service account credentials. Bing tools appear only when a Bing Webmaster API key is provided.

## Features

- **Joined GA4 and Search Console data:** Combines search clicks and impressions with on-site sessions, key events and revenue for the same pages.
- **Traffic drop diagnosis:** Splits changes into impressions and click-through rate and lists likely causes per page and query.
- **Quick win finder:** Lists pages ranking in positions 4 to 20 with real impressions, ranked by potential extra clicks.
- **Bing Webmaster support:** Adds Bing searches, crawl issues, sitemaps and backlink data when an API key is set.
- **Read-only and local:** Uses read-only scopes and sends requests only to Google and Bing APIs from the user's machine.
- **Raw report access:** Runs custom GA4 reports, batch and realtime reports, and Search Console queries with CSV output.

## Good for

- Finding out why organic traffic fell after a given month
- Listing pages with impressions that could gain clicks with small fixes
- Comparing traffic from Google, Bing and AI assistants over the last quarter
- Checking whether a URL is indexed and whether its canonical is correct
- Reviewing Bing crawl errors and top Bing search queries for a site

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add ga4-gsc-mcp --env BING_WEBMASTER_API_KEY='<BING_WEBMASTER_API_KEY>' --env PAGESPEED_API_KEY='<PAGESPEED_API_KEY>' -- npx -y ga4-gsc-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "ga4-gsc-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ga4-gsc-mcp"
      ],
      "env": {
        "BING_WEBMASTER_API_KEY": "<BING_WEBMASTER_API_KEY>",
        "PAGESPEED_API_KEY": "<PAGESPEED_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "ga4-gsc-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ga4-gsc-mcp"
      ],
      "env": {
        "BING_WEBMASTER_API_KEY": "<BING_WEBMASTER_API_KEY>",
        "PAGESPEED_API_KEY": "<PAGESPEED_API_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "ga4-gsc-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ga4-gsc-mcp"
      ],
      "env": {
        "BING_WEBMASTER_API_KEY": "<BING_WEBMASTER_API_KEY>",
        "PAGESPEED_API_KEY": "<PAGESPEED_API_KEY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "ga4-gsc-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "ga4-gsc-mcp"
      ],
      "env": {
        "BING_WEBMASTER_API_KEY": "<BING_WEBMASTER_API_KEY>",
        "PAGESPEED_API_KEY": "<PAGESPEED_API_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add ga4-gsc-mcp --env BING_WEBMASTER_API_KEY='<BING_WEBMASTER_API_KEY>' --env PAGESPEED_API_KEY='<PAGESPEED_API_KEY>' -- npx -y ga4-gsc-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.ga4-gsc-mcp]
command = "npx"
args = ["-y", "ga4-gsc-mcp"]
env = { BING_WEBMASTER_API_KEY = "<BING_WEBMASTER_API_KEY>", PAGESPEED_API_KEY = "<PAGESPEED_API_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "ga4-gsc-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ga4-gsc-mcp"
      ],
      "env": {
        "BING_WEBMASTER_API_KEY": "<BING_WEBMASTER_API_KEY>",
        "PAGESPEED_API_KEY": "<PAGESPEED_API_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e BING_WEBMASTER_API_KEY='<BING_WEBMASTER_API_KEY>' -e PAGESPEED_API_KEY='<PAGESPEED_API_KEY>' ga4-gsc-mcp npx -- -y ga4-gsc-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "ga4-gsc-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ga4-gsc-mcp"
      ],
      "env": {
        "BING_WEBMASTER_API_KEY": "<BING_WEBMASTER_API_KEY>",
        "PAGESPEED_API_KEY": "<PAGESPEED_API_KEY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "ga4-gsc-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ga4-gsc-mcp"
      ],
      "env": {
        "BING_WEBMASTER_API_KEY": "<BING_WEBMASTER_API_KEY>",
        "PAGESPEED_API_KEY": "<PAGESPEED_API_KEY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "ga4-gsc-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ga4-gsc-mcp"
      ],
      "env": {
        "BING_WEBMASTER_API_KEY": "<BING_WEBMASTER_API_KEY>",
        "PAGESPEED_API_KEY": "<PAGESPEED_API_KEY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "ga4-gsc-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ga4-gsc-mcp"
      ],
      "env": {
        "BING_WEBMASTER_API_KEY": "<BING_WEBMASTER_API_KEY>",
        "PAGESPEED_API_KEY": "<PAGESPEED_API_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "ga4-gsc-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ga4-gsc-mcp"
      ],
      "env": {
        "BING_WEBMASTER_API_KEY": "<BING_WEBMASTER_API_KEY>",
        "PAGESPEED_API_KEY": "<PAGESPEED_API_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "ga4-gsc-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ga4-gsc-mcp"
      ],
      "env": {
        "BING_WEBMASTER_API_KEY": "<BING_WEBMASTER_API_KEY>",
        "PAGESPEED_API_KEY": "<PAGESPEED_API_KEY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "ga4-gsc-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ga4-gsc-mcp"
      ],
      "env": {
        "BING_WEBMASTER_API_KEY": "<BING_WEBMASTER_API_KEY>",
        "PAGESPEED_API_KEY": "<PAGESPEED_API_KEY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

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

```json
{
  "mcpServers": {
    "ga4-gsc-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ga4-gsc-mcp"
      ],
      "env": {
        "BING_WEBMASTER_API_KEY": "<BING_WEBMASTER_API_KEY>",
        "PAGESPEED_API_KEY": "<PAGESPEED_API_KEY>"
      }
    }
  }
}
```

## FAQ

### Does GA4 + Google Search Console + Bing change anything in my Google or Bing accounts?

The server is read-only. Its Bing calls are limited to read methods, and write methods such as URL submission are refused in code.

### Which credentials can I use?

You can use a saved browser login from the auth command, a service account key, or gcloud Application Default Credentials.

### Do I need a Bing key?

No. The Bing tools are added only when a BING_WEBMASTER_API_KEY is set.

### Does GA4 + Google Search Console + Bing send data to the publisher?

The README says there is no telemetry and that calls go only to Google's APIs and Bing's API.

### Is GA4 + Google Search Console + Bing free?

Yes. GA4 + Google Search Console + Bing is open source, so you can use and self-host it for free.

### How do I add GA4 + Google Search Console + Bing to Claude Code?

Run this command in your terminal: claude mcp add ga4-gsc-mcp --env BING_WEBMASTER_API_KEY='<BING_WEBMASTER_API_KEY>' --env PAGESPEED_API_KEY='<PAGESPEED_API_KEY>' -- npx -y ga4-gsc-mcp

### What are the best alternatives to GA4 + Google Search Console + Bing?

The closest alternatives to GA4 + Google Search Console + Bing are Search Console MCP, GSC Magic, Site Insights by KKV Labs, SEOcrawl AI and Google Search Console MCP Server.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Search Console MCP](https://ai-powered.com/mcp/search-console-mcp): Search Console MCP is an open-source MCP server for web search and scraping.
- [GSC Magic](https://ai-powered.com/mcp/gsc-magic): GSC Magic is a freemium MCP server for web search and scraping.
- [Site Insights by KKV Labs](https://ai-powered.com/mcp/site-insights-by-kkv-labs): Site Insights by KKV Labs is a freemium MCP server for analytics and data.
- [SEOcrawl AI](https://ai-powered.com/mcp/seocrawl-ai): SEOcrawl AI is a freemium MCP server for marketing and seo.
- [Google Search Console MCP Server](https://ai-powered.com/mcp/google-search-console-mcp-server): Google Search Console MCP Server is an open-source MCP server for web search and scraping.
- [Seo Stack MCP](https://ai-powered.com/mcp/seo-stack-mcp): Seo Stack MCP is an open-source MCP server for marketing and seo.
- [GSC Wizard](https://ai-powered.com/mcp/gsc-wizard): GSC Wizard is an MCP server for web search and scraping.
- [SEOcluster.ai — Google Search Console SEO MCP Server](https://ai-powered.com/mcp/seocluster-ai-google-search-console-seo-mcp-server): SEOcluster.ai — Google Search Console SEO MCP Server is a freemium MCP server for web search and scraping.

---
Source: https://ai-powered.com/mcp/ga4-google-search-console-bing
