5 min read
Build a Storefront Catalog MCP for One Merchant
How to build a Storefront Catalog MCP for a single merchant: search_catalog, lookup_catalog, get_product, an agent profile, and when a global catalog is wrong.

On this page
If you run a single store and want AI agents to find and recommend your products accurately, a Storefront Catalog MCP is the cleanest place to start. It is a small Model Context Protocol server that exposes your catalog, and only your catalog, to any agent that connects to it. No checkout, no refunds, no customer data. Just products, described the way you want them described.
In this post I will walk through the three tools I build first, the agent profile that sits beside them, and the cases where a broad global catalog gives agents the wrong answer.
Why a single-merchant catalog MCP
Shopping agents need structured product data. They can scrape your product pages, but scraped data is fragile. Prices go stale, variants get merged, and out of stock items get recommended with confidence.
A catalog MCP flips that. Instead of the agent guessing, your store answers directly with current data from the same source your storefront uses. Because the server only serves one merchant, you control the schema, the ranking, and the wording. It is also read only, which makes it the safest first MCP you can ship. Nothing an agent calls here can move money or change an order.
The three core tools
I keep the surface small on purpose. Fewer tools means fewer ways for an agent to misuse them and less for you to maintain.
search_catalog
This is the discovery tool. It takes a natural query plus optional filters and returns a short ranked list.
search_catalog({
query: "waterproof hiking boots",
filters: { size: "42", maxPrice: 150, inStock: true },
limit: 10
})A few rules I follow:
- Cap
limiton the server, not just in the schema. Ten or twenty results is plenty. - Return summaries, not full records. Title, price, currency, availability, a thumbnail URL, and the product id.
- Validate every filter against an allow list. Unknown keys get rejected, not ignored.
lookup_catalog
Agents often already know what they want. A shopper pastes a SKU, a GTIN, or a product URL from your site. lookup_catalog resolves those identifiers to your internal product ids in one call.
lookup_catalog({ identifiers: ["SKU-88231", "0012345678905"] })This avoids the agent running a fuzzy search for something that has an exact answer. It also makes deduplication easy when an agent is comparing items across sessions.
get_product
Once the agent has an id, get_product returns the full record: variants, options, stock per variant, shipping notes, return policy summary, and canonical URL.
Keep this response honest. If a variant is low on stock, say so. If shipping to a region is not supported, include that. Agents repeat what you give them, so give them the facts that prevent a bad recommendation.
Write an agent profile
Next to the tools, I publish a short agent profile. Think of it as the store's briefing for any agent that connects. It usually covers:
- Who the store is and what it sells
- Regions and currencies served
- Shipping and return policy in plain terms
- How to refer to products (brand names, sizing conventions)
- What the agent should not do, such as promising delivery dates the store does not guarantee
- Where checkout happens, typically a link back to your storefront
The profile does not replace tool data. It gives context so the agent describes your store the way your own support team would. Keep it short and factual, and version it so you know which profile an agent saw.
When a global catalog is the wrong answer
Large aggregated catalogs are useful for broad product discovery across many sellers. For a single merchant, they can work against you in a few specific ways.
Your variants are unusual. If you sell custom sizes, bundles, or made-to-order options, a normalized global schema often flattens them. The agent then recommends a combination that does not exist.
Your prices change often. Flash sales, regional pricing, or member pricing rarely sync cleanly to an external index. A direct MCP reads the live price.
Your stock is tight. Small shops with limited inventory need real-time availability. A stale "in stock" flag leads to disappointed customers and support tickets.
Your brand voice matters. Aggregators rewrite descriptions to fit their own format. Your MCP returns your copy.
You need clear attribution. When an agent recommends your product from your own server, you know exactly which call produced that recommendation. That matters later when you want to measure agent-driven sales.
None of this means you should ignore global catalogs. Many merchants should be present in both. But your own MCP should be the source of truth, and anything else should be treated as a copy.
Implementation notes from real builds
A few practical choices that save time:
- Reuse your storefront data layer. If you run Next.js with a commerce backend, call the same product service your pages use. Do not create a second sync job.
- Cache with short TTLs. Product summaries can be cached for a minute or two. Stock should be fresher or fetched live in
get_product. - Return stable ids. Agents store ids between calls. Changing them breaks multi-step flows.
- Add rate limits from day one. Even read only tools can be hammered by an agent in a retry loop. Per-client limits keep your storefront fast for human shoppers.
- Log every call. Tool name, arguments, client id, and result count. You will want this for debugging and for attribution.
- Keep it read only. Cart, checkout, and order tools belong in a separate server with separate credentials. Mixing them into the catalog server widens the blast radius for no benefit.
A simple rollout plan
- Ship
get_productfirst, because it is the easiest to test against your existing product pages. - Add
lookup_catalogfor exact identifiers. - Add
search_catalogonce you are happy with ranking and filters. - Publish the agent profile and test with two or three different agent clients.
- Review logs weekly for empty searches. Those queries tell you what shoppers are asking for that your catalog does not answer well.
Wrapping up
A Storefront Catalog MCP is a small, read only project with a clear payoff: agents describe your products accurately, using your live data and your words. Start with three tools, a short agent profile, and good logging, and you have a foundation that later checkout or support tools can build on safely.
If you want help building a catalog MCP for your store, or extending it into a Next.js eCommerce checkout, AI agents, or a RAG layer over your product content, I would be glad to talk. You can reach me through my contact section or email me at ahmadraza365pro@gmail.com.


