Shopify MCP Server
Enables interaction with Shopify store data through the GraphQL API, providing tools for managing products, customers, orders, and collections.
README
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.
Features
- Product Management: Search and retrieve product information
- Customer Management: Load customer data and manage customer tags
- Order Management: Advanced order querying and filtering
- Collection Management: Create and manage collections
Setup
Shopify Access Token
To use this MCP server, you'll need to create a custom app in your Shopify store:
- From your Shopify admin, go to Settings > Apps and sales channels
- Click Develop apps (you may need to enable developer preview first)
- Click Create an app
- Set a name for your app (e.g., "Shopify MCP Server")
- Click Configure Admin API scopes
- Select the following scopes:
read_products,write_productsread_customers,write_customersread_orders,write_ordersread_collections,write_collections
- Click Save
- Click Install app
- Click Install to give the app access to your store data
- After installation, you'll see your Admin API access token
- Copy this token - you'll need it for configuration
Usage with Claude Desktop
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:
- MacOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%/Claude/claude_desktop_config.json
Alternative: Run Locally with Environment Variables
If you prefer to use environment variables instead of command-line arguments:
-
Create a
.envfile with your Shopify credentials:SHOPIFY_ACCESS_TOKEN=your_access_token MYSHOPIFY_DOMAIN=your-store.myshopify.com -
Run the server with npx:
npx shopify-mcp
Direct Installation (Optional)
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
Available Tools
Product Management
-
get-products- Get all products or search by title
- Inputs:
searchTitle(optional string): Filter products by titlelimit(number): Maximum number of products to return
-
get-product-by-id- Get a specific product by ID
- Inputs:
productId(string): ID of the product to retrieve
Customer Management
-
get-customers- Get customers or search by name/email
- Inputs:
searchQuery(optional string): Filter customers by name or emaillimit(optional number, default: 10): Maximum number of customers to return
-
update-customer- Update a customer's information
- Inputs:
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 data
-
get-customer-orders- Get orders for a specific customer
- Inputs:
customerId(string, required): Shopify customer ID (numeric ID only, like "6276879810626")limit(optional number, default: 10): Maximum number of orders to return
-
create-customer- Create a new customer in Shopify
- Inputs:
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 data
Order Management
-
get-orders- Get orders with optional filtering
- Inputs:
status(optional string): Filter by order statuslimit(optional number, default: 10): Maximum number of orders to return
-
get-order-by-id- Get a specific order by ID
- Inputs:
orderId(string, required): Full Shopify order ID (e.g., "gid://shopify/Order/6090960994370")
-
update-order- Update an existing order with new information
- Inputs:
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 information
-
create-order- Create a new draft order in Shopify
- Inputs:
lineItems(array of objects, required): Products to include in the ordervariantId(string, required): ID of the product variantquantity(number, required): Quantity of the productcustomAttributes(array of objects, optional): Custom attributes for the line item
email(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 order
-
create-fulfillment- Create a new fulfillment for an order in Shopify
- Inputs:
orderId(string, required): ID of the order to fulfillnotifyCustomer(boolean, default: true): Whether to notify the customer about the fulfillmenttrackingInfo(object, optional): Tracking informationnumber(string, optional): Tracking numberurl(string, optional): Tracking URLcompany(string, optional): Shipping company
lineItems(array of objects, optional): Specific line items to fulfillid(string, required): ID of the line itemquantity(number, required): Quantity to fulfill
locationId(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 fulfillment
Collection Management
create-collection- Create a new manual or automated collection in Shopify
- Inputs:
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 settingstitle(string, optional): SEO titledescription(string, optional): SEO description
image(object, optional): Collection imagesrc(string, required): Image URLaltText(string, optional): Alt text for the image
productsToAdd(array of strings, optional): Product IDs to add to the collectionsortOrder(string, optional): How products are sorted in the collection- Options: "MANUAL", "BEST_SELLING", "ALPHA_ASC", "ALPHA_DESC", "PRICE_DESC", "PRICE_ASC", "CREATED", "CREATED_DESC", "ID_DESC", "RELEVANCE"
templateSuffix(string, optional): Template suffix for custom templatesprivateMetafields(array of objects, optional): Private metafields for the collectionowner(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 collectionsrules(array of objects, required): Collection rulescolumn(string, required): Rule column (e.g., "TAG", "TITLE", etc.)relation(string, required): Rule relation (e.g., "EQUALS", "CONTAINS", etc.)condition(string, required): Rule condition value
appliedDisjunctively(boolean, optional, default: true): Whether rules are combined with OR (true) or AND (false)
metafields(array of objects, optional): Public metafields for the collectionnamespace(string, required): Metafield namespacekey(string, required): Metafield keyvalue(string, required): Metafield valuetype(string, required): Metafield type
publications(array of objects, optional): Publication settingspublicationId(string, required): ID of the publicationpublishDate(string, optional): Date to publish the collection
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。