Ecommerce MCP Server Development
Short answer
Agent Commerce Optimization builds custom Model Context Protocol (MCP) servers for ecommerce when native platform servers do not cover the job: compatible-part lookup, private quote drafts, or authorized order lookup against your ERP. We check Shopify, WooCommerce, and BigCommerce native MCP tools first, then build only the missing tools, with least-privilege authorization, tested denied-access cases, and a runbook your team owns.
Key takeaways
- Shopify, WooCommerce, and BigCommerce each document native MCP capabilities; check them before commissioning a custom server.
- Custom tools earn their place when they encode business logic or private data that native tools cannot reach.
- Every tool has an access rule, a denied-access test, and documented errors.
- Security follows the MCP security best practices: no token passthrough, minimal scopes, handles bound to the authenticated user.
- Publishing an MCP server does not, by itself, put your products on any AI shopping channel.
Who can build an MCP server for our store?
We can, when one is warranted. The Model Context Protocol (MCP) is an open protocol through which AI applications discover and call tools exposed by a server. For a store, a custom MCP server is useful when an assistant or agent must answer questions your platform's tools cannot answer, such as "which filter fits my 2019 model" or "what did my company order last quarter", or must prepare an action, such as a quote draft, under your business rules.
The buyers are technical founders, headless-store teams, B2B ecommerce teams with customer-specific data, and agencies that need a specialist. For protocol background, read the MCP for ecommerce guide; this page covers the service.
Do we need a custom MCP server if our platform already has one?
Often you do not. Each major platform now documents its own MCP capabilities, verified against their documentation on 2026-11-29:
| Platform | Native MCP capability | Status and notes | Custom work still needed when |
|---|---|---|---|
| Shopify | Storefront Catalog MCP at /api/ucp/mcp: search_catalog, lookup_catalog, get_product, plus location tools | Every request needs a UCP agent profile URL. The old catalog and cart tools on /api/mcp were removed; see the migration guide | Logic Shopify does not model: fitment, configurators, ERP data, B2B quotes |
| Shopify (other servers) | Cart MCP, Checkout MCP, Ask MCP (ask_business), Order MCP, Customer Accounts MCP | Checkout MCP requests must be authenticated or signed | Rarely; check these before building cart or policy tools |
| WooCommerce | Product and order abilities exposed through the WordPress MCP Adapter plugin | Developer preview. The old WooCommerce endpoint was removed in 11.3. Remote access uses an Application Password, not a REST API key | Customer-facing tools, since native abilities are admin operations; data outside WooCommerce |
| BigCommerce | Storefront MCP on every store (B2B Edition adds shopping list and quote tools); Store Management MCP | Store Management MCP is in early access for all stores; users start with no access until scopes are granted | ERP or PIM data, custom pricing logic, cross-system order history |
Native servers are maintained by the platform, follow its auth model, and track its protocol changes. A custom server is code you maintain. We recommend one only where the gap is concrete. Platform pages: Shopify, WooCommerce, BigCommerce.
What tools should an ecommerce MCP server expose?
As few as the job requires, each with a narrow input schema and an explicit access rule. Below is a synthetic tool inventory for a fictional B2B parts distributor.
| Tool | Purpose | Data source | Access rule | Side effects |
|---|---|---|---|---|
| find_compatible_parts | Return parts that fit a given equipment model and serial range | PIM fitment table | Public; no customer data returned | None (read-only) |
| get_part_availability | Stock by warehouse and lead time for up to 10 SKUs | ERP availability API, cached up to 5 minutes | Public; quantities above a threshold shown as "10+" | None |
| draft_quote | Create a draft quote with customer-specific pricing | ERP pricing + quote service | Authenticated buyer with quote:create scope for their own account | Creates a draft only; a human sales rep approves |
| lookup_order | Return status and tracking for an order | OMS | Authenticated buyer; order must belong to the token's account | None |
No tool here places an order or charges a payment. Where an agent must complete a purchase, use a documented checkout protocol path, scoped under agentic checkout integration or UCP integration.
What does a custom ecommerce MCP server architecture look like?
MCP client (assistant, agent)
| Streamable HTTP, OAuth access token (audience = this server)
v
[MCP server]
|- auth: validate token audience + scopes; derive account_id from token
|- tool router: input schema validation, rate limits per account
|- policy: per-tool access rule, response field allowlist
|- adapters (server's own credentials, never the client token):
| PIM (fitment) ERP (stock, price, quotes) OMS (orders)
|- audit log: tool, account, decision, latency, correlation id
v
Errors: typed codes (not_found, forbidden, stale_data, upstream_unavailable)The server holds no business logic that belongs in the ERP or PIM; it translates and enforces. For a worked TypeScript implementation, see building an ecommerce MCP server in TypeScript. For a running demonstration of catalog tools in an assistant, see the catalog shopping assistant demo.
How do you secure an MCP server that touches orders or pricing?
By following the MCP project's security best practices and testing the cases where access should be refused. Key rules we apply, from that document:
- No token passthrough. The server accepts only tokens issued for it and calls downstream systems with its own credentials.
- Scope minimization. Start with read-only discovery scopes; require step-up authorization for quote or account tools; no wildcard scopes.
- State handles are not authentication. The current MCP specification (2026-07-28) is stateless; cart or quote IDs are random, expiring, and bound server-side to the authenticated account.
- Per-client consent if the server proxies a third-party authorization server, with exact redirect URI matching.
- Response allowlists. Tools return only the fields their purpose needs; order lookups never return full payment details.
| Case | Expected behavior |
|---|---|
| lookup_order for an order belonging to another account | forbidden; no confirmation that the order exists |
| draft_quote with a token lacking quote:create | Insufficient-scope challenge naming only the needed scope |
| Token issued for a different audience | Rejected; not forwarded downstream |
| Reused or guessed quote handle from another account | not_found |
| Bulk enumeration of SKUs beyond the per-call limit | Validation error; rate limit applies |
Authentication patterns are covered in depth in MCP server authentication for ecommerce.
How should an ecommerce MCP server handle errors and stale data?
Return typed, honest errors that an assistant can explain to a buyer. If the ERP is down, the availability tool returns upstream_unavailable instead of a cached number presented as live. If cached data is older than its freshness window, the response carries the timestamp and a stale flag. Errors never include internal hostnames, stack traces, or personal data.
What is included in MCP server development?
| Deliverable | Included | Not included |
|---|---|---|
| Native gap assessment | Which native tools cover the need, and which gaps remain | Building tools that duplicate native ones |
| Tool design | Inventory, input and output schemas, access rules, error codes | Open-ended "do anything" tools |
| Server implementation | TypeScript or Python on the current MCP specification, with adapters to your systems | Changes inside your ERP or PIM |
| Authorization | OAuth integration with your identity provider, scopes, consent where proxying | Running your identity provider |
| Tests | Contract tests, denied-access tests, fixture data, client compatibility check with the clients you name | Guarantees about third-party client behavior |
| Handoff | Repository, deployment config, runbook, tool documentation, recorded walkthrough | Hosting, unless separately agreed |
What is the process, and what access do you need?
- 1
Native check
Test the platform's MCP servers against your use cases. Decision point: build, configure, or stop.
- 2
Tool design
Agree the inventory, access rules, and acceptance tests. Decision point: sign-off on scopes and side effects.
- 3
Access
Read-only API credentials for source systems in a test environment, a test identity provider tenant, and sample accounts.
- 4
Build and test
Implement, run contract and denied-access tests, test against named clients.
- 5
Handoff
Deploy to your environment, transfer credentials, walk through the runbook.
What are the acceptance criteria for an MCP server?
- Every tool passes its contract tests against fixture and staging data.
- Every denied-access case returns the documented error.
- No tool returns fields outside its allowlist.
- Latency and rate limits meet the agreed targets under the agreed load.
- A named MCP client can list and call each tool in the target environment.
Who maintains the server when the MCP spec or our platform changes?
Your team, with our runbook, or us under a support agreement. The repository pins the MCP specification and SDK versions. MCP has changed in material ways, including moving to a stateless model in the 2026-07-28 version, and platforms have removed tools before, as Shopify did on /api/mcp, so upgrades are planned as change requests with re-run tests.
How much does MCP server development cost?
Quoted after the native check and tool design; no published rates. Scope grows with the number of tools, how many systems they touch, whether tools need authenticated customer data, side-effecting tools that need approval flows, and the number of clients to test against. Cost drivers are explained in the MCP server development cost guide.
Frequently asked questions
Will an MCP server get our products into ChatGPT shopping?
No. AI shopping channels use their own catalog and feed programs. An MCP server serves the clients that connect to it, such as your own assistant or an agent a customer configures.
Should we use Shopify's Storefront Catalog MCP or build our own?
Use Shopify's server for catalog search and product details. Build a custom server only for data or logic Shopify does not hold, such as ERP stock, fitment rules, or B2B quotes.
Can an MCP server place orders?
It can, but we do not build order placement as a generic tool. Purchases should go through a documented checkout path with explicit buyer approval, and quote or cart tools stop at a draft.
Which language and transport do you use?
Usually TypeScript with the official SDK and Streamable HTTP for remote servers. We pin the specification version in the repository.
Do you support WooCommerce MCP in production?
WooCommerce documents its MCP support as a developer preview that may change. We test it for your use case and note that status in the risk register.
How do you stop an agent from seeing another customer's orders?
The account is derived from the verified token, never from tool input, and every order lookup checks ownership server-side. Denied-access tests prove it before handoff.
Can you inspect our existing MCP server?
Yes. We can review the tool inventory, scopes, and error handling as a short engagement; the MCP tool inspector covers the basics.
Check whether you need a custom MCP server
Tell us your platform, the systems the tools must reach, and the questions or actions they should handle. We will test the native tools first.
Related
- Build an ecommerce MCP server in TypeScriptStep-by-step implementation.
- Catalog shopping assistant demoCatalog tools running in an assistant.
- MCP for ecommerce guideProtocol background for merchants.
- Shopify Storefront MCP migrationWhat moved from /api/mcp.
- MCP commerce starterStarter code for catalog tools.
Sources
- Shopify: Storefront Catalog MCP
- Shopify: Storefront MCP migration
- WooCommerce developer docs: MCP
- BigCommerce developer changelog, 2026-11-19
- Model Context Protocol: Security best practices (2026-07-28)
Platform capabilities, eligibility, and specifications change. Sources were checked on 2026-11-29; confirm the current primary documentation before scoping an implementation. See our editorial policy and methodology.