Shopify MCP Server
Shopify MCP Server
Tools
get-products
Get all products or search by title
get-products-by-collection
Get products from a specific collection
get-orders
Get shopify orders with advanced filtering and sorting
get-products-by-ids
Get products by their IDs
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-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
manage-webhook
Subscribe, find, or unsubscribe webhooks
README
<div align="center"> <h1>Shopify MCP Server</h1> <p><strong>GraphQL-powered integration with Shopify Admin API</strong></p> <p> <a href="https://example.com/build-status"><img src="https://img.shields.io/badge/build-passing-brightgreen" alt="Build Status"></a> <a href="https://www.npmjs.com/package/shopify-mcp-server"><img src="https://img.shields.io/badge/npm-1.0.1-blue" alt="npm version"></a> <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-green" alt="License"></a> <a href="https://discord.gg/kR2DFxV8"><img src="https://img.shields.io/badge/Discord-Join%20Us-7289DA?logo=discord&logoColor=white" alt="Discord"></a> </p> </div>
🚀 Overview
Shopify MCP Server provides a powerful bridge between your applications and the Shopify ecosystem through the Model Context Protocol. Easily manage products, customers, orders, and more with simple API calls to Shopify's Admin API.
📋 Table of Contents
📥 Installation
Choose your preferred installation method:
| Method | Instructions |
|---|---|
| Smithery | |
| Glama.ai | |
| NPM | npm install shopify-mcp-server |
✨ Features
- 🛍️ Comprehensive Product Management - Search, retrieve, and manage product data
- 👥 Customer Data Access - Get customer information and manage tags
- 📦 Advanced Order Processing - Filter, sort, and manage orders easily
- ⚡ Direct GraphQL Integration - Connect directly to Shopify's Admin API
- 🛡️ Robust Error Handling - Clear feedback for troubleshooting
🧰 Available Tools
Product Management
| Tool | Description | Key Parameters |
|---|---|---|
get-products |
Find products by title | searchTitle, limit |
get-products-by-collection |
Get collection products | collectionId, limit |
get-products-by-ids |
Retrieve specific products | productIds |
get-variants-by-ids |
Get variant details | variantIds |
Customer Management
| Tool | Description | Key Parameters |
|---|---|---|
get-customers |
Retrieve customer data | limit, next |
tag-customer |
Add tags to customers | customerId, tags |
Order Management
| Tool | Description | Key Parameters |
|---|---|---|
get-orders |
Filter and sort orders | first, after, query, sortKey |
get-order |
Get single order details | orderId |
Shop & Collection Tools
| Tool | Description | Key Parameters |
|---|---|---|
get-collections |
Retrieve shop collections | limit, name |
get-shop |
Get basic shop details | None |
get-shop-details |
Get extended shop info | None |
Discount Management
| Tool | Description | Key Parameters |
|---|---|---|
create-discount |
Create discount codes | title, code, valueType, value |
🏁 Getting Started
-
Install the package
npm install shopify-mcp-server -
Set up environment variables
SHOPIFY_ACCESS_TOKEN=your_token MYSHOPIFY_DOMAIN=your-store.myshopify.com -
Initialize the server
require('shopify-mcp-server').start(); -
Make your first API call
const products = await shopifyMcpServer.tools.getProducts({ limit: 10 }); console.log(products);
💡 Use Cases
- E-commerce Platform Integration - Sync products and orders between systems
- Custom Admin Dashboards - Build tailored interfaces for your business needs
- Order Automation - Set up workflows for automatic order processing
- Multi-channel Sales Management - Manage inventory across all sales channels
🔧 Setup Guide
Getting a Shopify Access Token
- From your Shopify admin, go to Settings > Apps and sales channels
- Click Develop apps > Create an app
- Name your app (e.g., "Shopify MCP Server")
- Configure API scopes:
read_products,write_productsread_customers,write_customersread_orders,write_orders
- Click Save and Install app
- Copy your Admin API access token
Security Note: Store your access token securely. Never commit it to version control.
Using with Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"shopify": {
"command": "npx",
"args": ["-y", "shopify-mcp-server"],
"env": {
"SHOPIFY_ACCESS_TOKEN": "<TOKEN>",
"MYSHOPIFY_DOMAIN": "<SHOP>.myshopify.com"
}
}
}
}
👨💻 Development
# Clone the repository
git clone https://github.com/your-username/shopify-mcp-server.git
# Install dependencies
cd shopify-mcp-server
npm install
# Set up environment variables
# Create a .env file with your Shopify credentials
# Build and test
npm run build
npm test
🤝 Community
| Resource | Link |
|---|---|
| GitHub Discussions | Join the conversation |
| Issue Tracker | Report bugs |
| @rezajafar | |
| Discord | Join our server |
<div align="center"> <p>Built with ❤️ using the <a href="https://modelcontextprotocol.io">Model Context Protocol</a></p> </div>
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。