
Shopify
STDIOShopify MCP server for managing products, customers, orders, and collections via GraphQL API.
Shopify MCP server for managing products, customers, orders, and collections via GraphQL API.
MCP Server for Shopify API, enabling interaction with store data through GraphQL API. This server provides tools for managing products, customers, orders, and more.
To use this MCP server, you'll need to create a custom app in your Shopify store:
read_products
, write_products
read_customers
, write_customers
read_orders
, write_orders
read_collections
, write_collections
Add this to your claude_desktop_config.json
:
{ "mcpServers": { "shopify": { "command": "npx", "args": [ "shopify-mcp", "--accessToken", "<YOUR_ACCESS_TOKEN>", "--domain", "<YOUR_SHOP>.myshopify.com" ] } } }
Locations for the Claude Desktop config file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%/Claude/claude_desktop_config.json
If you prefer to use environment variables instead of command-line arguments:
Create a .env
file with your Shopify credentials:
SHOPIFY_ACCESS_TOKEN=your_access_token
MYSHOPIFY_DOMAIN=your-store.myshopify.com
Run the server with npx:
npx shopify-mcp
If you want to install the package globally:
npm install -g shopify-mcp
Then run it:
shopify-mcp --accessToken=<YOUR_ACCESS_TOKEN> --domain=<YOUR_SHOP>.myshopify.com
get-products
searchTitle
(optional string): Filter products by titlelimit
(number): Maximum number of products to returnget-product-by-id
productId
(string): ID of the product to retrieveget-customers
searchQuery
(optional string): Filter customers by name or emaillimit
(optional number, default: 10): Maximum number of customers to returnupdate-customer
id
(string, required): Shopify customer ID (numeric ID only, like "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 taxesmetafields
(array of objects, optional): Customer metafields for storing additional dataget-customer-orders
customerId
(string, required): Shopify customer ID (numeric ID only, like "6276879810626")limit
(optional number, default: 10): Maximum number of orders to returncreate-customer
email
(string, required): Customer's email addressfirstName
(string, optional): Customer's first namelastName
(string, optional): Customer's last namephone
(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 taxespassword
(string, optional): Password for the customer accountpasswordConfirmation
(string, optional): Confirmation of the passwordaddresses
(array of objects, optional): Customer's addressesmetafields
(array of objects, optional): Customer metafields for storing additional dataget-orders
status
(optional string): Filter by order statuslimit
(optional number, default: 10): Maximum number of orders to returnget-order-by-id
orderId
(string, required): Full Shopify order ID (e.g., "gid://shopify/Order/6090960994370")update-order
id
(string, required): Shopify order IDtags
(array of strings, optional): New tags for the orderemail
(string, optional): Update customer emailnote
(string, optional): Order notescustomAttributes
(array of objects, optional): Custom attributes for the ordermetafields
(array of objects, optional): Order metafieldsshippingAddress
(object, optional): Shipping address informationcreate-order
lineItems
(array of objects, required): Products to include in the order
variantId
(string, required): ID of the product variantquantity
(number, required): Quantity of the productcustomAttributes
(array of objects, optional): Custom attributes for the line itememail
(string, optional): Customer emailphone
(string, optional): Customer phone numbernote
(string, optional): Order notestags
(array of strings, optional): Tags for the ordercustomAttributes
(array of objects, optional): Custom attributes for the ordermetafields
(array of objects, optional): Order metafieldsbillingAddress
(object, optional): Billing address informationshippingAddress
(object, optional): Shipping address informationcustomerId
(string, optional): ID of an existing customershippingLine
(object, optional): Shipping method and pricetaxExempt
(boolean, optional): Whether the order is exempt from taxespresentmentCurrencyCode
(string, optional): Currency code for the ordercreate-fulfillment
orderId
(string, required): ID of the order to fulfillnotifyCustomer
(boolean, default: true): Whether to notify the customer about the fulfillmenttrackingInfo
(object, optional): Tracking information
number
(string, optional): Tracking numberurl
(string, optional): Tracking URLcompany
(string, optional): Shipping companylineItems
(array of objects, optional): Specific line items to fulfill
id
(string, required): ID of the line itemquantity
(number, required): Quantity to fulfilllocationId
(string, optional): ID of the location fulfilling the ordertrackingNumbers
(array of strings, optional): Multiple tracking numberstrackingUrls
(array of strings, optional): Multiple tracking URLsmetadata
(object, optional): Additional metadata for the fulfillmentcreate-collection
title
(string, required): Collection titledescription
(string, optional): Collection descriptiondescriptionHtml
(string, optional): HTML version of the descriptionhandle
(string, optional): URL handle for the collectionisPublished
(boolean, optional): Whether the collection is publishedseo
(object, optional): SEO settings
title
(string, optional): SEO titledescription
(string, optional): SEO descriptionimage
(object, optional): Collection image
src
(string, required): Image URLaltText
(string, optional): Alt text for the imageproductsToAdd
(array of strings, optional): Product IDs to add to the collectionsortOrder
(string, optional): How products are sorted in the collection
templateSuffix
(string, optional): Template suffix for custom templatesprivateMetafields
(array of objects, optional): Private metafields for the collection
owner
(string, required): Metafield ownernamespace
(string, required): Metafield namespacekey
(string, required): Metafield keyvalue
(string, required): Metafield valuevalueType
(string, required): Type of the value (e.g., "STRING", "INTEGER", etc.)ruleSet
(object, optional): Rules for automated collections
rules
(array of objects, required): Collection rules
column
(string, required): Rule column (e.g., "TAG", "TITLE", etc.)relation
(string, required): Rule relation (e.g., "EQUALS", "CONTAINS", etc.)condition
(string, required): Rule condition valueappliedDisjunctively
(boolean, optional, default: true): Whether rules are combined with OR (true) or AND (false)metafields
(array of objects, optional): Public metafields for the collection
namespace
(string, required): Metafield namespacekey
(string, required): Metafield keyvalue
(string, required): Metafield valuetype
(string, required): Metafield typepublications
(array of objects, optional): Publication settings
publicationId
(string, required): ID of the publicationpublishDate
(string, optional): Date to publish the collectionMIT