- Home
- MCP servers
- Demo Shopify Storefront
Demo Shopify Storefront
- typescript
2
GitHub Stars
typescript
Language
6 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
You can run a multi-store Shopify MCP server to access store data and perform actions like product searches, cart creation, and cart updates across several stores from one centralized MCP backend.
How to use
You interact with the server through an MCP client. For multi-store usage, you specify a storeId in your tool calls to target a particular Shopify store. The server exposes common shopping functions across stores, so you can switch between stores by changing the storeId parameter without restarting or reconfiguring the server.
Key store operations you can perform include listing configured stores, searching products within a single store, and managing a shopping cart. Each tool requires you to pass the storeId to indicate which store you are operating on.
How to install
Prerequisites you need before you install this MCP server:
- Node.js installed on your machine (recommended LTS version)
- npm installed with Node.js (npm is bundled with Node.js)
Step by step setup and run flow you can follow now:
# First, set up environment files for single or multi-store usage
cp .env.example .env
# or for multi-store setup
cp .env.stores.example .env
# Install dependencies
npm install
# Build the MCP server
npm run build
# Start the MCP server
npm start
Notes and tips
You can switch between stores by adjusting the storeId parameter in the tools you call. The server is designed to support multiple Shopify stores simultaneously, so you can configure several stores, each with its own credentials and display name, in the environment configuration.
Configuration and security
Prepare environment values for each store and for the global server configuration. You will typically provide the domain, Storefront API token, Admin API token (for advanced operations), and your app’s API key/secret. Guard these credentials and do not expose them in client-facing code or logs.
Available tools
listStores
List all configured and enabled stores so you can select the target store for subsequent actions.
findProducts
Search products within a specific store using keywords or filters, returning matching product data.
getProductById
Retrieve detailed information for a product by its Shopify product ID.
cartCreate
Create a new shopping cart for a given store and initialize it for use.
cartLinesAdd
Add items to a cart by specifying product variants and quantities.
cartLinesUpdate
Update quantities or variant selections for items already in a cart.
cartLinesRemove
Remove items from a cart by item line or product variant.
getCart
Retrieve full cart details including line items, totals, and discounts.