Skip to navigation

Storefront MCP

Storefront MCP lets AI agents shop your storefront on behalf of a shopper. Agents can search products, manage a cart, and hand off to checkout through natural language, using the same access a shopper has. Each storefront has its own MCP server URL.

This page covers which tools Storefront MCP exposes, how to enable it, and how to connect an AI client.

Available tools

ToolsAvailable to
Storefront toolsEvery session on every store: guests, logged-in customers, and B2B buyers
B2B toolsAdditional tools on B2B Edition stores, for authenticated Buyer Portal users with the matching buyer permission

Both are served from the same MCP endpoint. The storefront tools (catalog, cart, and checkout) are the base set, and every session gets them, whether or not the store has B2B Edition. On B2B Edition stores, the B2B tools (shopping lists and quotes) are added on top, gated per tool by the authenticated buyer’s permissions. Logged-in customers and B2B buyers both authenticate the same way. See Connecting with session sync.

The set of tools a session sees can change mid-session when permissions or configuration change. For how agents should handle this, see Tool Resynchronization.

Prerequisites

  • A BigCommerce store with an active storefront
  • Node.js version 18 or higher (for npx mcp-remote)

Enable Storefront MCP

You must be a store owner to enable Storefront MCP on a store.

1

Open MCP settings

In the BigCommerce control panel, go to Settings. Under API and MCP, select MCP.

API and MCP section of the Settings page in the BigCommerce control panel, with the MCP option listed
2

Enable Storefront MCP and accept the terms

On the MCP page, turn on the Storefront MCP toggle. Review and accept the terms of service to enable the MCP server for your store.

After you accept, the page shows who accepted the terms and when.

3

Get your MCP server URL

Under Select storefront, choose a storefront to view its MCP API Endpoint. Each storefront has its own unique MCP server URL.

Copy the URL and share it with your development team or partner solutions you want to integrate with.

MCP settings page with Storefront MCP enabled, a storefront selected, and its MCP API Endpoint URL

Connect your AI client

Once you’ve enabled Storefront MCP in the control panel, you have an MCP server URL specific to your storefront. Replace <YOUR_MCP_SERVER_URL> in the snippets below with that URL.

The steps below happen in your AI client (Claude Desktop, Claude Code, Cursor, or Warp), not in the BigCommerce control panel. Select the tab for the client you use.

In Claude Desktop, go to Settings → Developer → Edit Config and add the following:

claude_desktop_config.json
{
"mcpServers": {
"bigcommerce": {
"command": "npx",
"args": ["mcp-remote", "<YOUR_MCP_SERVER_URL>"]
}
}
}

Connecting with session sync (Stencil storefronts)

If you are building a chat widget on a Stencil storefront and want the agent to operate in the shopper’s existing browser session, pass a sync token at initialization. This is the same mechanism for storefront and B2B tools. It links the MCP session to a logged-in customer session or an authenticated B2B buyer session, including the buyer’s company and permissions:

POST /api/mcp
X-Bc-Storefront-Sync-Token: <token-from-generateSessionSyncToken>

See Storefront session sync for setup instructions, including how to generate the token from Stencil and how to handle reverse sync when a new cart is created.

After you enable Storefront MCP in the control panel, it can take up to 10 minutes for the server to become fully available.