Skip to main content

Google Merchant Center MCP (GMC MCP)

PyPI Downloads Downloads/month GitHub stars CI Python License: MIT Ruff

Manage Google Merchant Center from your AI assistant. Google Merchant Center MCP (GMC MCP) connects Claude Desktop, Claude Code, and other MCP-compatible clients directly to Google's Merchant API v1. Inspect product issues, query Shopping reports, update inventory, and manage account operations with 134 tools in one self-hosted Python package. Audit storefront policies, review heuristic risk scores, prepare fix plans and appeal drafts, and track changes with weekly monitoring.

gmc-mcp is MIT-licensed and available as Google Merchant Center MCP (GMC MCP) on PyPI. Run it locally or on your own server, using your own Google credentials. No hosted connector is required.

What you can do

Workflow Capabilities
Product catalog List, inspect, insert, update, and delete products; manage product inputs and data sources.
Feed diagnostics Find disapproved products, summarize product issues, and inspect account and feed status.
Shopping reports Query Merchant Center reports and inspect product performance, price benchmarks, and best sellers where the account is eligible.
Inventory and bulk operations Update regional/local inventory, prices, and availability across products.
Account operations Manage promotions, returns, shipping settings, users, regions, and other Merchant Center settings.
Auditing and recovery Record writes in a local JSONL audit log and roll back supported operations when a prior snapshot is available.
Policy audit and risk scoring Inspect public policy pages and contact information, retain downloaded evidence, and report a clearly labelled heuristic storefront risk score.
Fix plans and appeal drafts Prioritize observed problems and generate a merchant-reviewed appeal draft with unresolved checks and retrieved account issues.
Weekly monitoring Persist schedules, compare scores and account issues, and record local alerts through an OS-scheduled worker.

Built for day-to-day operations

  • Direct Merchant API v1 access. Use your own Merchant Center account; Google permissions and report eligibility apply to each operation.
  • Dry-run before making changes. Enable GMC_DRY_RUN=true to intercept and audit writes while product reads and read-only Reports queries still reach Google. Destructive bulk operations require explicit confirmation.
  • An audit trail you control. Inspect request outcomes and captured before snapshots. Rollback is available for supported changes with the required snapshot; it is not a universal undo for every API action.
  • Flexible authentication and clients. Service-account or OAuth user credentials, stdio for desktop clients, and SSE for self-hosted deployments.
  • Standard Python distribution. Install with pip install gmc-mcp or run with uvx gmc-mcp run; Python 3.10+ and an MIT license.

Verified operation

The release verification covers the installed package, MCP startup and tool registration, and live read-only Google Merchant API requests:

  • Installed 0.3.0 wheel: MCP stdio initialization and all 134 tools registered. A comparison with 0.2.7 confirmed that all 126 existing tools remain.
  • All 8 new policy tools were called successfully over the actual MCP protocol using the installed package, alongside existing product and report tools.
  • Live product listing and Reports queries succeeded, including a Reports query with dry-run enabled that returned real account data.
  • Live policy audit: 7 public storefront pages retrieved, Google account issues queried, evidence hashes verified, and a saved report, fix plan and review-required appeal draft retrieved. No appeal was submitted.
  • 73 offline tests passed: the retained 53-test baseline plus 20 policy and monitoring cases. These cover private-network blocking, IP-pinned TLS, redirects, complete/partial raw downloads, incomplete assessments, error retention, weekly cadence, concurrent-worker leases and draft generation.
  • Native Windows Task Scheduler verification: a due weekly job performed a real audit and exited successfully. A second immediate due-check skipped the already-completed job. Seven-day timing was also tested with a simulated clock; a seven-day wall-clock observation has not yet elapsed.
  • Release checks include Ruff lint/format and mypy. The CI matrix covers Linux, Windows and macOS with Python 3.10–3.13.

The live checks exercise product listing, report queries and the new policy workflow against a merchant-controlled storefront. They do not constitute live validation of every tool or permission combination. Writes were not executed against the live account during release verification.

Example requests

  • "Show me every disapproved product, grouped by issue code."
  • "Which products had impressions but zero clicks last week?"
  • "Enable dry-run, then preview a regional inventory update."
  • "Look up this audit entry and show the captured previous state."
  • "Audit my storefront policies, show the highest-priority fixes, and prepare an appeal draft for review."
  • "Enable weekly policy monitoring and show changes since the previous audit."

