
Gmc Mcp
io.github.kiwoongeom由 GitHub 账号 kiwoongeom 发布v0.2.6更新于 Nov 6, 2026
MIT-licensed pip-installable MCP for Google Merchant Center on Merchant API v1 (126 tools).
概览
基于 Merchant API v1 的自托管 Google Merchant Center MCP 服务器,提供 126 个工具,让助手管理商品、Feed、库存、报表和账户设置。
- 可以做什么
- 列出、读取、新增、更新和批量删除商品,并列出被拒登的商品
- 更新区域与本地库存,批量调整价格或上架状态
- 用类 SQL 查询运行效果、价格竞争力、畅销品和零点击报表
- 管理 Feed 与数据源、促销活动、退货政策、地区和首页认领
- 管理账户设置、用户、运费、税费、结账、评价、转化以及全渠道与 LFP 数据
- 查看审计日志、回滚已记录的写入、导出全部数据、与 Shopify CSV 比对并切换 dry-run
- 适用场景
- 适合运营商品数量庞大的 Google Merchant Center 账户、希望用对话方式查看或修改商品、库存、促销和报表,而不想用网页后台或临时脚本的人。也适合希望凭据留在本机、并看重审计日志和批量修改前 dry-run 的自托管用户。
- 运行要求
- 以 pip 安装的 Python 包形式在本机运行,通过 stdio 启动。需要 GMC_ACCOUNT_ID 提供 10 位 Merchant Center 账户 ID,并通过 GMC_SERVICE_ACCOUNT_KEY 提供服务账号 JSON 密钥路径,或通过 GMC_OAUTH_TOKEN 提供 OAuth 令牌文件路径。服务账号须在 Merchant Center 中被授予 Admin 权限,需在 Google Cloud 项目中启用 Merchant API,并完成一次性的 GCP 注册步骤。需要能访问 Merchant API 的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 Gmc Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Google Merchant Center MCP (gmc-mcp)
[PyPI] [Downloads] [Downloads/month] [GitHub stars] [CI] [Python] [License: MIT] [Ruff]
MCP server for Google Merchant Center, built on Merchant API v1. 126 tools, MIT-licensed,
pip install-able. Drive your Google Shopping feed, products, inventory, Reports, promotions, returns, and account configuration in natural language from Claude Desktop, Claude Code, or any MCP-compatible client.Where this fits in the GMC + MCP landscape
Pick this if you want: future-proof API, an actual OSS license, PyPI install, a larger toolset, audit log + rollback + dry-run safety, and credentials that never leave your machine.
Built on Merchant API v1 (replaces Content API for Shopping; v1beta was
discontinued 2026-02-28). Safe by default: every write is recorded to an
append-only audit log with before snapshots, dry-run is one toggle away, and
destructive bulk operations require an explicit confirm parameter.
Why this exists
Google Merchant Center (GMC) powers Google Shopping listings, Free Listings, Shopping Ads, Buy on Google checkout, YouTube Shopping, and more. Managing a feed of thousands of products through the GMC web UI is tedious, and writing one-off Python scripts against the Merchant API REST endpoints is slow.
There are existing MCP services for GMC, but they fit different niches:
- Paid hosted SaaS (Adzviser, Catchr, Windsor.ai, Pipedream) — your data is proxied through their servers; monthly subscription.
archpeng/GMC-mcp-server— earliest self-hosted Python option (Feb 2026), but built on the deprecated Content API v2.1 which Google retires in August 2026, has no license declared, and isn't on PyPI.
gmc-mcp was built to fill the gap: a self-hosted package on the new
Merchant API v1, MIT-licensed, on PyPI, with audit/rollback/dry-run
safety and 126 tools across 19 modules.
The package gives Claude (or any MCP client) 126 tools that map directly onto the Merchant API v1 surface, so you can do things like:
- "Show me every disapproved product, grouped by issue code."
- "Bump US prices 5% on these 40 SKUs."
- "Which products had impressions but zero clicks last week?"
- "Roll back audit ID 8fc8dc42… — that update broke something."
- "Compare this Shopify CSV against my GMC feed; what's missing?"
What's exposed
126 tools across 19 modules + 4 meta tools.
CLI also exposes: gmc-mcp run, auth-init, register-gcp, webhook, describe, version.
Install
For development:
Quick start
1. Enable the Merchant API and create a service account
- console.cloud.google.com → create / pick a project.
- APIs & Services → Library → enable Merchant API.
- IAM & Admin → Service Accounts → Create service account named
gmc-mcp. - 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
- merchants.google.com → top-right gear → Account access → People.
- Add user → enter the
[email protected]email → grant Admin. - Note the 10-digit Merchant Center ID in the top-right.
3. Configure
4. One-time GCP registration
Required before any v1 Merchant API call works for a new project.
5. Smoke-test
6. Wire into Claude
Drop this into %APPDATA%/Claude/claude_desktop_config.json (Desktop) or ~/.claude/settings.json (Code):
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):
Transports
Or via Docker:
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 lookupop,method,url,request_body,response_status,response_bodybefore— pre-write snapshot when the tool fetched it (used byupdate_*anddelete_*)dry_run— whether the request was actually sent
Inspect from inside Claude:
Dry-run
Two ways to enable:
Reads always go through; only writes are skipped.
Reports query examples
Paste into gmc_query_report:
Configuration reference
All config is via env vars (or .env). CLI flags --transport, --host, --port, --env override.
Architecture
auth.py—ServiceAccountAuthandOAuthUserAuthshare anAuthprotocol.client.py— singleMerchantClientwith retries (5x w/ jitter), pagination helper, and write-audit hook.tools/*.py— each module exposes aregister(mcp, client)that registers@mcp.tool()functions.audit.py— append-only JSONL, lookup by ID, supportsbeforesnapshots.cli.py—gmc-mcp run | auth-init | register-gcp | webhook | describe | version.
Testing
Roadmap
- v0.3: webhook handler scaffolding (auto-respond to
gmc_subscribecallbacks) - v0.3: native Merchant API v1 GA migration when Google releases it
- 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 — this is the first open-source MCP for Google Merchant Center, so there's a lot of room for community input on which workflows deserve dedicated tools.
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.
来源:README.md,提交 11b15e3
工具
0版本历史
2- v0.2.6最新Nov 6, 2026
- v0.2.5Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分