Shopify MCP Server
An MCP server that connects Claude to a Shopify store's GraphQL Admin API, letting it read and modify products, customers, orders, inventory, metafields, and more.
Products: list/search products with pagination, sorting, and field selection; get full details by ID; create, update, and delete products.
Product options & variants: create/update/delete options, bulk create/update variants (prices, SKUs, weights, inventory policy, images), and delete variants.
Product media: attach images by URL and check processing status; assign images to specific variants.
Sales channels: list publications, check where a product is published, and publish/unpublish products by channel ID or name.
Customers: list/search, get by ID, create, update, delete, merge two customers, and manage mailing addresses.
Orders: list/search with advanced filters, look up by order number or ID, update details, view a customer's orders, cancel, close/open, mark as paid, create fulfillments, issue refunds, and create/complete draft orders.
Metafields: get, set, and delete metafields on any resource, plus discover metafield definitions.
Collections: list collections and get a collection with its products, rules, SEO, and image.
Inventory & pricing: set inventory quantities per location, update unit cost/tracking, view inventory levels and items, price lists, and detailed variant data.
Tags: add/remove tags on any taggable resource, individually or in bulk (up to 100).
Store configuration: shop info, locations, markets, and fulfillment/transaction/refund details for orders.
Efficiency features:
fieldsselection andcountOnlymode on read tools, cursor pagination, sorting, and pass-through Shopify query syntax.
Provides tools for interacting with the Shopify Admin GraphQL API, enabling management of store data such as products, variants, customers, orders, inventory, collections, metafields, sales channels, fulfillment, and refunds.
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 Server show me my 5 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 Server
MCP Server for Shopify API, enabling interaction with store data through GraphQL API. This server provides tools for managing products, customers, orders, and more.
📦 Package Name: @kisasa/shopify-mcp
🚀 Command: shopify-mcp (NOT shopify-mcp-server)
Built on lucasjahn/shopify-mcp, itself a fork of GeLi2001/shopify-mcp. See Credits.
Features
Product Management: Full CRUD for products, variants, and options, including variant images and inventory policy (8 tools)
Product Media: Attach images to products by URL and check processing status (2 tools)
Sales Channel Publishing: List sales channels and publish or unpublish products on them (4 tools)
Customer Management: Full CRUD, merge, and address management (7 tools)
Order Management: Smart lookup, cancel, close/open, mark as paid, fulfillment, refunds, draft orders (11 tools)
Metafield Management: Get, set, and delete metafields on any resource (3 tools)
Collection Management: List collections and get collection details with products (2 tools)
Configuration & Discovery: Shop info, metafield definitions, locations, markets (4 tools)
Inventory & Pricing: Set quantities and unit costs, view levels/items, price lists, detailed variants (6 tools)
Tag Management: Add/remove tags on any taggable resource, including bulk operations (2 tools)
Enhanced Order Tools: Transactions, fulfillment orders, refund details (3 tools)
Field Selection: All GET tools support a
fieldsparameter to fetch only the data you needCount-Only Mode: List tools support
countOnlyto get result counts without fetching dataPagination & Sorting: Cursor-based pagination and sort keys on all list queries
Advanced Filtering: Pass-through Shopify query syntax for all list endpoints
GraphQL Integration: Direct integration with Shopify's GraphQL Admin API (2026-10)
Comprehensive Error Handling: Clear error messages for API and authentication issues
Related MCP server: Shopify MCP Server
Prerequisites
Node.js (version 18 or higher)
A Shopify store with a custom app (see setup instructions below)
Setup
Authentication
This server supports two authentication methods:
Option 1: Client Credentials (Dev Dashboard apps, January 2026+)
As of January 1, 2026, new Shopify apps are created in the Dev Dashboard and use OAuth client credentials instead of static access tokens.
From your Shopify admin, go to Settings > Apps and sales channels
Click Develop apps > Build app in dev dashboard
Create a new app and configure Admin API scopes. The core scopes are:
read_products,write_productsread_customers,write_customersread_orders,write_orders
Some tools need additional scopes. Add only the ones for features you use:
Scopes
Needed for
read_all_ordersOrders older than 60 days (otherwise order tools only see recent orders)
read_inventory,write_inventoryget-inventory-levels,inventory-set-quantities,update-inventory-itemread_locationsget-locations,get-inventory-levelsread_marketsget-marketsread_draft_orders,write_draft_orderscreate-draft-order,complete-draft-orderread_merchant_managed_fulfillment_orders,write_merchant_managed_fulfillment_ordersget-fulfillment-orders,create-fulfillmentread_publications,write_publicationsget-publications,get-product-publications,publish-product,unpublish-productFor every tool, the full list is:
read_products,write_products,read_customers,write_customers,read_orders,write_orders,read_all_orders,read_inventory,write_inventory,read_locations,read_markets,read_draft_orders,write_draft_orders,read_merchant_managed_fulfillment_orders,write_merchant_managed_fulfillment_orders,read_publications,write_publicationsAfter changing scopes, release a new app version, approve it on the store, and restart the MCP server so it fetches a token with the new scopes.
Install the app on your store
Copy your Client ID and Client Secret from the app's API credentials
The server will automatically exchange these for an access token and refresh it before it expires (tokens are valid for ~24 hours).
Option 2: Static Access Token (legacy apps)
If you have an existing custom app with a static shpat_ access token, you can still use it directly.
Usage with Claude Desktop
Client Credentials (recommended):
{
"mcpServers": {
"shopify": {
"command": "npx",
"args": [
"@kisasa/shopify-mcp",
"--clientId",
"<YOUR_CLIENT_ID>",
"--clientSecret",
"<YOUR_CLIENT_SECRET>",
"--domain",
"<YOUR_SHOP>.myshopify.com"
]
}
}
}Client Credentials via environment variables (keeps secrets out of the command line):
{
"mcpServers": {
"shopify": {
"command": "npx",
"args": ["-y", "@kisasa/shopify-mcp"],
"env": {
"MYSHOPIFY_DOMAIN": "<YOUR_SHOP>.myshopify.com",
"SHOPIFY_CLIENT_ID": "<YOUR_CLIENT_ID>",
"SHOPIFY_CLIENT_SECRET": "<YOUR_CLIENT_SECRET>"
}
}
}
}To connect more than one store, add one entry per store with a different name (e.g. "shopify-store-a", "shopify-store-b").
Static Access Token (legacy):
{
"mcpServers": {
"shopify": {
"command": "npx",
"args": [
"@kisasa/shopify-mcp",
"--accessToken",
"<YOUR_ACCESS_TOKEN>",
"--domain",
"<YOUR_SHOP>.myshopify.com"
]
}
}
}Locations for the Claude Desktop config file:
MacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%/Claude/claude_desktop_config.json
Usage with Claude Code
Client Credentials:
claude mcp add shopify -- npx @kisasa/shopify-mcp \
--clientId YOUR_CLIENT_ID \
--clientSecret YOUR_CLIENT_SECRET \
--domain your-store.myshopify.comStatic Access Token (legacy):
claude mcp add shopify -- npx @kisasa/shopify-mcp \
--accessToken YOUR_ACCESS_TOKEN \
--domain your-store.myshopify.comAlternative: Run Locally with Environment Variables
If you prefer to use environment variables instead of command-line arguments:
Create a
.envfile with your Shopify credentials:Client Credentials:
SHOPIFY_CLIENT_ID=your_client_id SHOPIFY_CLIENT_SECRET=your_client_secret MYSHOPIFY_DOMAIN=your-store.myshopify.comStatic Access Token (legacy):
SHOPIFY_ACCESS_TOKEN=your_access_token MYSHOPIFY_DOMAIN=your-store.myshopify.comRun the server with npx:
npx @kisasa/shopify-mcp
Direct Installation (Optional)
If you want to install the package globally:
npm install -g @kisasa/shopify-mcpThen run it:
shopify-mcp --clientId=<ID> --clientSecret=<SECRET> --domain=<YOUR_SHOP>.myshopify.comAdditional Options
--apiVersion: Specify the Shopify API version (default:2026-10). Can also be set viaSHOPIFY_API_VERSIONenvironment variable.
⚠️ Important: If you see errors about "SHOPIFY_ACCESS_TOKEN environment variable is required" when using command-line arguments, you might have a different package installed. Make sure you're using @kisasa/shopify-mcp, not shopify-mcp-server or the unscoped shopify-mcp.
Available Tools (52)
Shared Capabilities
The main list tools (get-products, get-customers, get-orders, get-customer-orders) support:
Cursor-based pagination:
after/before(cursor strings), withpageInfoin the response (hasNextPage,hasPreviousPage,startCursor,endCursor)Sorting:
sortKey(enum specific to each resource) andreverse(boolean)Advanced filtering: a
queryorsearchQueryparameter accepting Shopify query syntax (get-customer-ordersfilters by customer instead)Field selection:
fieldsparameter to fetch only specific fields, reducing response sizeCount-only mode:
countOnlyparameter returns{ count: N }without fetching any resource data — useful for sizing queries before paginating
get-collections supports query and fields but returns only the first page (first, up to 250), with no cursors, sorting, or count-only mode.
The single-resource tools get-product-by-id, get-order-by-id, get-customer-by-id, get-collection-by-id, and get-product-variants-detailed also accept fields. Each tool's description lists the fields it supports.
Product Management (8 tools)
get-productsGet all products or search by title with pagination and sorting
Inputs:
searchTitle(string, optional): Filter products by title (wraps intitle:*...*)limit(number, default: 10): Maximum number of products to returnquery(string, optional): Raw Shopify query string (e.g."status:active vendor:Nike tag:sale")sortKey(string, optional): One ofCREATED_AT,ID,INVENTORY_TOTAL,PRODUCT_TYPE,PUBLISHED_AT,RELEVANCE,TITLE,UPDATED_AT,VENDORreverse(boolean, optional): Reverse the sort orderafter/before(string, optional): Pagination cursorsfields(array, optional): Fields to fetch. Available:id,title,description,handle,status,createdAt,updatedAt,totalInventory,vendor,productType,tags,mediaCount,priceRange,media,variants(first 10, withid,title,price,inventoryQuantity,sku,barcode,inventoryPolicy)countOnly(boolean, optional): Return only{ count: N }
get-product-by-idGet a specific product by ID with full details including SEO, options, media, variants, and collections
Inputs:
productId(string, required): Shopify product GID
Returns:
productType,descriptionHtml,seo,options(withoptionValues),media(images),variants,collections,tags,vendor, price range, inventory
create-productCreate a new product. When using
productOptions, Shopify registers all option values but only creates one default variant (first value of each option, price $0). Usemanage-product-variantswithstrategy: REMOVE_STANDALONE_VARIANTafterward to create all real variants with prices.Inputs:
title(string, required): Title of the productdescriptionHtml(string, optional): Description with HTMLhandle(string, optional): URL slug. Auto-generated from title if omittedvendor(string, optional): Vendor of the productproductType(string, optional): Type of the producttags(array of strings, optional): Product tagsstatus(string, optional):"ACTIVE","DRAFT", or"ARCHIVED". Default"DRAFT"seo(object, optional):{ title, description }for search enginesmetafields(array of objects, optional): Custom metafields (namespace,key,value,type)productOptions(array of objects, optional): Options to create inline, e.g.[{ name: "Size", values: [{ name: "S" }, { name: "M" }] }]. Max 3 options.collectionsToJoin(array of strings, optional): Collection GIDs to add the product to
update-productUpdate an existing product's fields
Inputs:
id(string, required): Shopify product GIDtitle(string, optional): New titledescriptionHtml(string, optional): New descriptionhandle(string, optional): New URL slugvendor(string, optional): New vendorproductType(string, optional): New product typetags(array of strings, optional): New tags (overwrites existing)status(string, optional):"ACTIVE","DRAFT", or"ARCHIVED"seo(object, optional):{ title, description }for search enginesmetafields(array of objects, optional): Metafields to set or updatecollectionsToJoin(array of strings, optional): Collection GIDs to add the product tocollectionsToLeave(array of strings, optional): Collection GIDs to remove the product fromredirectNewHandle(boolean, optional): If true, old handle redirects to new handle
delete-productDelete a product
Inputs:
id(string, required): Shopify product GID
manage-product-optionsCreate, update, or delete product options (e.g. Size, Color)
Inputs:
productId(string, required): Shopify product GIDaction(string, required):"create","update", or"delete"variantStrategy(string, optional):"LEAVE_AS_IS"(default) or"CREATE"— controls whether new variant combinations are generated when adding optionsFor
action: "create":options(array, required): Options to create, e.g.[{ name: "Size", values: ["S", "M", "L"] }]
For
action: "update":optionId(string, required): Option GID to updatename(string, optional): New name for the optionposition(number, optional): New positionvaluesToAdd(array of strings, optional): Values to addvaluesToDelete(array of strings, optional): Value GIDs to remove
For
action: "delete":optionIds(array of strings, required): Option GIDs to delete
manage-product-variantsCreate or update product variants in bulk
Inputs:
productId(string, required): Shopify product GIDstrategy(string, optional): How to handle the default variant when creating."DEFAULT"(removes "Default Title" automatically),"REMOVE_STANDALONE_VARIANT"(recommended for full control), or"PRESERVE_STANDALONE_VARIANT"variants(array, required): Variants to create or update. Each variant:id(string, optional): Variant GID for updates. Omit to create newprice(string, optional): Price, e.g."49.00"compareAtPrice(string, optional): Compare-at price for showing discountssku(string, optional): SKU (mapped toinventoryItem.sku)tracked(boolean, optional): Whether inventory is tracked. Setfalsefor print-on-demandtaxable(boolean, optional): Whether the variant is taxablebarcode(string, optional): Barcodeweight(number, optional): Weight of the variantweightUnit(string, optional):"GRAMS","KILOGRAMS","OUNCES", or"POUNDS"optionValues(array, optional): Option values, e.g.[{ optionName: "Size", name: "A4" }]mediaId(string, optional): Product media GID (gid://shopify/MediaImage/...) to use as the variant's image. The media must already be attached to the product (seeadd-product-media) and should beREADYinventoryPolicy(string, optional):"DENY"stops sales at 0 inventory,"CONTINUE"allows overselling
Returns:
{ created, updated, userErrors }. Each variant includesinventoryPolicy,mediaId, andimageUrl.userErrorsare returned (taggedoperation: "create"or"update") rather than thrown, so always check them
delete-product-variantsDelete one or more variants from a product
Inputs:
productId(string, required): Shopify product GIDvariantIds(array of strings, required): Variant GIDs to delete
Product Media (2 tools)
add-product-mediaAttach images to an existing product by public URL (uses
productUpdatewithmedia;productCreateMediais deprecated)Inputs:
productId(string, required): Shopify product GIDmedia(array, required): Images to attach, each{ originalSource, alt? }.originalSourcemust be a publicly accessible URL that Shopify can download
Returns:
{ productId, media, userErrors }, where each new media item hasid,status,alt,imageUrl, andmediaErrorsShopify processes media asynchronously. New items usually start as
UPLOADEDorPROCESSINGwithimageUrl: null; useget-product-mediato confirm they reachREADY
get-product-mediaList a product's media with processing status
Inputs:
productId(string, required): Shopify product GID
Returns: each item's
id,status(UPLOADED/PROCESSING/READY/FAILED),mediaContentType,alt,imageUrl, andmediaErrors(explains aFAILEDstatus)
Example: give a variant its own image
add-product-mediawith the image URLget-product-mediauntil the new item isREADY, and copy itsidmanage-product-variantswith{ id: "<variant GID>", mediaId: "<media GID>" }
Sales Channel Publishing (4 tools)
These tools work with sales channels (publications with an app catalog, such as Online Store and Point of Sale). Market and B2B catalogs are not included. Requires the read_publications and write_publications scopes.
get-publicationsList the store's sales channels
Inputs: none
Returns: each channel's
id,name(e.g."Online Store"),handle(e.g."online_store"),autoPublish, andsupportsFuturePublishing
get-product-publicationsShow whether a product is published on each sales channel
Inputs:
productId(string, required): Shopify product GID
Returns:
{ productId, title, publications }, withpublicationId,name,published, andpublishDatefor every channel
publish-productPublish a product to one or more sales channels (uses
publishablePublish)Inputs:
productId(string, required): Shopify product GIDpublicationIds(array of strings, optional): Publication GIDs fromget-publicationspublicationNames(array of strings, optional): Channel names exactly as returned byget-publications, e.g.["Online Store", "Point of Sale"]Provide exactly one of
publicationIdsorpublicationNames. A name that matches no channel, or more than one, is rejected before anything changes
Returns: the product's state on every channel afterwards, plus
userErrors
unpublish-productUnpublish a product from one or more sales channels (uses
publishableUnpublish)Inputs: same as
publish-productReturns: the product's state on every channel afterwards, plus
userErrors
Customer Management (7 tools)
get-customersList customers with search, pagination, and sorting
Inputs:
searchQuery(string, optional): Freetext or Shopify query syntax (e.g."country:US tag:vip orders_count:>5")limit(number, default: 10): Maximum number of customers to returnsortKey(string, optional): One ofCREATED_AT,ID,LAST_UPDATE,LOCATION,NAME,ORDERS_COUNT,RELEVANCE,TOTAL_SPENT,UPDATED_ATreverse(boolean, optional): Reverse the sort orderafter/before(string, optional): Pagination cursors
get-customer-by-idGet a single customer by ID with full details
Inputs:
id(string, required): Shopify customer ID (numeric only, e.g."6276879810626")
Returns: name, email, phone, addresses, tags, note, tax status, amount spent, order count, metafields
create-customerCreate a new customer
Inputs:
firstName(string, optional): Customer's first namelastName(string, optional): Customer's last nameemail(string, optional): Customer's email addressphone(string, optional): Customer's phone numbertags(array of strings, optional): Tags to applynote(string, optional): Note about the customertaxExempt(boolean, optional): Whether the customer is exempt from taxesmetafields(array of objects, optional): Custom metafields (namespace,key,value,type)addresses(array of objects, optional): Customer addresses (address1,address2,city,provinceCode,zip,country,phone)
update-customerUpdate a customer's information
Inputs:
id(string, required): Shopify customer ID (numeric only, e.g."6276879810626")firstName(string, optional): Customer's first namelastName(string, optional): Customer's last nameemail(string, optional): Customer's email addressphone(string, optional): Customer's phone numbertags(array of strings, optional): Tags to apply to the customernote(string, optional): Note about the customertaxExempt(boolean, optional): Whether the customer is exempt from taxesemailMarketingConsent(object, optional): Email marketing consent settingsmarketingState(string, required):"NOT_SUBSCRIBED","SUBSCRIBED","UNSUBSCRIBED", or"PENDING"consentUpdatedAt(string, optional): ISO 8601 timestampmarketingOptInLevel(string, optional):"SINGLE_OPT_IN","CONFIRMED_OPT_IN", or"UNKNOWN"
metafields(array of objects, optional): Customer metafields
delete-customerDelete a customer
Inputs:
id(string, required): Shopify customer ID (numeric only, e.g."6276879810626")
customer-mergeMerge two customer records into one
Inputs:
customerOneId(string, required): GID of the first customercustomerTwoId(string, required): GID of the second customeroverrideFields(object, optional): Override which fields to keep from which customer (firstName, lastName, email, phone, defaultAddress, note, tags)
manage-customer-addressCreate, update, or delete a customer's mailing address
Inputs:
customerId(string, required): Customer GIDaction(string, required):"create","update", or"delete"addressId(string, optional): Address GID (required for update/delete)address(object, optional): Address fields (required for create/update):address1,address2,city,company,countryCode,firstName,lastName,phone,provinceCode,zipsetAsDefault(boolean, optional): Set as customer's default address
Order Management (10 tools)
get-ordersGet orders with filtering, pagination, and sorting
Inputs:
status(string, optional):"any","open","closed", or"cancelled". Default"any"limit(number, default: 10): Maximum number of orders to returnquery(string, optional): Raw Shopify query string (e.g."financial_status:paid fulfillment_status:shipped tag:rush")sortKey(string, optional): One ofCREATED_AT,ORDER_NUMBER,TOTAL_PRICE,FINANCIAL_STATUS,FULFILLMENT_STATUS,UPDATED_AT,CUSTOMER_NAME,PROCESSED_AT,ID,RELEVANCEreverse(boolean, optional): Reverse the sort orderafter/before(string, optional): Pagination cursors
get-order-by-idGet a specific order by ID with smart lookup — accepts order name (
#77235or77235), numeric ID (8054938337547), or full GID (gid://shopify/Order/...)Inputs:
orderId(string, required): Order name, numeric ID, or full GID
Returns: pricing, customer, shipping/billing addresses, line items, tags, notes, metafields, cancel reason, return status, discount codes, PO number, timestamps
update-orderUpdate an existing order
Inputs:
id(string, required): Shopify order GIDtags(array of strings, optional): New tags for the orderemail(string, optional): Update customer email on the ordernote(string, optional): Order notesphone(string, optional): Phone number for the orderpoNumber(string, optional): Purchase order numbercustomAttributes(array of objects, optional): Custom key-value attributesmetafields(array of objects, optional): Order metafieldsshippingAddress(object, optional): Shipping address fields
get-customer-ordersGet orders for a specific customer with pagination and sorting
Inputs:
customerId(string, required): Shopify customer ID (numeric only, e.g."6276879810626")limit(number, default: 10): Maximum number of orders to returnsortKey(string, optional): Same sort keys asget-ordersreverse(boolean, optional): Reverse the sort orderafter/before(string, optional): Pagination cursors
order-cancelCancel an order with options for refunding, restocking, and customer notification. Irreversible.
Inputs:
orderId(string, required): Order GIDreason(string, required):"CUSTOMER","DECLINED","FRAUD","INVENTORY","OTHER", or"STAFF"restock(boolean, required): Whether to restock inventorynotifyCustomer(boolean, default: false): Notify the customerstaffNote(string, optional): Internal noterefund(boolean, optional): Refund to original payment method
order-close-openClose or reopen an order
Inputs:
orderId(string, required): Order GIDaction(string, required):"close"or"open"
order-mark-as-paidMark an order as paid (for manual/offline payments)
Inputs:
orderId(string, required): Order GID
create-fulfillmentCreate a fulfillment (mark items as shipped) with optional tracking
Inputs:
lineItemsByFulfillmentOrder(array, required): Fulfillment orders and line items to fulfilltrackingInfo(object, optional):{ number, url, company }tracking detailsnotifyCustomer(boolean, default: false): Send shipping notification
refund-createCreate a full or partial refund with optional restocking
Inputs:
orderId(string, required): Order GIDrefundLineItems(array, optional): Line items to refund withlineItemId,quantity,restockType(CANCEL/RETURN/NO_RESTOCK),locationIdshipping(object, optional):{ amount, fullRefund }shipping refundnote(string, optional): Refund notenotify(boolean, optional): Send refund notification. Confirm with the user before enabling, since it emails the customercurrency(string, optional): Currency code, when the refund is in a presentment currency different from the shop currency
create-draft-orderCreate a draft order for phone/chat sales, invoicing, or wholesale
Inputs:
lineItems(array, required): Product variants (variantId) or custom items (title+ price). Max 499customerId(string, optional): Customer GIDemail,phone,note,tags,poNumber(optional)shippingAddress,billingAddress(objects, optional)useCustomerDefaultAddress(boolean, optional): Use the customer's default addresstaxExempt(boolean, optional): Whether the draft order is tax exemptappliedDiscount(object, optional):{ title, value, valueType }order-level discount
Draft Order Management (1 tool)
complete-draft-orderComplete a draft order, converting it into a real order
Inputs:
draftOrderId(string, required): Draft order GIDpaymentGatewayId(string, optional): Payment gateway GID
Metafield Management (3 tools)
get-metafieldsGet metafields for any Shopify resource (products, orders, customers, variants, collections, etc.)
Inputs:
ownerId(string, required): GID of any resourcekeys(array of strings, optional): Specific metafields to fetch, asnamespace.key(e.g.["custom.color"]). Use this when you only need certain metafieldsnamespace(string, optional): Filter by namespace. Ignored whenkeysis providedfirst(number, default: 25, max 50): Number of metafields to returnafter(string, optional): Pagination cursor
set-metafieldsSet metafields on any Shopify resource. Creates or updates up to 25 metafields atomically
Inputs:
metafields(array, required): Metafields to set, each withownerId,key,value, and optionalnamespace,type
delete-metafieldsDelete metafields from any Shopify resource
Inputs:
metafields(array, required): Metafields to delete, each withownerId,namespace,key
Inventory Management (2 tools)
inventory-set-quantitiesSet absolute inventory quantities for items at specific locations
Inputs:
reason(string, required): Reason for change (e.g."correction","cycle_count_available")name(string, required):"available"or"on_hand"quantities(array, required): Items withinventoryItemId,locationId,quantity, and optionalchangeFromQuantitychangeFromQuantity(integer or null, optional): The quantity you expect is currently stored. Shopify only applies the change if it still matches, and otherwise returns aCHANGE_FROM_QUANTITY_STALEerror. Omit it (or passnull) to set the quantity without this check
idempotencyKey(string, optional): Idempotency key for the request, which Admin API 2026-04 and later require. If omitted, a new UUID is generated for each call. Reuse a key only to retry the exact same request
Returns:
{ idempotencyKey, adjustmentGroup, userErrors }.userErrorsinclude acode(e.g.CHANGE_FROM_QUANTITY_STALE,IDEMPOTENCY_KEY_PARAMETER_MISMATCH) and are returned rather than thrown, so always check them
update-inventory-itemSet an inventory item's unit cost and/or whether its inventory is tracked
Inputs:
inventoryItemId(string, required):gid://shopify/InventoryItem/123or just123. This is the inventory item ID, not the variant ID (get it fromget-inventory-itemsorget-product-variants-detailed). A GID of another type, such as aProductVariantGID, is rejectedcost(number or decimal string, optional): Unit cost in the shop's currency, e.g.12.5or"12.50". Must be >= 0tracked(boolean, optional): Whether Shopify tracks inventory for this itemProvide at least one of
costortracked
Returns:
{ inventoryItemId, unitCost: { amount, currencyCode }, tracked, variantId, productId, productTitle, userErrors }If Shopify returns
userErrors, the call fails as a tool error with their messages, so a rejected update is never mistaken for successRead the cost back with
get-inventory-items, which returnsinventoryItem.unitCost
Tag Management (2 tools)
manage-tagsAdd or remove tags on any taggable resource (orders, products, customers, draft orders, articles)
Inputs:
id(string, required): GID of the resource (e.g.gid://shopify/Product/123)tags(array of strings, required): Tags to add or removeaction(string, required):"add"or"remove"
manage-tags-bulkBulk add or remove tags on up to 100 resources in a single call (runs mutations in parallel)
Inputs:
ids(array of strings, required): Resource GIDs (up to 100). For larger sets, call multiple timestags(array of strings, required): Tags to add or removeaction(string, required):"add"or"remove"
Collection Management (2 tools)
get-collectionsList collections, optionally filtered by a search query
Inputs:
query(string, optional): Shopify query syntax (e.g."title:Summer"or"collection_type:smart")first(number, default: 25, max 250): Number of collections to returnfields(array, optional): Standard field selection
Returns the first page only (no cursors, sorting, or count-only mode)
get-collection-by-idGet a single collection with full details including products, rules (smart collections), SEO, and image
Inputs:
collectionId(string, required): Collection ID (e.g.gid://shopify/Collection/123or just123)productsFirst(number, default: 25, max 100): Number of products to include (0 to skip)fields(array, optional): Collection-level fields to fetch (id,title,handle,descriptionHtml,sortOrder,templateSuffix,updatedAt,productsCount,ruleSet,image,seo)
Configuration & Discovery (4 tools)
get-shop-info— Get shop details (name, domain, plan, currency, timezone, etc.). No inputsget-metafield-definitions— List metafield definitions for an owner type. Inputs:ownerType(required, e.g.PRODUCT,ORDER,CUSTOMER),first(default 50, max 100)get-locations— List locations with addresses and fulfillment service info. Inputs:includeInactive(default false),first(default 50, max 100)get-markets— List markets with regions, currencies, and domains. Input:first(default 25, max 50)
Enhanced Order & Fulfillment (3 tools)
Each takes orderId: a GID (gid://shopify/Order/123) or the bare number.
get-order-transactions— Get payment transactions for an order (gateway, status, amounts, card details)get-fulfillment-orders— Get fulfillment orders for an order (line items, assigned location, status)get-order-refund-details— Get refund history for an order (line items, amounts, restocking)
Inventory & Pricing (4 tools)
See also inventory-set-quantities and update-inventory-item under Inventory Management.
get-inventory-levels— Get inventory levels for an item across locations. Input:inventoryItemId(GID or bare number)get-inventory-items— Get inventory items for a product (unit cost, tracking, country of origin). Input:productId(GID or bare number)get-price-lists— List price lists with fixed prices and quantity rules. Input:first(default 25, max 50)get-product-variants-detailed— Get detailed variant info (inventory, pricing, images, metafields). Inputs:productId(GID or bare number),first(default 50, max 100),fields
Order Query Filter Reference
The get-orders tool's query parameter supports Shopify search syntax:
Filter | Example |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Debugging
If you encounter issues, check Claude Desktop's MCP logs.
macOS:
tail -n 20 -f ~/Library/Logs/Claude/mcp*.logWindows (PowerShell):
Get-Content "$env:APPDATA\Claude\logs\mcp*.log" -Tail 20 -WaitCommon causes:
"Access denied for … field": the app is missing a scope. See the scope table under Authentication, then release a new app version, approve it on the store, and restart the server.
Tools don't appear: fully quit and restart Claude Desktop after editing its config.
Releasing
Releases are published automatically by .github/workflows/publish.yml when a version bump reaches main:
In your PR, bump
versioninpackage.jsonand bothversionfields inserver.json(they must match, or the workflow fails).Merge to
main. The workflow publishes to npm (with provenance), publishes to the MCP Registry, and creates avX.Y.ZGitHub release.
Merges that don't change the version publish nothing.
Credits
This project builds on the work of:
GeLi2001/shopify-mcp: the original Shopify MCP server
lucasjahn/shopify-mcp: a fork of the original that added field selection, count-only mode, and many of the read-only tools
Thank you to both projects and their contributors.
License
MIT. See LICENSE. The original copyright notice is retained.
Available Tools
52 toolsadd-product-mediaA
Attach images to an existing product by public URL. Shopify processes media asynchronously: new items usually start as UPLOADED or PROCESSING. Use get-product-media to confirm they reach READY.
Inputs: media (required), productId (required).
complete-draft-orderC
Complete a draft order, converting it into a real order. Optionally specify a payment gateway.
Inputs: draftOrderId (required), paymentGatewayId.
create-customerC
Create a new customer
Inputs: note, tags, email, phone, +5 more.
create-draft-orderB
Create a draft order for phone/chat sales, invoicing, or wholesale. Supports custom line items, discounts, and customer association.
Inputs: lineItems (required), note, tags, email, +8 more.
create-fulfillmentA
Create a fulfillment (mark items as shipped) with optional tracking info. IMPORTANT: Call get-fulfillment-orders first to obtain the fulfillmentOrderId and line item GIDs.
Inputs: lineItemsByFulfillmentOrder (required), trackingInfo, notifyCustomer.
create-productA
Create a new product. When using productOptions, Shopify registers all option values but only creates one default variant (first value of each option, price $0). Use manage-product-variants with strategy=REMOVE_STANDALONE_VARIANT afterward to create all real variants with prices.
Inputs: title (required), seo, tags, handle, +7 more.
customer-mergeC
Merge two customer records into one. Optionally override which fields to keep from which customer.
Inputs: customerOneId (required), customerTwoId (required), overrideFields.
delete-customerC
Delete a customer
Inputs: id (required).
delete-metafieldsC
Delete metafields from any Shopify resource by specifying owner ID, namespace, and key.
Inputs: metafields (required).
delete-productC
Delete a product
Inputs: id (required).
delete-product-variantsC
Delete one or more variants from a product
Inputs: productId (required), variantIds (required).
get-collection-by-idA
Get a single collection with full details including products (paginated), rules for smart collections, SEO, and image. Supports field selection via 'fields' to reduce response size.
Inputs: collectionId (required), fields, productsFirst.
get-collectionsA
Query collections (manual & smart) with optional filtering. Supports field selection via 'fields' to reduce response size. Returns title, handle, products count, sort order, and rules for smart collections.
Inputs: first, query, fields.
get-customer-by-idA
Get a single customer by ID. Supports field selection via 'fields' to reduce response size.
Inputs: id (required), fields.
get-customer-ordersC
Get orders for a specific customer. Supports field selection via 'fields' to reduce response size.
Inputs: customerId (required), after, limit, before, +4 more.
get-customersB
Get customers or search by name/email. Supports field selection via 'fields' and 'countOnly' to get just the count.
Inputs: after, limit, before, fields, +4 more.
get-fulfillment-ordersA
Get fulfillment orders for an order including status, assigned location, delivery method, holds, and line items
Inputs: orderId (required).
get-inventory-itemsB
Get inventory item details for all variants of a product including SKU, cost, tracked status, country of origin, and HS codes
Inputs: productId (required).
get-inventory-levelsB
Get inventory quantities per location for an inventory item (available, on_hand, committed, reserved, incoming, damaged, etc.)
Inputs: inventoryItemId (required).
get-locationsA
Get all inventory/fulfillment locations with addresses, capabilities, and active status
Inputs: first, includeInactive.
get-marketsB
Get all markets with their regions, currencies, status, and web presence configuration
Inputs: first.
get-metafield-definitionsA
Discover custom metafield definitions for any resource type (PRODUCT, ORDER, CUSTOMER, etc.). Returns namespace, key, name, type, and validations.
Inputs: ownerType (required), first.
get-metafieldsB
Get metafields for any Shopify resource (products, orders, customers, variants, collections, etc.). Supports 'keys' filter to fetch only specific metafields by namespace.key.
Inputs: ownerId (required), keys, after, first, +1 more.
get-order-by-idC
Get a specific order by ID. Supports field selection via 'fields' to reduce response size.
Inputs: orderId (required), fields.
get-order-refund-detailsB
Get detailed refund info for an order including refunded items, amounts, restock status, and associated transactions
Inputs: orderId (required).
get-ordersB
Get orders with optional filtering by status. Supports field selection via 'fields' and 'countOnly' to get just the count.
Inputs: after, limit, query, before, +5 more.
get-order-transactionsA
Get all payment transactions for an order including authorizations, captures, refunds, and voids with gateway, status, and amounts
Inputs: orderId (required).
get-price-listsC
Get all price lists with their currency, fixed/relative adjustments, and associated catalog context
Inputs: first.
get-product-by-idB
Get a specific product by ID. Supports field selection via 'fields' to reduce response size.
Inputs: productId (required), fields.
get-product-mediaA
List a product's media with processing status (UPLOADED / PROCESSING / READY / FAILED), alt text, and image URL. Use after add-product-media to confirm processing finished.
Inputs: productId (required).
get-product-publicationsB
Show whether a product is published on each sales channel (published true/false, with publishDate when published or scheduled).
Inputs: productId (required).
get-productsB
Get all products or search by title. Supports field selection via 'fields' and 'countOnly' to get just the count.
Inputs: after, limit, query, before, +5 more.
get-product-variants-detailedA
Get all variant fields for a product: pricing, inventory, barcode, weight, tax code, selected options, metafields, and image. Supports field selection via 'fields' to reduce response size.
Inputs: productId (required), first, fields.
get-publicationsA
List the store's sales channels (publications), e.g. Online Store and Point of Sale, with their IDs. Use the names or IDs with publish-product / unpublish-product.
Inputs: no named parameters.
get-shop-infoA
Get shop configuration including name, plan, currencies, features, payment settings, tax config, and contact info
Inputs: no named parameters.
inventory-set-quantitiesA
Set absolute inventory quantities for items at specific locations. Use for inventory corrections, cycle counts, etc. Pass changeFromQuantity per item to only apply the change if the current quantity still matches. Returns the idempotencyKey used, so a failed call can be retried with the same key, plus userErrors.
Inputs: name (required), reason (required), quantities (required), idempotencyKey.
manage-customer-addressC
Create, update, or delete a customer's mailing address. Can optionally set as default.
Inputs: action (required), customerId (required), address, addressId, +1 more.
manage-product-optionsA
Create, update, or delete product options (e.g. Size, Color). Use action='create' to add options, 'update' to rename or add/remove values, 'delete' to remove options.
Inputs: action (required), productId (required), name, options, +6 more.
manage-product-variantsB
Create or update product variants. Omit variant id to create new, include id to update existing.
Inputs: variants (required), productId (required), strategy.
manage-tagsB
Add or remove tags on any taggable resource (orders, products, customers, draft orders, articles).
Inputs: id (required), tags (required), action (required).
manage-tags-bulkA
Bulk add or remove tags on up to 100 resources in a single call. IMPORTANT: Prefer this over calling manage-tags repeatedly — it runs all mutations in parallel and returns per-resource results.
Inputs: ids (required), tags (required), action (required).
order-cancelB
Cancel an order with options for refunding, restocking inventory, and customer notification. Cancellation is irreversible.
Inputs: reason (required), orderId (required), restock (required), refund, +2 more.
order-close-openA
Close or reopen an order. Closing marks all items fulfilled and finances complete. Opening reopens a closed order.
Inputs: action (required), orderId (required).
order-mark-as-paidA
Mark an order as paid. Useful for manual/offline payments (cash, bank deposit, etc.).
Inputs: orderId (required).
publish-productA
Publish a product to one or more sales channels, by publicationIds or exact publicationNames (see get-publications). Returns the product's state on every channel afterwards, plus userErrors.
Inputs: productId (required), publicationIds, publicationNames.
refund-createB
Create a full or partial refund for an order with optional restocking and shipping refund.
Inputs: orderId (required), note, notify, currency, +2 more.
set-metafieldsA
Set metafields on any Shopify resource (products, orders, customers, variants, collections, etc.). Creates or updates up to 25 metafields atomically.
Inputs: metafields (required).
unpublish-productA
Unpublish a product from one or more sales channels, by publicationIds or exact publicationNames (see get-publications). Returns the product's state on every channel afterwards, plus userErrors.
Inputs: productId (required), publicationIds, publicationNames.
update-customerC
Update a customer's information
Inputs: id (required), note, tags, email, +6 more.
update-inventory-itemA
Set an inventory item's unit cost and/or whether its inventory is tracked. Provide at least one of cost or tracked. Read the cost back with get-inventory-items.
Inputs: inventoryItemId (required), cost, tracked.
update-orderC
Update an existing order with new information
Inputs: id (required), note, tags, email, +5 more.
update-productC
Update an existing product's fields (title, description, status, tags, etc.)
Inputs: id (required), seo, tags, title, +9 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 52 tools
Most tools target a distinct resource and action, such as get-products vs get-product-by-id, get-orders vs get-customer-orders, and add-product-media vs get-product-media. Some boundaries are less crisp, especially get-inventory-items vs get-product-variants-detailed and manage-tags vs manage-tags-bulk, but descriptions generally clarify when to use each.
The set is consistently kebab-case, but verb placement and prefixes vary: get-products, create-product, manage-product-variants, order-cancel, refund-create, inventory-set-quantities, and customer-merge. It remains readable, but the mix of get/create/update/delete with manage-* and resource-prefixed action names is not fully predictable.
At 52 tools, the server is very heavy even for Shopify's broad admin surface. Many tools are granular GET endpoints and several CRUD pairs could be consolidated, so the count feels excessive despite covering many real operations.
Core product, order, customer, inventory, fulfillment, refund, metafield, publication, and tag workflows are covered. However, notable gaps remain: collections are read-only, discounts are absent, price lists and markets are read-only, and media cannot be deleted.
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 Hyprcart store: catalog, prices, stock, orders and content, with the merchant's consent.
AI-powered commerce API for luxury skincare shopping. Enables AI agents to search products, browse collections, manage shopping carts, and generate checkout URLs for the Regenique Elegance Shopify store.
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 via the GraphQL Admin API to manage products, customers, orders, and collections. Supports multi-store configurations and provides comprehensive management tools for e-commerce administration in both local and remote environments.12 npm1MIT
- 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