What's exposed

134 registered tools, including 8 policy-audit tools and 4 server and audit-control tools.

Module Tools
products gmc_list_products, gmc_get_product, gmc_insert_product, gmc_update_product, gmc_delete_product, gmc_bulk_delete_products, gmc_list_disapproved_products
inventory gmc_update_regional_inventory, gmc_update_local_inventory, gmc_list_regional_inventories, gmc_list_local_inventories
issues gmc_list_account_issues, gmc_get_product_status, gmc_summarize_product_issues
reports gmc_query_report, gmc_product_performance, gmc_price_competitiveness, gmc_best_sellers, gmc_zero_click_products, gmc_revenue_by_brand, gmc_category_performance, gmc_competitive_visibility_top_merchants, gmc_price_insights, gmc_demoted_products
promotions gmc_list_promotions, gmc_get_promotion, gmc_insert_promotion
accounts gmc_get_account, gmc_get_business_info, gmc_update_business_info, gmc_list_users, gmc_add_user, gmc_remove_user, gmc_get_shipping_settings, gmc_update_shipping_settings, gmc_list_programs, gmc_request_program_review, gmc_get_program_review
regions gmc_list_regions, gmc_get_region, gmc_create_region, gmc_update_region, gmc_delete_region
notifications gmc_list_subscriptions, gmc_subscribe, gmc_unsubscribe
feeds gmc_list_datasources, gmc_get_datasource, gmc_create_supplemental_feed, gmc_create_primary_feed, gmc_delete_datasource, gmc_fetch_datasource
return_policies gmc_list_return_policies, gmc_get_return_policy, gmc_create_return_policy, gmc_update_return_policy, gmc_delete_return_policy
homepage gmc_get_homepage, gmc_update_homepage, gmc_claim_homepage, gmc_unclaim_homepage
account_config gmc_get_business_identity, gmc_update_business_identity, gmc_get_checkout_settings, gmc_create_checkout_settings, gmc_update_checkout_settings, gmc_delete_checkout_settings, gmc_get_automatic_improvements, gmc_update_automatic_improvements, gmc_get_autofeed_settings, gmc_update_autofeed_settings, gmc_get_account_tax, gmc_update_account_tax, gmc_get_email_preferences, gmc_update_email_preferences, gmc_get_latest_tos, gmc_list_tos_agreement_states, gmc_accept_tos
quotas gmc_list_quotas
reviews gmc_list_merchant_reviews, gmc_get_merchant_review, gmc_insert_merchant_review, gmc_delete_merchant_review, gmc_list_product_reviews, gmc_get_product_review, gmc_insert_product_review, gmc_delete_product_review
conversions gmc_list_conversion_sources, gmc_get_conversion_source, gmc_create_conversion_source, gmc_update_conversion_source, gmc_delete_conversion_source, gmc_undelete_conversion_source
omnichannel gmc_list_omnichannel_settings, gmc_get_omnichannel_settings, gmc_create_omnichannel_settings, gmc_update_omnichannel_settings, gmc_request_inventory_verification, gmc_link_gbp_account, gmc_list_gbp_accounts
lfp gmc_lfp_list_stores, gmc_lfp_get_store, gmc_lfp_insert_store, gmc_lfp_delete_store, gmc_lfp_insert_inventory, gmc_lfp_insert_sale, gmc_lfp_get_merchant_state
mca gmc_list_relationships, gmc_get_relationship, gmc_update_relationship, gmc_create_aggregation, gmc_delete_aggregation, gmc_list_account_services, gmc_propose_account_service, gmc_approve_account_service, gmc_reject_account_service
bulk gmc_bulk_update_regional_prices, gmc_bulk_set_availability
diagnostics gmc_health_check, gmc_rollback, gmc_export_all, gmc_diff_with_shopify
meta gmc_describe_server, gmc_audit_lookup, gmc_audit_tail, gmc_set_dry_run

CLI also exposes: gmc-mcp run, auth-init, register-gcp, webhook, describe, version.

Install

Get the Python package and release files from Google Merchant Center MCP (GMC MCP) on PyPI. This permanent package URL always points to the latest published release.

