Skip to content
MCP server

Google E-commerce (GA4, Search Console, Merchant Center, Ads)

Read GA4, Search Console, Merchant Center and ad data, with opt-in approved writes

Runs locally

Google E-commerce (GA4, Search Console, Merchant Center, Ads) is a free MCP server for e-commerce. It runs locally on your machine and is started by your AI client.

Pricing
Free
Platforms
CLI, Self-hosted, macOS
Runs
Locally
Version
0.6.0
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add google-ecommerce-mcp --env PAGESPEED_API_KEY='<PAGESPEED_API_KEY>' -- uvx google-ecommerce-mcp

Add --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": {
    "google-ecommerce-mcp": {
      "command": "uvx",
      "args": [
        "google-ecommerce-mcp"
      ],
      "env": {
        "PAGESPEED_API_KEY": "<PAGESPEED_API_KEY>"
      }
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "google-ecommerce-mcp": {
      "command": "uvx",
      "args": [
        "google-ecommerce-mcp"
      ],
      "env": {
        "PAGESPEED_API_KEY": "<PAGESPEED_API_KEY>"
      }
    }
  }
}

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

Claude Desktop setup guide

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "google-ecommerce-mcp": {
      "command": "uvx",
      "args": [
        "google-ecommerce-mcp"
      ],
      "env": {
        "PAGESPEED_API_KEY": "<PAGESPEED_API_KEY>"
      }
    }
  }
}

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

Cursor setup guide

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "google-ecommerce-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "google-ecommerce-mcp"
      ],
      "env": {
        "PAGESPEED_API_KEY": "<PAGESPEED_API_KEY>"
      }
    }
  }
}

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

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add google-ecommerce-mcp --env PAGESPEED_API_KEY='<PAGESPEED_API_KEY>' -- uvx google-ecommerce-mcp

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.google-ecommerce-mcp]
command = "uvx"
args = ["google-ecommerce-mcp"]
env = { PAGESPEED_API_KEY = "<PAGESPEED_API_KEY>" }

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "google-ecommerce-mcp": {
      "command": "uvx",
      "args": [
        "google-ecommerce-mcp"
      ],
      "env": {
        "PAGESPEED_API_KEY": "<PAGESPEED_API_KEY>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "google-ecommerce-mcp": {
          "command": "uvx",
          "args": [
            "google-ecommerce-mcp"
          ],
          "env": {
            "PAGESPEED_API_KEY": "<PAGESPEED_API_KEY>"
          }
        }
      }
    }

    Or run: gemini mcp add -s user -e PAGESPEED_API_KEY='<PAGESPEED_API_KEY>' google-ecommerce-mcp uvx -- google-ecommerce-mcp

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "google-ecommerce-mcp": {
          "command": "uvx",
          "args": [
            "google-ecommerce-mcp"
          ],
          "env": {
            "PAGESPEED_API_KEY": "<PAGESPEED_API_KEY>"
          }
        }
      }
    }

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

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "google-ecommerce-mcp": {
          "command": "uvx",
          "args": [
            "google-ecommerce-mcp"
          ],
          "env": {
            "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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "google-ecommerce-mcp": {
          "command": "uvx",
          "args": [
            "google-ecommerce-mcp"
          ],
          "env": {
            "PAGESPEED_API_KEY": "<PAGESPEED_API_KEY>"
          }
        }
      }
    }

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

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "google-ecommerce-mcp": {
          "command": "uvx",
          "args": [
            "google-ecommerce-mcp"
          ],
          "env": {
            "PAGESPEED_API_KEY": "<PAGESPEED_API_KEY>"
          }
        }
      }
    }

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

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "google-ecommerce-mcp": {
          "command": "uvx",
          "args": [
            "google-ecommerce-mcp"
          ],
          "env": {
            "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": {
        "google-ecommerce-mcp": {
          "command": "uvx",
          "args": [
            "google-ecommerce-mcp"
          ],
          "env": {
            "PAGESPEED_API_KEY": "<PAGESPEED_API_KEY>"
          }
        }
      }
    }

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

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "google-ecommerce-mcp": {
          "command": "uvx",
          "args": [
            "google-ecommerce-mcp"
          ],
          "env": {
            "PAGESPEED_API_KEY": "<PAGESPEED_API_KEY>"
          }
        }
      }
    }

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

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • GA4_PROPERTY_IDGA4 numeric property id
  • GSC_SITE_URLSearch Console property, sc-domain:example.com or https://www.example.com/
  • MERCHANT_ACCOUNT_IDMerchant Center account id
  • GTM_CONTAINER_IDTag Manager container id, GTM-XXXXXXX
  • PAGESPEED_API_KEYPageSpeed Insights API key (optional)
  • GEM_CLIENTPin this server process to one client of the client registry (clients.json)
  • GEM_WRITESet to 1 to allow writing at all (off by default; each client and platform must also be enabled)
  • GOOGLE_TOKEN_FILEStore the OAuth token in this file instead of the OS keyring

