AI agent 06 · Model Context Protocol · Claude Desktop / Claude Code

Store MCP Server

Your team asks Claude about the store in plain language — "how did we do this week?", "what should I reorder?" — and Claude answers through ten tools that compute every number in code and return it with its date range. Read-only and free of customer personal data by default; tagging orders is an opt-in, two-step preview → confirm flow.

v1 · 11 testsused end to end from Claude Codenot yet on a real storeMCP TypeScript SDKAdmin GraphQL

A real session from Claude Code

Recorded on 26 Nov 2026: headless Claude Code with this server attached over stdio, sample store, read-only, only four tools allowed. Not edited except formatting. I re-checked every number below against the data afterwards — all match.

Q: How did the store do in the last 7 days compared with the 7 days before, and which 3 variants should I reorder first? Keep it short.

store_overview24 orders, $13,382.29 net in 2026-11-18 → 24; 68 variants ≤ 5 units
inventory_report68 variants ≤ 5 units (30 sold out), pace from the last 30 days
sales_summary2026-11-11 → 17: 16 orders, $11,081.09 net
inventory_reportlimit 100, to rank sold-out variants by sales
Nov 18–24Nov 11–17Change
Net sales$13,382.29$11,081.09+20.8%
Orders2416+50%
Avg order value$557.60$692.57−19.5%
Units sold130125+4%

"More orders, but each one smaller. The earlier week was lumpy — Nov 15–16 alone was $8,408.68 (~76% of that week). Reorder first (sold out, highest 30-day sales): Joggers in technical microfiber soft-shell / 34 — 12 sold; Waterproof Wading Jacket clay / L — 8 sold; Compact Camping Stool breathable / small — 8 sold. Next: High-Tech Synthetic Trousers 32 / nylon-blend — 4 left, 10 sold, about 12 days of cover."

Claude's answer, shortened. Full transcript in the repo: docs/claude-code-session.md.

Try the tools

An inspector over the server's real tool definitions and input schemas, running on the sample store in your browser. Pick a tool, change the arguments, call it — this is exactly what Claude receives. Dashed tools are the write tools that only exist with --allow-writes.

● shopify-store MCP · 10 tools · sample storewrites change only this page's copy
Results appear here.

Tools

ToolAnswersRule
store_overviewCatalog size, last 7 days, low-stock countStart here
sales_summaryOrders, gross/net, discounts, AOV, per-day seriesAlways returns the period; cancelled orders counted separately
top_productsBest sellers by units or revenueDefault last 30 days
find_orders / get_orderOrders by date, status, tag, total, noteCustomers as ids only; notes as note_untrusted
inventory_reportWhat to reorderOn hand, sold in 30 days, days of cover
search_products · review_insightsProducts, ratings, recent low reviewsReview text as _untrusted
preview_order_tags → apply_order_tagsTag ordersOpt-in; preview returns a 10-minute single-use token; audit log

Also: store policies as MCP resources and two prompts, weekly_report and restock_check.

Design choices

Setup for a store

claude mcp add shopify-store -- npx tsx /path/to/shopify-store-mcp/src/index.ts

# Claude Desktop: claude_desktop_config.json
{ "mcpServers": { "shopify-store": {
    "command": "npx", "args": ["tsx", "/path/to/src/index.ts"],
    "env": { "SHOPIFY_STORE_DOMAIN": "your-store.myshopify.com", "SHOPIFY_ADMIN_TOKEN": "shpat_…" } } } }

Custom app scopes: read_orders, read_products, read_customers (id only), read_legal_policies, plus write_orders if writes are on. All Admin operations validated against API 2026-10.

Results

WhatResult
Tests through a real MCP client (numbers vs hand count, PII never returned, notes untrusted, preview/apply/expiry/single use, tag format)11 / 11 pass
End-to-end from Claude Code on the sample storeCorrect — every number re-checked
Run against a real storeNot yet (GraphQL validated, not executed)

What AI wrote vs what I decided

AI (Claude Code)

Drafted the server, tool code, Shopify adapter and tests; generated and checked the session transcript.

Me

Chose the ten tools and their outputs, "code computes", no-PII, the token-based write flow and the limits; verified the Claude session's numbers against the data.