shopify-mcp-complete
Provides tools for managing a Shopify store through the GraphQL Admin API, covering products, orders, customers, inventory, analytics, discounts, collections, themes, and shop/location information.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@shopify-mcp-complete show me my 10 most recent orders"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
shopify-mcp-complete
A comprehensive Model Context Protocol (MCP) server for Shopify's GraphQL Admin API. Provides 44 tools for managing products, orders, customers, inventory, analytics, discounts, collections, themes, and more.
Features
44 MCP Tools covering all major Shopify operations
Full CRUD Support for products, customers, orders, and more
Inventory Management - adjust, set, transfer, and track stock levels
ShopifyQL Analytics - run custom analytics queries for sales, customers, products
Theme Access - read and modify theme files (templates, sections, assets)
TypeScript with full type safety and Zod validation
Latest Shopify API - Uses GraphQL Admin API version 2026-01
Related MCP server: Shopify MCP Server
Tools Overview
Category | Tools | Description |
Products | 8 | CRUD, variants, images, metafields |
Orders | 7 | List, update, cancel, draft orders, fulfillment |
Customers | 6 | CRUD, order history |
Inventory | 6 | Get levels, adjust, set, bulk adjust, transfer |
Analytics | 4 | ShopifyQL queries, sales reports, product performance |
Discounts | 4 | Create, list, update, delete discount codes |
Collections | 3 | List, products, create/update |
Themes | 4 | List themes, read/write theme files |
Shop | 2 | Store info, locations |
Installation
npm install shopify-mcp-completeOr run directly with npx:
npx shopify-mcp-complete --clientId=YOUR_CLIENT_ID --clientSecret=YOUR_SECRET --domain=your-store.myshopify.comAuthentication
OAuth Mode (Recommended)
As of January 1, 2026, Shopify requires OAuth client credentials for custom apps. This server supports automatic token refresh (tokens expire every 24 hours).
Go to your Shopify Partners Dashboard
Navigate to Apps → Your App → Client credentials
Copy your Client ID and Client Secret
Legacy Mode
If you have an existing static access token (shpat_...), you can still use it, but this method is deprecated.
Configuration
Option 1: Environment Variables (Recommended)
Create a .env file:
# OAuth Mode (Recommended)
SHOPIFY_CLIENT_ID=your_client_id
SHOPIFY_CLIENT_SECRET=shpss_your_client_secret
MYSHOPIFY_DOMAIN=your-store.myshopify.com
# Legacy Mode (Deprecated)
# SHOPIFY_ACCESS_TOKEN=shpat_your_access_token
# MYSHOPIFY_DOMAIN=your-store.myshopify.comOption 2: Command Line Arguments
# OAuth Mode
npx shopify-mcp-complete \
--clientId=your_client_id \
--clientSecret=shpss_your_client_secret \
--domain=your-store.myshopify.com
# Legacy Mode
npx shopify-mcp-complete \
--accessToken=shpat_your_access_token \
--domain=your-store.myshopify.comOption 3: Claude Desktop Configuration
Add to your Claude Desktop config:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"shopify": {
"command": "npx",
"args": ["shopify-mcp-complete"],
"env": {
"SHOPIFY_CLIENT_ID": "your_client_id",
"SHOPIFY_CLIENT_SECRET": "shpss_your_client_secret",
"MYSHOPIFY_DOMAIN": "your-store.myshopify.com"
}
}
}
}Required Shopify Scopes
Configure your app in the Shopify Partners Dashboard with these scopes.
Quick Copy-Paste (All Scopes)
read_products,write_products,read_orders,write_orders,read_customers,write_customers,read_inventory,write_inventory,read_reports,read_discounts,write_discounts,read_price_rules,write_price_rules,read_fulfillments,write_fulfillments,read_draft_orders,write_draft_orders,read_locations,read_themes,write_themesScopes by Feature
Feature | Scopes Required |
Products |
|
Orders |
|
Customers |
|
Inventory |
|
Analytics/ShopifyQL |
|
Discounts |
|
Fulfillment |
|
Draft Orders |
|
Locations |
|
Themes |
|
Minimum Scopes (Read-Only)
If you only need read access:
read_products,read_orders,read_customers,read_inventory,read_reports,read_discounts,read_price_rules,read_fulfillments,read_draft_orders,read_locations,read_themesImportant:
The
read_reportsscope is required for ShopifyQL-based analytics tools (sales-report,shopifyql-query,product-performance). Without it, these tools will return access denied errors.The
write_themesscope requires an exemption from Shopify for production apps. Request exemption here.
Tool Reference
Products
Tool | Description |
| List products with search/filter |
| Get detailed product info |
| Create new product |
| Update product attributes |
| Delete product |
| Create/update/delete variants |
| Add/remove product images |
| Set/delete metafields |
Orders
Tool | Description |
| List orders with filters |
| Get detailed order info |
| Update order note, tags, etc. |
| Cancel an order |
| Create draft order |
| Convert draft to order |
| Create fulfillment |
Customers
Tool | Description |
| List customers |
| Get customer details |
| Create new customer |
| Update customer |
| Delete customer |
| Get customer's orders |
Inventory
Tool | Description |
| Get stock levels |
| Adjust quantity (delta) |
| Set to specific quantity |
| Adjust multiple items |
| List locations |
| Move between locations |
Analytics
Tool | Description |
| Execute custom ShopifyQL |
| Sales analytics by period |
| Customer insights |
| Top products by sales |
Discounts
Tool | Description |
| Create discount code |
| List discounts |
| Update discount |
| Delete discount |
Collections
Tool | Description |
| List collections |
| Products in collection |
| Create/update collection |
Themes
Tool | Description |
| List all themes (published, drafts, dev) |
| Read theme files (templates, sections, assets) |
| Create or update theme files |
| Delete theme files |
Shop
Tool | Description |
| Store configuration |
| Fulfillment locations |
Usage Examples
Once connected to Claude, you can use natural language to interact with your Shopify store:
"List all my active products" - Uses
get-productstool"Show me products with low inventory" - Uses
get-inventory-levelstool"What are my sales for the last 30 days?" - Uses
sales-reporttool"Add 50 units to product X inventory" - Uses
adjust-inventorytool"Create a 20% discount code SUMMER20" - Uses
create-discounttool
Development
# Install dependencies
npm install
# Development mode with hot reload
npm run dev
# Build
npm run build
# Run tests
npm test
# Type check
npm run typecheckLicense
MIT
Contributing
Contributions are welcome! Please open an issue or pull request.
Available Tools
45 toolsadjust-inventoryB
Adjust inventory quantity for a specific variant at a location. Use positive delta to add stock, negative to remove. This is for incremental changes.
Inputs: delta (required), locationId (required), inventoryItemId (required), reason, +1 more.
bulk-adjust-inventoryC
Adjust inventory quantities for multiple items at once. Efficient for batch updates.
Inputs: adjustments (required), reason.
cancel-orderC
Cancel an order with optional reason, customer notification, refund, and restock options.
Inputs: orderId (required), reason, refund, restock, +1 more.
complete-draft-orderB
Convert a draft order into a real order. Can mark payment as pending or immediately paid.
Inputs: draftOrderId (required), paymentPending.
create-customerC
Create a new customer with email, phone, name, addresses, and optional marketing consent.
Inputs: note, tags, email, phone, +6 more.
create-discountB
Create a new discount code with specified value (percentage or fixed amount), usage limits, date range, and product applicability.
Inputs: code (required), title (required), value (required), valueType (required), +6 more.
create-draft-orderB
Create a draft order with line items, customer, shipping address, and optional discount. Draft orders can be converted to real orders.
Inputs: lineItems (required), note, tags, email, +5 more.
create-productC
Create a new product with optional variants, metafields, and initial configuration.
Inputs: title (required), tags, status, vendor, +4 more.
customer-segmentsB
Get customer analytics showing top customers by total spent, order count, and engagement. Useful for identifying VIP customers.
Inputs: limit.
delete-customerA
Permanently delete a customer from the store. This cannot be undone.
Inputs: customerId (required).
delete-discountB
Delete a discount code. This cannot be undone.
Inputs: discountId (required).
delete-productA
Permanently delete a product from the store. This cannot be undone.
Inputs: productId (required).
delete-theme-filesA
Delete theme files. Supports up to 50 files per request. Note: Requires write_themes scope and Shopify exemption for production apps.
Inputs: files (required), themeId (required).
fulfill-orderB
Create a fulfillment for an order with optional tracking information. Can fulfill specific line items or the entire order.
Inputs: orderId (required), locationId, lineItemIds, trackingInfo, +1 more.
get-collection-productsB
Get all products in a specific collection with pagination. Returns product details including pricing and inventory.
Inputs: collectionId (required), limit, cursor.
get-collectionsB
List collections from the store with optional search and type filter (SMART or MANUAL). Returns collection details and product counts.
Inputs: type, limit, query, cursor.
get-customer-by-idB
Get detailed information about a specific customer including addresses, marketing consent, and metafields.
Inputs: customerId (required).
get-customer-ordersB
Get order history for a specific customer with pagination support.
Inputs: customerId (required), limit, cursor.
get-customersC
List customers from the store with optional search query. Returns customer details including order count and total spent.
Inputs: limit, query, cursor.
get-discountsB
List discount codes with optional search and status filter. Returns discount details including codes, values, and usage counts.
Inputs: limit, query, cursor, status.
get-inventory-levelsC
Get inventory levels for products/variants across locations. Can filter by location, product, SKU, or low stock threshold.
Inputs: sku, limit, cursor, lowStock, +3 more.
get-locationsB
Get all inventory locations for the store including address, active status, and fulfillment capabilities.
Inputs: includeInactive.
get-order-by-idA
Get detailed information about a specific order including line items, customer, addresses, fulfillments, and transactions.
Inputs: orderId (required).
get-ordersC
List orders from the store with filters for status, financial status, fulfillment status, and date range.
Inputs: limit, query, cursor, status, +4 more.
get-product-by-idB
Get detailed information about a specific product by ID, including all variants, images, metafields, and inventory.
Inputs: productId (required).
get-productsA
List products from the store with optional search and filters. Returns product details including variants, pricing, and inventory.
Inputs: limit, cursor, status, vendor, +2 more.
get-shop-infoA
Get general information about the Shopify store including name, domain, plan, currency, timezone, and contact details.
Inputs: no named parameters.
get-shop-locationsB
Get all fulfillment and inventory locations for the store including address and capabilities.
Inputs: includeInactive.
get-theme-filesB
Read theme files (templates, sections, assets, config). Returns file content for liquid and JSON files. Use wildcards like 'templates/.json' or 'sections/.liquid' to filter files.
Inputs: themeId (required), limit, filenames.
get-themesA
List all themes in the store. Returns theme ID, name, role (MAIN=published, UNPUBLISHED=draft), and status. Use this to find theme IDs for other operations.
Inputs: roles.
manage-collectionC
Create a new collection or update an existing one. Can create manual collections with specific products or smart collections with rules.
Inputs: no named parameters.
manage-imagesB
Add or remove images from a product. Provide image URLs to add or image IDs to remove.
Inputs: productId (required), imagesToAdd, imagesToDelete.
manage-metafieldsC
Set or delete metafields on any resource (product, variant, customer, order, etc.). Use this to manage custom data.
Inputs: ownerId (required), metafieldsToSet, metafieldIdsToDelete.
manage-variantsC
Create, update, or delete product variants. Can bulk create new variants, update existing ones, or remove variants.
Inputs: productId (required), variantsToCreate, variantsToDelete, variantsToUpdate.
product-performanceC
Get product performance analytics showing top selling products by revenue or quantity. Useful for inventory planning and marketing decisions.
Inputs: limit, period, sortBy.
sales-reportB
Get a sales report for a specified time period. Can group by day, week, month, product, vendor, or channel. Returns total sales, net sales, and order counts.
Inputs: period, groupBy.
set-inventoryA
Set inventory to a specific quantity at a location. This replaces the current quantity rather than adjusting it.
Inputs: quantity (required), locationId (required), inventoryItemId (required), reason.
shopifyql-queryB
Execute a raw ShopifyQL query for custom analytics. Returns tabular data with columns and rows. Use this for custom reports not covered by other analytics tools.
Inputs: query (required).
transfer-inventoryC
Transfer inventory from one location to another. Moves specified quantity between locations.
Inputs: quantity (required), toLocationId (required), fromLocationId (required), inventoryItemId (required).
update-customerC
Update an existing customer's email, phone, name, note, tags, or tax exempt status.
Inputs: customerId (required), note, tags, email, +5 more.
update-discountC
Update an existing discount code's title, code, value, dates, or usage limit.
Inputs: discountId (required), code, title, value, +4 more.
update-inventory-itemB
Update inventory item properties including HS tariff code, country of origin, and shipping requirements. Use this to set customs information for international shipping.
Inputs: inventoryItemId (required), tracked, requiresShipping, countryCodeOfOrigin, +2 more.
update-orderC
Update an order's note, tags, email, shipping address, metafields, or custom attributes.
Inputs: orderId (required), note, tags, email, +3 more.
update-productC
Update an existing product's title, description, vendor, type, tags, or status.
Inputs: productId (required), tags, title, status, +3 more.
update-theme-filesB
Create or update theme files (templates, sections, snippets, config, assets). Supports up to 50 files per request. Note: Requires write_themes scope and Shopify exemption for production apps.
Inputs: files (required), themeId (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 45 tools
Most tools target distinct resources and actions, and inventory variants (adjust vs set vs bulk-adjust vs transfer) are well-differentiated by description. The main overlap is get-locations vs get-shop-locations, which appear to return essentially the same location data, creating a real selection ambiguity.
Core CRUD tools follow a clean verb_noun pattern (get/create/update/delete-product), but the set mixes conventions: aggregate 'manage-*' tools (manage-collection, manage-variants, manage-metafields) and bare noun tools with no verb (sales-report, customer-segments, product-performance, shopifyql-query). It's readable but not systematic.
45 tools is heavy for a single server, well above the typical comfortable range. The broad e-commerce domain (products, orders, customers, inventory, discounts, collections, themes, analytics) does justify many tools, but the surface could reasonably be split into sub-domains.
Coverage is strong across all major domains: full product/customer/discount CRUD, order lifecycle (draft, complete, fulfill, cancel), comprehensive inventory management, and theme file operations. Gaps remain around standalone refund/transaction management and fulfillment tracking updates, which agents would need to work around.
Maintenance
Related MCP Connectors
Unofficial Shopify MCP Pack — wraps the Shopify Admin REST API (2024-01)
Read Shopify orders by channel and manage products, pages and blog posts, with approvals.
Manage a Shopify store's Sternify bundles, gifts, upsells, banners and reviews via OAuth.
200+ read/write tools for GA4, Search Console, Google Ads, Shopify, WooCommerce, Shopware & more.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Shopify stores through GraphQL API, providing tools for managing products, customers, orders, and more.10MIT
- AlicenseCqualityDmaintenanceEnables interaction with Shopify store data through GraphQL API, providing tools for managing products, customers, orders, blogs, and articles.155MIT
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Shopify store data through the GraphQL Admin API, supporting product, customer, and order management. It allows users to search, retrieve, create, and update store resources via natural language commands.MIT
- AlicenseNot gradedqualityDmaintenanceProvides full access to the Shopify Admin GraphQL API through 75 tools for managing products, orders, customers, inventory, and analytics. It supports both static token and OAuth authentication while featuring cost-aware rate limiting for efficient store management.MIT