- Explore MCP Servers
- shopify-mcp
Shopify Mcp
What is Shopify Mcp
shopify-mcp is an MCP Server designed to interact with the Shopify API, allowing users to query their Shopify store data such as products, customers, and orders using GraphQL.
Use cases
Use cases for shopify-mcp include managing product inventories, retrieving customer information, processing orders, and integrating Shopify data with other applications.
How to use
To use shopify-mcp, clone the repository, install the necessary dependencies, and configure your Shopify custom app access token and store domain in the environment variables. Then, set up the Claude Desktop configuration to run the MCP server.
Key features
Key features include product, customer, and order management tools, direct integration with GraphQL, and robust error handling capabilities.
Where to use
shopify-mcp is primarily used in e-commerce environments where Shopify stores are managed, enabling seamless data interaction and management.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Shopify Mcp
shopify-mcp is an MCP Server designed to interact with the Shopify API, allowing users to query their Shopify store data such as products, customers, and orders using GraphQL.
Use cases
Use cases for shopify-mcp include managing product inventories, retrieving customer information, processing orders, and integrating Shopify data with other applications.
How to use
To use shopify-mcp, clone the repository, install the necessary dependencies, and configure your Shopify custom app access token and store domain in the environment variables. Then, set up the Claude Desktop configuration to run the MCP server.
Key features
Key features include product, customer, and order management tools, direct integration with GraphQL, and robust error handling capabilities.
Where to use
shopify-mcp is primarily used in e-commerce environments where Shopify stores are managed, enabling seamless data interaction and management.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
Shopify MCP Server
MCP Server for Shopify API, enabling interaction with store data (products, customers, orders, etc.) via GraphQL.
Features
Provides tools for product, customer, and order management, direct GraphQL integration, and clear error handling.
Prerequisites
- Node.js (v16+)
- Shopify Custom App Access Token
Installation
git clone https://github.com/pashpashpash/shopify-mcp-server.git
cd shopify-mcp-server
npm install
npm run build
Shopify Setup & Configuration
- Create Custom App: In Shopify admin > Settings > Apps and sales channels > Develop apps > Create an app.
- Configure Scopes: Grant
read/writepermissions forproducts,customers, andorders. - Install App & Get Token: Install the app and copy the Admin API access token.
- Create
.envfile in the project root:SHOPIFY_ACCESS_TOKEN=your_access_token MYSHOPIFY_DOMAIN=your-store.myshopify.com - Configure Claude Desktop (
claude_desktop_config.json):- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%/Claude/claude_desktop_config.json
Note: Use the correct path to the cloned repo and store your token securely.{ "mcpServers": { "shopify": { "command": "node", "args": [ "path/to/shopify-mcp-server/dist/index.js" ], "env": { "SHOPIFY_ACCESS_TOKEN": "your_access_token", "MYSHOPIFY_DOMAIN": "your-store.myshopify.com" } } } } - macOS:
Available Tools
Product Management
findProducts: Get all products or search by title.searchTitle(optional string): Filter by title.limit(number): Max products.
listProductsInCollection: Get products from a collection.collectionId(string): Collection ID.limit(optional number, default: 10): Max products.
getProductsByIds: Get products by IDs.productIds(array of strings): Product IDs.
getVariantsByIds: Get variants by IDs.variantIds(array of strings): Variant IDs.
Customer Management
listCustomers: Get customers with pagination.limit(optional number): Max customers.next(optional string): Next page cursor.
addCustomerTags: Add tags to a customer.customerId(string): Customer ID.tags(array of strings): Tags to add.
Order Management
findOrders: Get orders with advanced filtering/sorting.first(optional number): Limit orders.after(optional string): Next page cursor.query(optional string): Filter query.sortKey(optional enum): Sort field.reverse(optional boolean): Reverse sort.
getOrderById: Get a single order by ID.orderId(string): Order ID.
createDraftOrder: Create a draft order.lineItems(array): Items (variantId, quantity).email(string): Customer email.shippingAddress(object): Shipping details.note(optional string): Order note.
completeDraftOrder: Complete a draft order.draftOrderId(string): Draft order ID.variantId(string): Variant ID.
Discount Management
createDiscountCode: Create a basic discount code.title(string): Discount title.code(string): Discount code.valueType(enum): ‘percentage’ or ‘fixed_amount’.value(number): Discount value.startsAt(string): Start date (ISO).endsAt(optional string): End date (ISO).appliesOncePerCustomer(boolean): Limit one use per customer.
Collection Management
listCollections: Get all collections.limit(optional number, default: 10): Max collections.name(optional string): Filter by name.
Shop Information
getShopDetails: Get basic shop details (No inputs).getExtendedShopDetails: Get extended shop details (No inputs).
Webhook Management
manageWebhooks: Manage webhooks.action(enum): ‘subscribe’, ‘find’, ‘unsubscribe’.callbackUrl(string): Webhook URL.topic(enum): Webhook topic.webhookId(optional string): Required for unsubscribe.
Debugging Tools
debugGetVariantMetafield: Get variant &size_chart_jsonmetafield.variantId(string): Variant GID.
Developer Tools
introspect_admin_schema: Introspect Admin API GraphQL schema.query(string): Filter term.filter(optional array): Filter by ‘types’, ‘queries’, ‘mutations’, ‘all’.
search_dev_docs: Search shopify.dev docs.prompt(string): Search query.
Debugging
Check Claude Desktop MCP logs:
tail -n 20 -f ~/Library/Logs/Claude/mcp*.log
Common issues:
- Authentication: Check token, domain format, API scopes.
- API Errors: Check rate limits, input formats, required fields.
Development
npm install
npm run build
npm test
Dependencies
- @modelcontextprotocol/sdk
- graphql-request
- zod
License
MIT
Note: Fork of original shopify-mcp-server repository
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