pip install gmc-mcp

For development:

git clone https://github.com/kiwoongeom/gmc-mcp
cd gmc-mcp
pip install -e ".[dev,test]"
pre-commit install

Quick start

1. Enable the Merchant API and create a service account

  1. console.cloud.google.com → create / pick a project.
  2. APIs & Services → Library → enable Merchant API.
  3. IAM & Admin → Service Accounts → Create service account named gmc-mcp.
  4. Open the new service account → Keys → Add key → Create new key → JSON. Save it somewhere safe.

2. Add the service account to your Merchant Center

  1. merchants.google.com → top-right gear → Account access → People.
  2. Add user → enter the gmc-mcp@PROJECT.iam.gserviceaccount.com email → grant Admin.
  3. Note the 10-digit Merchant Center ID in the top-right.

3. Configure

cp .env.example .env
# edit:
#   GMC_ACCOUNT_ID=1234567890
#   GMC_SERVICE_ACCOUNT_KEY=/abs/path/to/service-account.json

4. One-time GCP registration

Required before any v1 Merchant API call works for a new project.

gmc-mcp register-gcp --developer-email you@example.com

5. Smoke-test

gmc-mcp describe              # prints the resolved config
python examples/quickstart.py  # makes one read against the Merchant API

6. Wire into Claude

Drop this into %APPDATA%/Claude/claude_desktop_config.json (Desktop) or ~/.claude/settings.json (Code):

{
  "mcpServers": {
    "gmc": {
      "command": "gmc-mcp",
      "args": ["run"],
      "env": {
        "GMC_ACCOUNT_ID": "1234567890",
        "GMC_SERVICE_ACCOUNT_KEY": "/abs/path/to/service-account.json"
      }
    }
  }
}

Restart Claude. Ask: "What account am I connected to?" — it should call gmc_describe_server.

OAuth instead of a service account

For acting on behalf of an end user (e.g. multi-tenant SaaS):

# 1. In GCP, create OAuth client credentials (type: Desktop), download client_secret.json.
gmc-mcp auth-init --client-secrets ./client_secret.json
# follow the browser flow; a token JSON is saved to secrets/oauth-token.json.

# 2. Use it
export GMC_OAUTH_TOKEN=./secrets/oauth-token.json
gmc-mcp run

Transports

gmc-mcp run                              # stdio (Claude Desktop default)
gmc-mcp run --transport sse --port 8000  # SSE / HTTP (remote, Docker, hosted)

Or via Docker:

docker build -t gmc-mcp .
docker run --rm -p 8000:8000 \
    -e GMC_ACCOUNT_ID=1234567890 \
    -v $PWD/secrets:/secrets \
    -e GMC_SERVICE_ACCOUNT_KEY=/secrets/service-account.json \
    gmc-mcp

Audit log + rollback

GMC_DRY_RUN=true blocks writes, but still sends read requests, including the read-only Reports API POST reports:search. Report tools return real data; Merchant API errors are surfaced to the caller rather than reported as zero rows.

Every write logs a JSONL entry to GMC_AUDIT_LOG (default: ./logs/audit.jsonl). Each entry contains:

  • audit_id — UUID for lookup
  • op, method, url, request_body, response_status, response_body
  • before — pre-write snapshot when the tool fetched it (used by update_* and delete_*)
  • dry_run — whether the request was actually sent

Inspect from inside Claude:

> Show me my last 5 GMC writes.
[gmc_audit_tail(limit=5) → ...]

> Look up audit ID abc123.
[gmc_audit_lookup(audit_id="abc123") → ...]

> Roll back audit ID abc123, that update was wrong.
[gmc_rollback(audit_id="abc123", confirm="ROLLBACK") → ...]

Dry-run

Two ways to enable:

GMC_DRY_RUN=true gmc-mcp run
> Set dry-run on and update the price of SKU1 to $19.99.
[gmc_set_dry_run(enabled=True) → ok]
[gmc_update_regional_inventory(...) → {"_dry_run": true, ...}]

Reads always go through; only writes are skipped.

Reports query examples

Paste into gmc_query_report:

-- Top 50 by clicks last 7 days
SELECT offer_id, title, clicks, impressions, ctr
FROM product_performance_view
WHERE date BETWEEN '2026-04-23' AND '2026-04-30'
ORDER BY clicks DESC LIMIT 50

