mcp-google-merchants
Allows managing Google Merchant Center products, promotions, data sources, and running MCQL reports via the Merchant API.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-google-merchantsWhy is product sku-123 disapproved in Shopping ads?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Google Merchant Center MCP
MCP server for Google Merchant Center via the Merchant API v1: manage your product feed, promotions and data sources, run MCQL reports, check price competitiveness and product issues — from Claude, Cursor, Codex and other AI clients in natural language.
Unlike read-only integrations, this server authenticates with your own OAuth credentials and supports write operations: upload and delete products, insert promotions and trigger feed re-fetches — with destructive tools clearly annotated so MCP hosts can gate them.
Quick start
Get OAuth credentials for the Merchant API.
Add the server — for example in Claude Code (other clients):
claude mcp add google-merchants \ -e GOOGLE_MERCHANTS_CLIENT_ID=your_client_id \ -e GOOGLE_MERCHANTS_CLIENT_SECRET=your_client_secret \ -e GOOGLE_MERCHANTS_REFRESH_TOKEN=your_refresh_token \ -e GOOGLE_MERCHANTS_ACCOUNT_ID=your_merchant_id \ -- npx -y mcp-google-merchantsAsk the assistant: "Which of my products are disapproved, and why?"
Related MCP server: gmc-mcp
What it can do
Tool | Description |
| Merchant Center accounts you can access (with optional filter). |
| One account's settings (name, language, time zone, ...). |
| The store homepage and whether it is claimed. |
| Account-level shipping services and warehouses. |
| Processed products as shown in Merchant Center, incl. statuses. |
| One product with |
| Upload (upsert) a product into an API data source. |
| Sparse-update a product (price, availability, ...). |
| Delete a product input from a data source. |
| Feeds/data sources of the account (API, file, UI, autofeed). |
| One data source with its feed and fetch configuration. |
| Create an API data source for product/promotion writes. |
| Trigger an immediate re-fetch of a file feed. |
| Create or update a promotion. |
| Promotions with their approval statuses. |
| One promotion incl. per-destination status. |
| Run any MCQL query ( |
| Your prices vs market benchmarks (canned MCQL). |
| Google's suggested prices + predicted impact (canned MCQL). |
| Aggregated product issues per reporting context/country. |
| API usage vs quota limits per method group. |
| Escape hatch to any Merchant API v1 path (SSRF-guarded). |
Resilience: retries with backoff on 429 and on 5xx/network errors for reads (writes are never
replayed), Retry-After support, request timeouts, automatic access-token refresh.
Example prompts
"List my Merchant Center products that are out of stock"
"Why is product sku-123 disapproved in Shopping ads?"
"Upload a test product 'Blue Widget' for $9.99 to my API feed"
"Which of my products are priced above the market benchmark in the US?"
"Show clicks and impressions per product for July"
MCQL examples
search_reports accepts raw Merchant Center Query Language. Field names are snake_case in
queries and camelCase in responses; SELECT * is not supported; performance views require a
date range.
-- Filter products (list_products has no filter — this is the way)
SELECT offer_id, title, price, aggregated_reporting_context_status
FROM product_view
WHERE aggregated_reporting_context_status = 'NOT_ELIGIBLE_OR_DISAPPROVED'-- Performance over a date range
SELECT offer_id, title, clicks, impressions, click_through_rate
FROM product_performance_view
WHERE date BETWEEN '2026-07-01' AND '2026-07-31'
ORDER BY clicks DESC-- Price competitiveness (requires the free Market Insights opt-in)
SELECT offer_id, title, price, benchmark_price
FROM price_competitiveness_product_view
WHERE report_country_code = 'US'API access
The server talks to the Merchant API v1 (merchantapi.googleapis.com) — the successor of
the Content API for Shopping (sunset in August 2026). Auth is standard Google OAuth 2.0 with
the scope https://www.googleapis.com/auth/content; the server exchanges your refresh token
for access tokens automatically.
One-time registration required. Before any Merchant API call works, your Google Cloud project must be registered with the Merchant Center account once (needs Admin access):
raw_request POST accounts/v1/accounts/{account}/developerRegistration:registerGcp body: {"developerEmail": "you@example.com"}You can do it right from the assistant with the
raw_requesttool, or with any HTTP client. Until then every call fails with a permission error.
Installation
claude mcp add google-merchants \
-e GOOGLE_MERCHANTS_CLIENT_ID=your_client_id \
-e GOOGLE_MERCHANTS_CLIENT_SECRET=your_client_secret \
-e GOOGLE_MERCHANTS_REFRESH_TOKEN=your_refresh_token \
-e GOOGLE_MERCHANTS_ACCOUNT_ID=your_merchant_id \
-- npx -y mcp-google-merchantsclaude_desktop_config.json — macOS ~/Library/Application Support/Claude/, Windows %APPDATA%\Claude\
{
"mcpServers": {
"google-merchants": {
"command": "npx",
"args": ["-y", "mcp-google-merchants"],
"env": {
"GOOGLE_MERCHANTS_CLIENT_ID": "your_client_id",
"GOOGLE_MERCHANTS_CLIENT_SECRET": "your_client_secret",
"GOOGLE_MERCHANTS_REFRESH_TOKEN": "your_refresh_token",
"GOOGLE_MERCHANTS_ACCOUNT_ID": "your_merchant_id"
}
}
}
}~/.cursor/mcp.json (or .cursor/mcp.json in a project)
{
"mcpServers": {
"google-merchants": {
"command": "npx",
"args": ["-y", "mcp-google-merchants"],
"env": {
"GOOGLE_MERCHANTS_CLIENT_ID": "your_client_id",
"GOOGLE_MERCHANTS_CLIENT_SECRET": "your_client_secret",
"GOOGLE_MERCHANTS_REFRESH_TOKEN": "your_refresh_token",
"GOOGLE_MERCHANTS_ACCOUNT_ID": "your_merchant_id"
}
}
}
}.vscode/mcp.json — note the servers key (not mcpServers)
{
"servers": {
"google-merchants": {
"type": "stdio",
"command": "npx",
"args": ["-y", "mcp-google-merchants"],
"env": {
"GOOGLE_MERCHANTS_CLIENT_ID": "your_client_id",
"GOOGLE_MERCHANTS_CLIENT_SECRET": "your_client_secret",
"GOOGLE_MERCHANTS_REFRESH_TOKEN": "your_refresh_token",
"GOOGLE_MERCHANTS_ACCOUNT_ID": "your_merchant_id"
}
}
}
}Getting access
Create (or pick) a Google Cloud project at console.cloud.google.com and enable the Merchant API (APIs & Services → Library → "Merchant API" → Enable).
Configure the OAuth consent screen (APIs & Services → OAuth consent screen): External, fill in the app name and your email, and add yourself as a test user (Testing mode is fine for personal use).
Create an OAuth client (APIs & Services → Credentials → Create credentials → OAuth client ID → Desktop app). Save the client ID and client secret.
Mint a refresh token for the scope
https://www.googleapis.com/auth/content. The quickest way is the OAuth 2.0 Playground:click the gear icon → check Use your own OAuth credentials → paste your client ID/secret;
in Step 1 enter the scope
https://www.googleapis.com/auth/contentand authorize with the Google account that has access to your Merchant Center;in Step 2 click Exchange authorization code for tokens and copy the refresh token.
(Any other flow works too — the server only needs the resulting refresh token. For quick experiments you can instead pass a short-lived access token as
GOOGLE_MERCHANTS_ACCESS_TOKEN, e.g. fromgcloud auth print-access-token.)Find your Merchant Center ID — the number in the top-right corner of merchants.google.com — and put it in
GOOGLE_MERCHANTS_ACCOUNT_ID(or passaccountper tool call, or discover it withlist_accounts).Register your GCP project with the Merchant Center account (one-time, Admin access required) — see API access.
⚠️ Credentials are stored in plain text in your MCP client config — treat them like passwords. The refresh token grants full read/write access to your Merchant Center.
Configuration
Variable | Required | Default | Description |
| yes* | — | OAuth 2.0 client ID. |
| yes* | — | OAuth 2.0 client secret. |
| yes* | — | OAuth refresh token (scope |
| yes* | — | Pre-minted access token (~1h) — alternative to the three above. |
| no | — | Default Merchant Center account ID; tools can override per call. |
| no |
| API root override. |
| no |
| OAuth token endpoint override. |
| no |
| Per-request timeout, ms. |
| no |
| Retries on transient errors. |
* Either the client ID + secret + refresh token trio, or a bare access token.
Requirements
Node.js 20+ (runs via
npx, no separate install needed).A Merchant Center account and a registered Google Cloud project — see Getting access.
Limitations
Product writes are asynchronous. After
insert_product_input/delete_product_inputthe processed product updates within minutes — an immediateget_productmay 404 or show stale data. Data-quality problems appear later inproductStatus.itemLevelIssues, not as API errors.price_competitiveness/price_insightsreturn rows only for accounts opted into Market Insights (free, in Merchant Center settings).list_product_issuesworks for sub-accounts and standalone accounts only, not for advanced (parent) accounts.Quotas are per-account with daily counters resetting at 12:00 UTC (midday). Check your current usage with
list_method_quotas.
Documentation
All tools — full list with details.
Development — build, tests, smoke check.
Publishing — releases and MCP registry listing.
Support
Questions, ideas and contributions — Telegram: @gistrec or GitHub issues.
License
MIT — see LICENSE.
Maintenance
Related MCP Servers
- -license-quality-maintenanceEnables AI assistants to manage Google Ads accounts by providing tools for querying account data and performing write operations such as updating campaign budgets, statuses, and bidding strategies.Last updated2
- Alicense-qualityDmaintenanceMCP server for Google Merchant Center, providing 126 tools to manage Google Shopping feed, products, inventory, reports, promotions, returns, and account configuration via natural language.Last updated11MIT
- AlicenseAqualityCmaintenanceEnables reading products, checking approval statuses, and analyzing feeds across multiple Google Merchant Center accounts via natural language.Last updated69MIT
- Alicense-qualityBmaintenanceEnables AI agents to interact with Google Ads accounts by searching, retrieving resource metadata, and listing accessible customers via the Google Ads API.Last updatedApache 2.0
Related MCP Connectors
Manage your Savanto store from your AI: catalog, content, prompts, and analytics, by chat.
Connect e-commerce and marketing data to AI assistants via MCP.
Merchant verification for AI shopping agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/A1-x-Tech/mcp-google-merchants'
If you have feedback or need assistance with the MCP directory API, please join our Discord server