@junis/shopify-mcp
v1.4.3
Published
MCP Server for Shopify API - Read-only GraphQL operations
Readme
Shopify MCP Server
MCP Server for Shopify API, enabling interaction with store data through GraphQL API. This server provides read-only tools for querying products, customers, orders, and more.
📦 Package Name: @junis/shopify-mcp
🚀 Command: @junis/shopify-mcp
Fork of GeLi2001/shopify-mcp
Features
- Product Queries: Search and retrieve product information
- Customer Queries: Load customer data and order history
- Order Queries: 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
Prerequisites
- Node.js (version 16 or higher)
- Shopify Custom App Access Token (see setup instructions below)
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 scopes required for the tools you want to use
- 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": [
"@junis/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.comRun the server with npx:
npx @junis/shopify-mcp
Direct Installation (Optional)
If you want to install the package globally:
npm install -g @junis/shopify-mcpThen run it:
shopify-mcp --accessToken=<YOUR_ACCESS_TOKEN> --domain=<YOUR_SHOP>.myshopify.comAvailable 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
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
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")
Debugging
If you encounter issues, check Claude Desktop's MCP logs:
tail -n 20 -f ~/Library/Logs/Claude/mcp*.logLicense
MIT
