SuperAPIAI Directory

google-ecommerce-mcp

github.com · AI developer platforms

google-ecommerce-mcp is an MCP server for online stores and agencies that provides unified read access to data from GA4, Search Console, Merchant Center, Tag Manager, Indexing API, PageSpeed, and advertising platforms such as Google Ads, Meta Ads, and ChatGPT Ads. It is read-only by default, supports multi-client isolation, and writes must be enabled per client and per platform and are controlled through planning, approval, audit, and rollback processes. The project is developed by MoonEyes to address the problem that existing MCP servers do not cover GA4, Search Console, and Merchant Center at the same time.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

Purpose

google-ecommerce-mcp is an MCP server that lets AI assistants read data from an online store's or agency's own accounts and answer business questions. It covers GA4, Search Console, Merchant Center, Tag Manager, Indexing API, PageSpeed, and advertising platforms such as Google Ads, Meta Ads, and ChatGPT Ads, and also involves Meta pixel, catalog, Instagram, and Page. By default it only reads and reports and does not change anything; if writes are enabled for a client, the assistant can propose a change plan, but it is sent only after the user approves it.

Key capabilities

  • Unified data view: One server covers traffic and sales (GA4), organic search (Search Console), product feeds (Merchant Center), tracking setup (Tag Manager), site speed, and delivery data claimed by advertising platforms.
  • Multi-client isolation: Agencies can register multiple clients, with IDs stored in files and secrets stored in the operating system keychain. Each call must specify a client, external account IDs are rejected, and one server process can be pinned to one client.
  • Read-only by default, controlled writes: Reads use per-platform allowlists and have no write endpoints. Writes are off by default, must be enabled per client and per platform, and follow a single path: plan (diff, dry run, signed token), approve (terminal approval is required when costs, irreversibility, or personal data are involved), apply, and log. Create operations are all in a paused state; this version does not support activation, deletion, or publishing.
  • Secret management: Google tokens are stored in the operating system keychain (Windows Credential Manager, macOS Keychain, or Secret Service). Google Ads tokens are stored separately because their scopes are writable. Meta and ChatGPT Ads secrets are stored in the keychain via hidden prompts; environment variables can also be used, but they never appear in command lines or URLs.
  • Model-readable answers: Reports return top rows plus all totals, the unit and definition of each metric, dates resolved by account time zone (with flags when the last few days may change), and the attribution windows used by each advertising platform.
  • Honest about limitations: Advertising platforms count conversions in their own ways, and the tool will in every answerNote that numbers that should not be added will not be added.
  • No third parties: Requests go directly from the user's machine to Google, Meta, and OpenAI, without passing through MoonEyes servers.

How to use

  1. Create a Google OAuth client (first step of the installer).
  2. Run the installer. The installer installs uv when needed, asks for the ID, opens the Google consent screen, and adds the server to Claude Desktop (backing up the previous configuration). The installer installs the exact package version at release time (google-ecommerce-mcp==0.6.0).
  3. Downloading, reading, and then running is recommended. The script URL points to an exact commit rather than a branch, so the script will not change without the user's knowledge.

Install scripts and SHA-256 checksums for Windows (PowerShell) and macOS/Linux are available in the official repository. They can also be run with a one-line command (without reading or verifying the SHA-256). The installer has an optional paid media step (Google Ads, Meta Ads, ChatGPT Ads), which can be skipped with --skip-ads. The installer never takes secrets as arguments: Google Ads uses browser consent (the same OAuth client).

When it applies

  • Store owners: Want answers directly (what sold, what broke, which ads wasted money) without opening six dashboards. After installation, ask questions in natural language and make decisions yourself.
  • Agencies: Serve multiple clients. One installation, one registry, consistent checks every time, attribution caveats written into the answers given to clients, and writes enabled only for selected clients and platforms.
  • Developers: Want a small, readable, tested server: plain HTTP calls, per-platform allowlists, a single write path, structured errors. PRs are welcome.

Limitations

  • No changes without a plan: No writes by default. Even if writes are enabled for a client, it cannot activate paused campaigns, delete or archive anything, publish Tag Manager containers, set bid amounts, or choose bid strategies (new Google Ads campaigns use fixed manual CPC with no bid amount), and this version also cannot upload conversions and customer lists. Everything created is in a paused state. These operations require using the platform's own interface.
  • Changes involving costs require approval in the terminal:Budgets, new campaigns and price changes are applied only after the user runs google-ecommerce-mcp approve themselves. This does not protect against an assistant with a machine shell (see docs/SECURITY.md).
  • No causal attribution: reports what each platform and GA4 record; it cannot say whether ads caused sales (incrementality).
  • No real order counts: does not read the store backend (WooCommerce, Shopify, etc.), so it cannot tell actual orders, profit or returns, nor does it know the consent rate.
  • No deduplicated conversions, no currency conversion: does not merge conversions across platforms into one "true" number, and adds them only when spend uses the same currency.
  • Write features never tested on real accounts: write tools exist, but have only been checked offline against fake responses written from each platform's documentation. Enabling requires opt-in per client and platform, creation is always paused, and some risks cannot be eliminated (e.g. a Google Ads token or ChatGPT Ads key cannot be restricted to read-only). Before enabling, read docs/SECURITY.md and docs/WRITE.md, and try first on a test account.
  • Paid media connectors are new and only tested offline: the Google Ads, Meta Ads and ChatGPT Ads tools have been checked against fake responses written from each platform's documentation, and have not yet been run against real ad accounts. Compare the first data with each platform's own interface. See docs/ADS.md for details.
  • Attribution warning: each platform attributes conversions independently, using its own windows, dates and models, so the same order may be counted by multiple platforms. The sum of platform conversions is not deduplicated and will overstate real orders. ads_overview repeats this point in every answer. The numbers should be understood as "what each platform claims", and compared with GA4 and with orders outside the server.
  • Read by default, but with one caveat: Google Ads permission (adwords) can write, and Google does not offer a read-only version. When writing is not enabled, the server sends only read requests, but the token itself can write, so it is stored separately from other Google tokens. ChatGPT Ads also does not document a read-only key; the same key is used for reading and writing. See the security notes.
  • Offline testing only: all behavior has been checked against fake responses; trials on real accounts are still pending, and no write has ever been sent to a real account. Not yet confirmed: the time zone ChatGPT Ads returns when time_granularity=none, Meta's longer view windows (7d_view, 28d_view; not offered by the tools), and whether a ChatGPT Ads key can be restricted to read-only.

Client reports

google-ecommerce-mcp report converts the tools' JSON results into a static HTML file using client branding (name, logo, accent color), printable as PDF. It needs no network or configured services, shows comparisons with last month and last year, and never invents causes: they appear only when the user provides them. See docs/REPORTING.md for the plan, input contract, color rules, KPI formulas and common errors; see examples/PROMPTS.md for ready-made prompts. Tested only on sample data, not yet on real client accounts. Profit, targets and notes are provided by the user, and some numbers (impression share, Shopping product reports, MER) require additional GAQL or assistant computation.

Tool count

82 tools in total. Full parameters and outputs are in docs/TOOLS.md. Most are read-only. The plan tools prepare changes but do not write. Only four tools write, and only for clients with writing enabled: gads_apply, meta_apply, openai_ads_apply, google_apply.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools