Shopify Update MCP Server
Shopify Update MCP Server
Tools
get-products
Get all products or search by title
get-products-by-collection
Get products from a specific collection
manage-webhook
Subscribe, find, or unsubscribe webhooks
get-products-by-ids
Get products by their IDs
update-product-price
Update the price of a product by its ID for all variants
get-variants-by-ids
Get product variants by their IDs
get-customers
Get shopify customers with pagination support
tag-customer
Add tags to a customer
get-orders
Get shopify orders with advanced filtering and sorting
get-order
Get a single order by ID
create-discount
Create a basic discount code
create-draft-order
Create a draft order
complete-draft-order
Complete a draft order
get-collections
Get all collections
get-shop
Get shop details
get-shop-details
Get extended shop details including shipping countries
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.
<a href="https://glama.ai/mcp/servers/bemvhpy885"><img width="380" height="200" src="https://glama.ai/mcp/servers/bemvhpy885/badge" alt="Shopify Server MCP server" /></a>
Features
- Product Management: Search and retrieve product information
- Customer Management: Load customer data and manage customer tags
- Order Management: Advanced order querying and filtering
- GraphQL Integration: Direct integration with Shopify's GraphQL Admin API
- Comprehensive Error Handling: Clear error messages for API and authentication issues
Tools
-
get-products- Get all products or search by title
- Inputs:
searchTitle(optional string): Filter products by titlelimit(number): Maximum number of products to return
- Returns: Formatted product details including title, description, handle, and variants
-
get-products-by-collection- Get products from a specific collection
- Inputs:
collectionId(string): ID of the collection to get products fromlimit(optional number, default: 10): Maximum number of products to return
- Returns: Formatted product details from the specified collection
-
get-products-by-ids- Get products by their IDs
- Inputs:
productIds(array of strings): Array of product IDs to retrieve
- Returns: Formatted product details for the specified products
-
update-product-price- Update product prices for its ID
- Inputs:
productId(string): ID of the product to updateprice(string): New price for the product
- Returns: Response of the update
-
get-variants-by-ids- Get product variants by their IDs
- Inputs:
variantIds(array of strings): Array of variant IDs to retrieve
- Returns: Detailed variant information including product details
-
get-customers- Get shopify customers with pagination support
- Inputs:
limit(optional number): Maximum number of customers to returnnext(optional string): Next page cursor
- Returns: Customer data in JSON format
-
tag-customer- Add tags to a customer
- Inputs:
customerId(string): Customer ID to tagtags(array of strings): Tags to add to the customer
- Returns: Success or failure message
-
get-orders- Get orders with advanced filtering and sorting
- Inputs:
first(optional number): Limit of orders to returnafter(optional string): Next page cursorquery(optional string): Filter orders using query syntaxsortKey(optional enum): Field to sort by ('PROCESSED_AT', 'TOTAL_PRICE', 'ID', 'CREATED_AT', 'UPDATED_AT', 'ORDER_NUMBER')reverse(optional boolean): Reverse sort order
- Returns: Formatted order details
-
get-order- Get a single order by ID
- Inputs:
orderId(string): ID of the order to retrieve
- Returns: Detailed order information
-
create-discount
- Create a basic discount code
- Inputs:
title(string): Title of the discountcode(string): Discount code that customers will entervalueType(enum): Type of discount ('percentage' or 'fixed_amount')value(number): Discount value (percentage as decimal or fixed amount)startsAt(string): Start date in ISO formatendsAt(optional string): Optional end date in ISO formatappliesOncePerCustomer(boolean): Whether discount can be used only once per customer
- Returns: Created discount details
-
create-draft-order- Create a draft order
- Inputs:
lineItems(array): Array of items with variantId and quantityemail(string): Customer emailshippingAddress(object): Shipping address detailsnote(optional string): Optional note for the order
- Returns: Created draft order details
-
complete-draft-order- Complete a draft order
- Inputs:
draftOrderId(string): ID of the draft order to completevariantId(string): ID of the variant in the draft order
- Returns: Completed order details
-
get-collections- Get all collections
- Inputs:
limit(optional number, default: 10): Maximum number of collections to returnname(optional string): Filter collections by name
- Returns: Collection details
-
get-shop- Get shop details
- Inputs: None
- Returns: Basic shop information
-
get-shop-details- Get extended shop details including shipping countries
- Inputs: None
- Returns: Extended shop information including shipping countries
-
manage-webhook- Subscribe, find, or unsubscribe webhooks
- Inputs:
action(enum): Action to perform ('subscribe', 'find', 'unsubscribe')callbackUrl(string): Webhook callback URLtopic(enum): Webhook topic to subscribe towebhookId(optional string): Webhook ID (required for unsubscribe)
- Returns: Webhook details or success message
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_orders
- 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
Note: Store your access token securely. It provides access to your store data and should never be shared or committed to version control. More details on how to create a Shopify app can be found here.
Usage with Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"shopify": {
"command": "npx",
"args": ["-y", "shopify-mcp-server"],
"env": {
"SHOPIFY_ACCESS_TOKEN": "<YOUR_ACCESS_TOKEN>",
"MYSHOPIFY_DOMAIN": "<YOUR_SHOP>.myshopify.com"
}
}
}
}
Development
- Clone the repository
- Install dependencies:
npm install
- Create a
.envfile:
SHOPIFY_ACCESS_TOKEN=your_access_token
MYSHOPIFY_DOMAIN=your-store.myshopify.com
- Build the project:
npm run build
- Run tests:
npm test
Dependencies
- @modelcontextprotocol/sdk - MCP protocol implementation
- graphql-request - GraphQL client for Shopify API
- zod - Runtime type validation
Contributing
Contributions are welcome! Please read our Contributing Guidelines first.
License
MIT
Community
Built with ❤️ using the Model Context Protocol
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。
mcp-server-qdrant
这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。