About Google E-commerce (GA4, Search Console, Merchant Center, Ads)

Built by a small French shop that sells 3D-printed tabletop terrain, this server was written because nothing covered GA4, Search Console and Merchant Center together. It reads by default and answers from your own accounts: organic traffic this month, disapproved Merchant Center products, whether GA4 loads twice, or what each ad platform claims against what GA4 reports. The README lists 82 tools in its reference.

Sources span GA4, Search Console, Merchant Center, Tag Manager, the Indexing API, PageSpeed, Google Ads, Meta Ads, ChatGPT Ads and the Meta pixel, catalog, Instagram and Page. Agencies can register several clients in a clients.json file, with secrets in the OS keyring and each call naming its client.

Writing is off unless you set GEM_WRITE and enable it per client and platform. Changes are proposed as a plan with a diff and signed token, need your approval, and money-related ones need approval in a terminal. Creations are paused. The README warns that writing and the paid-media connectors have only been tested offline against fake responses. Requests go straight from your machine to the platforms.

What it does

Many Google sources
Covers GA4, Search Console, Merchant Center, Tag Manager, Indexing API and PageSpeed.
Ad platform reporting
Reads Google Ads, Meta Ads and ChatGPT Ads figures with their attribution windows.
Multi-client registry
Keeps agency clients apart with per-client ids and secrets.
Plan, approve, apply
Optional writes go through a diff, approval and a journal.
Keyring storage
Tokens go to the OS keyring rather than the command line.
Monthly reports
A report command builds client reporting from KPI definitions.

Good for

  • Check organic search traffic for the month
  • Find products disapproved in Merchant Center
  • Audit whether GA4 fires twice on a site
  • Compare ad-platform conversions with GA4
  • Run monthly reports for several client shops

Pricing

Free

Free to install from PyPI; platform API costs are separate

More servers for the same service

Google E-commerce (GA4, Search Console, Merchant Center, Ads) FAQ

Can Google E-commerce (GA4, Search Console, Merchant Center, Ads) change my accounts?

Not by default. Writing needs GEM_WRITE=1 plus enabling it per client and platform, and changes are approved before they apply.

Has writing been tested on real accounts?

No. The README says write tools and the ad connectors were checked offline only.

Is any data sent to a third party?

The README says requests go directly from your machine to Google, Meta and OpenAI, not through a MoonEyes server.

How do I install Google E-commerce (GA4, Search Console, Merchant Center, Ads)?

Install the google-ecommerce-mcp package from PyPI and follow the Quickstart.

Is Google E-commerce (GA4, Search Console, Merchant Center, Ads) free?

Yes. Google E-commerce (GA4, Search Console, Merchant Center, Ads) is free to use.

How do I add Google E-commerce (GA4, Search Console, Merchant Center, Ads) to Claude Code?

Run this command in your terminal: claude mcp add google-ecommerce-mcp --env PAGESPEED_API_KEY='<PAGESPEED_API_KEY>' -- uvx google-ecommerce-mcp

What are the best alternatives to Google E-commerce (GA4, Search Console, Merchant Center, Ads)?

The closest alternatives to Google E-commerce (GA4, Search Console, Merchant Center, Ads) are Agent-Native Analytics, dashboard-icons, ChatGPT for Amazon, Google Ads + Meta Ads + SEO/GEO MCP and TryPost.

Where this comes from

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

How AIPoweredBot checks servers