-- Disapproved products with reason codes
SELECT id, offer_id, title, item_issues
FROM product_view
WHERE aggregated_reporting_context_status = 'NOT_ELIGIBLE_OR_DISAPPROVED'

-- You're priced higher than the benchmark
SELECT offer_id, title, price, benchmark_price
FROM price_competitiveness_product_view
WHERE price > benchmark_price LIMIT 100

Configuration reference

All config is via env vars (or .env). CLI flags --transport, --host, --port, --env override.

Var Required Default Notes
GMC_ACCOUNT_ID yes — 10-digit Merchant Center ID
GMC_SERVICE_ACCOUNT_KEY one of — Path to service-account JSON
GMC_OAUTH_TOKEN one of — Path to OAuth token JSON
GMC_SUBACCOUNT_ID no — When using an MCA
GMC_AUDIT_LOG no ./logs/audit.jsonl Append-only JSONL
GMC_PAGE_SIZE no 100 Default list page size
GMC_TIMEOUT no 30 Per-request seconds
GMC_DRY_RUN no false Writes go to audit only
GMC_LOG_LEVEL no INFO DEBUG/INFO/WARNING/ERROR
GMC_TRANSPORT no stdio stdio or sse
GMC_HOST no 127.0.0.1 SSE only
GMC_PORT no 8000 SSE only

Architecture

Claude (any MCP client)
    │  JSON-RPC over stdio or SSE
    ▼
gmc-mcp server  ──►  audit.jsonl
    │
    │  HTTP + Bearer token
    ▼
