GA4 + Google Search Console + Bing
Local read-only MCP server linking GA4, Search Console and Bing data for AI assistants
GA4 + Google Search Console + Bing is an open-source MCP server for web search and scraping. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, API, Self-hosted
- Runs
- Locally
- Version
- 0.3.0
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a 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-mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.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>"
}
}
}
}Add to claude_desktop_config.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.
Add to ~/.cursor/mcp.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.
Add to ~/.copilot/mcp-config.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.
Add with the CLI
Run in a terminal
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-mcpOr add to config.toml
Add to ~/.codex/config.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>" }Add to your client's MCP settings (most use this shape)
{
"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>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.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
Antigravity
Add to ~/.gemini/config/mcp_config.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 (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.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
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "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.
Junie
Add to ~/.junie/mcp/mcp.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
Add to ~/.kiro/settings/mcp.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.
Using several servers? Build one config file with the MCP config generator.
Configuration
GOOGLE_APPLICATION_CREDENTIALSPath to a service account JSON key. Leave unset to use gcloud Application Default Credentials or a saved `ga4-gsc-mcp auth` login.GA4_PROPERTY_IDDefault GA4 property ID (numbers only).GSC_SITE_URLDefault Search Console site, e.g. sc-domain:example.com.BING_WEBMASTER_API_KEYOptional Bing Webmaster Tools API key (Settings > API Access). Adds the bing_ tools.PAGESPEED_API_KEYOptional Google API key with the PageSpeed Insights API enabled, for a higher page_speed quota.BRAND_TERMSOptional comma-separated brand terms for brand / non-brand splits.GA4_GSC_MCP_NO_HINTSSet to 1 to hide the one-line pointer to the hosted version in CLI output.
About GA4 + Google Search Console + Bing
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.
What it does
- 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
Pricing
Open source
Free and MIT-licensed; a separate hosted version has its own paid plans.
More servers for the same service
GA4 + Google Search Console + Bing 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.