merchantapi.googleapis.com  ──►  Google Merchant Center
  • auth.py — ServiceAccountAuth and OAuthUserAuth share an Auth protocol.
  • client.py — single MerchantClient with retries (5x w/ jitter), pagination helper, and write-audit hook.
  • tools/*.py — each module exposes a register(mcp, client) that registers @mcp.tool() functions.
  • audit.py — append-only JSONL, lookup by ID, supports before snapshots.
  • cli.py — gmc-mcp run | auth-init | register-gcp | webhook | describe | version.

Storefront policy audit and weekly monitoring (0.3.0)

Eight new MCP tools preserve the existing 126-tool interface:

Tool Purpose
gmc_run_policy_audit(url, max_pages=8, include_account=True) Fetch public HTTPS pages and account issues, save evidence, and evaluate storefront text.
gmc_list_policy_audits() / gmc_get_policy_audit(audit_id) Retrieve persisted audit history and full raw download paths.
gmc_get_policy_fix_plan(audit_id) Prioritize failed and unknown checks with verification steps.
gmc_generate_policy_appeal(audit_id, merchant_statement="") Save an appeal draft with unresolved checks and Google-reported issues; never submit it.
gmc_set_policy_monitoring(url, enabled=True) Save a weekly schedule; the first audit is due immediately.
gmc_get_policy_monitoring() Read next-due times, last reports, risk changes and local alerts.
gmc_run_policy_monitors() Execute due monitors on demand.

What is checked: homepage reachability; observed contact methods; linked business/About, return/refund, delivery, terms and privacy pages; and basic return-window/refund and shipping-time/cost wording. Checks support common English/Korean link labels. They do not execute storefront JavaScript, make purchases, validate identity documents, or verify every Google policy. Sources: misrepresentation and editorial requirements.

Risk score: versioned heuristic, 0 = lowest observed risk, 100 = highest; not a Google trust score, probability of suspension or approval guarantee. Failed checks contribute homepage 30, contact 20, identity 10, returns 20, shipping 10, terms 5 and privacy 5. A page that cannot be assessed is unknown. If the homepage is unavailable or assessed-check coverage is below 60%, the score is null / unassessed, never a clean zero. Coverage refers only to these automated checks. Official account issues are reported separately from the storefront score. Checkout, product claims, price/feed consistency and identity verification remain manual review items even when the heuristic score is zero.

Evidence and storage: account-isolated SQLite state and downloaded pages are stored under <GMC_AUDIT_LOG parent>/policy/<account ID>/. Every downloaded response includes a full raw_download_path, byte count and SHA-256. Downloads stop after 2 MiB + 1 byte; oversize bodies are explicitly marked incomplete and are not scored as usable pages. Redirect hops and failed responses are retained. Only public HTTPS destinations are permitted; resolved IPs are validated and pinned while TLS hostname verification remains enabled. Off-site redirects are not followed. Raw website text is untrusted evidence, not agent instructions.

Weekly execution requires a worker. Register the storefront with gmc_set_policy_monitoring, then schedule this command hourly using cron, Windows Task Scheduler or your service manager:

gmc-mcp --env /absolute/path/to/.env policy-monitor-run

The worker audits only due stores, then schedules the next run seven days later. SQLite leases prevent concurrent duplicate work; failed executions record the full error and retry no earlier than one hour later. Read the persisted alerts with gmc_get_policy_monitoring. Alerts include score and account-issue changes and incomplete assessment state. No email, external notification delivery or automatic appeals are included. The host and worker must be available at the scheduled time; registering an MCP schedule alone does not install an OS task.

Development checks

pytest                       # 100% offline; uses respx to mock HTTP
pytest --cov=gmc_mcp         # with coverage
ruff check src tests
mypy src/gmc_mcp

Roadmap

  • v0.3: webhook handler scaffolding (auto-respond to gmc_subscribe callbacks)
  • v0.4: BigQuery export of Reports queries
  • v0.4: rule-based auto-fixers ("on disapproval, retry with corrected attribute")

Contributing

See CONTRIBUTING.md. PRs and issues welcome — community input helps determine which GMC workflows deserve dedicated tools.

Earliest identified PyPI release — scope and evidence

In our 2026-11-11 public-record review, gmc-mcp was the earliest identified Google Merchant Center MCP (GMC MCP) distribution meeting all three conditions together: Merchant API v1, MIT license, and publication on PyPI.

  • The first PyPI file for gmc-mcp 0.2.0 was uploaded on 2026-05-02 at 18:06:53 UTC. Its wheel declares MIT and uses Merchant API v1 endpoints. See the release and PyPI upload metadata.
  • Earlier GMC MCP projects existed. For example, Webloom's May 1 source already used Merchant API v1 and MIT. We found no earlier PyPI release for its declared package name, mcp-google-merchant; that name returned HTTP 404 during the review.
  • The review covered web/GitHub searches, historical source and package metadata, and current PyPI names containing mcp plus merchant or gmc. It cannot rule out deleted distributions, other package names, or unindexed projects. This is a scoped historical finding, not proof of worldwide priority or a No. 1 quality, popularity, or performance ranking.

License

MIT — see LICENSE.


Search keywords: Google Merchant Center MCP, GMC MCP, Merchant API MCP, Google Shopping MCP, Shopping Ads MCP, free listings MCP, Claude Desktop Google Merchant Center, MCP for ecommerce, Shopify Google Merchant Center automation.

Metadata

Release files for gmc-mcp 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gmc-mcp 0.3.0
File Size Uploaded Provenance Actions
gmc_mcp-0.3.0.tar.gz 59.7 kB With provenance Details for gmc_mcp-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gmc-mcp 0.3.0
File Interpreter ABI Platform Actions
gmc_mcp-0.3.0-py3-none-any.whl Python 3 none any Details for gmc_mcp-0.3.0-py3-none-any.whl

Total release size: 120.0 kB

Release files / gmc_mcp-0.3.0.tar.gz

Download URL gmc_mcp-0.3.0.tar.gz
Size 59.7 kB
Tags Source
SHA-256 checksum
How to use checksums
920ced21e43644ba1684368ca95069ad37418854801b1f3975759f2a59d0feb1
BLAKE2b-256 checksum
How to use checksums
67f9b33644cab9e5ab345e67f8bfe0ec255d1c2a5c7b9f8e16df70c8f6464888
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Release files / gmc_mcp-0.3.0-py3-none-any.whl

Download URL gmc_mcp-0.3.0-py3-none-any.whl
Size 60.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c87072ae6021209bfa840a374f13ce6f3012c5e26f5190afe4df76f8a2d8f7db
BLAKE2b-256 checksum
How to use checksums
5e685bfe8f08cf73bed273d110fb7bf67395a0a1099d28d4c165c67108aa1488
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Security for gmc-mcp 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for gmc_mcp-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page