Shopify MCP Server
Provides 36 tools for managing a Shopify store through the Admin GraphQL API, covering products and variants, orders and draft orders, customers, inventory levels and adjustments, collections, discount codes, fulfillments and tracking, returns and refunds, plus shop details and locations.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Shopify MCP Server
A comprehensive Model Context Protocol (MCP) server for Shopify, providing 36 tools across 9 categories to manage your Shopify store through AI assistants like Claude.
Features
GraphQL-First: Uses Shopify's Admin GraphQL API (version 2025-01) for efficient data fetching
Comprehensive Coverage: 36 tools covering products, orders, customers, inventory, collections, discounts, fulfillments, refunds, and shop management
Type-Safe: Built with TypeScript and Zod for runtime validation
Error Handling: Robust error handling with detailed error messages
Pagination Support: Built-in cursor-based pagination for list operations
Related MCP server: Shopify MCP Server
Tool Categories
Products (7 tools)
list_products- List products with filtering and paginationget_product- Get detailed product informationsearch_products- Search products by title, vendor, or other fieldscreate_product- Create a new productupdate_product- Update existing product detailsdelete_product- Delete a productupdate_product_variant- Update variant price, inventory, etc.
Orders (7 tools)
list_orders- List orders with filtering and paginationget_order- Get detailed order informationcreate_draft_order- Create a draft ordercomplete_draft_order- Convert draft to regular orderupdate_order- Update order details (notes, tags, etc.)cancel_order- Cancel an orderadd_order_note- Add a note to an order
Customers (5 tools)
list_customers- List customers with paginationget_customer- Get detailed customer informationsearch_customers- Search customers by email, name, etc.create_customer- Create a new customerupdate_customer- Update customer details
Inventory (4 tools)
get_inventory_levels- Get inventory levels for a locationget_inventory_item- Get inventory item detailsadjust_inventory- Adjust inventory quantity (add/subtract)set_inventory- Set absolute inventory quantity
Collections (4 tools)
list_collections- List collections (custom and smart)get_collection- Get collection details with productscreate_collection- Create a new collectionadd_products_to_collection- Add products to a collection
Discounts (3 tools)
list_discounts- List discount codescreate_discount_code- Create a percentage or fixed amount discountdelete_discount- Delete a discount code
Fulfillments (3 tools)
create_fulfillment- Fulfill order items (mark as shipped)update_tracking- Update tracking informationcancel_fulfillment- Cancel a fulfillment
Returns & Refunds (4 tools)
list_refunds- List refunds for an ordercalculate_refund- Calculate refund amount before processingcreate_refund- Process a refundcreate_return- Create a return request
Shop (2 tools)
get_shop_info- Get store details (name, plan, settings)get_locations- List store locations for fulfillment
Installation
# Clone the repository
git clone https://github.com/morsimohsen/shopify-mcp-server.git
cd shopify-mcp-server
# Install dependencies
npm install
# Build the project
npm run buildConfiguration
Copy the example environment file:
cp .env.example .envEdit
.envwith your Shopify credentials:
SHOPIFY_STORE_URL=your-store.myshopify.com
SHOPIFY_ACCESS_TOKEN=shpat_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
SHOPIFY_API_VERSION=2025-01Getting Your Access Token
Go to your Shopify Admin
Navigate to Settings > Apps and sales channels > Develop apps
Click Create an app
Configure Admin API scopes (recommended: full read/write access for all resources)
Install the app to get your access token
Required API Scopes
For full functionality, enable these Admin API scopes:
read_products,write_productsread_orders,write_ordersread_customers,write_customersread_inventory,write_inventoryread_discounts,write_discountsread_fulfillments,write_fulfillmentsread_returns,write_returnsread_shipping,write_shippingread_locations
Usage
With Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"shopify": {
"command": "node",
"args": ["/path/to/shopify-mcp-server/dist/index.js"],
"env": {
"SHOPIFY_STORE_URL": "your-store.myshopify.com",
"SHOPIFY_ACCESS_TOKEN": "shpat_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
}
}
}{
"mcpServers": {
"shopify": {
"command": "npx",
"args": ["@morsimohsen/shopify-mcp-server"],
"env": {
"SHOPIFY_STORE_URL": "your-store.myshopify.com",
"SHOPIFY_ACCESS_TOKEN": "shpat_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
}
}
}With VS Code Copilot
Add to your VS Code settings or .vscode/mcp.json:
{
"servers": {
"shopify": {
"command": "node",
"args": ["${workspaceFolder}/dist/index.js"],
"env": {
"SHOPIFY_STORE_URL": "your-store.myshopify.com",
"SHOPIFY_ACCESS_TOKEN": "shpat_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
}
}
}Direct Execution
# With environment variables
SHOPIFY_STORE_URL=your-store.myshopify.com \
SHOPIFY_ACCESS_TOKEN=shpat_xxx \
npm startDevelopment
# Install dependencies
npm install
# Run in development mode (with watch)
npm run dev
# Build for production
npm run build
# Type check
npm run typecheck
# Lint
npm run lintExample Prompts
Once connected to an AI assistant, you can use natural language:
"Show me our best selling products"
"List all orders from today"
"Create a 20% discount code for summer sale"
"What's the current inventory for SKU ABC123?"
"Fulfill order #1234 with tracking number XYZ"
"Process a refund for order #1234"
"Search for customers with gmail.com emails"
"Create a new product called 'Summer T-Shirt' priced at $29.99"
Architecture
src/
├── index.ts # Entry point
├── server.ts # MCP server setup
├── clients/
│ └── shopify-graphql.ts # GraphQL client wrapper
├── graphql/
│ ├── queries/ # GraphQL query definitions
│ └── mutations/ # GraphQL mutation definitions
├── tools/
│ ├── index.ts # Tool registry
│ ├── products.ts # Product tools
│ ├── orders.ts # Order tools
│ ├── customers.ts # Customer tools
│ ├── inventory.ts # Inventory tools
│ ├── collections.ts # Collection tools
│ ├── discounts.ts # Discount tools
│ ├── fulfillments.ts # Fulfillment tools
│ ├── refunds.ts # Refund tools
│ └── shop.ts # Shop tools
├── types/
│ ├── shopify.ts # Shopify GraphQL types
│ └── tools.ts # Tool input schemas (Zod)
└── utils/
├── error-handler.ts # Error handling utilities
├── pagination.ts # Pagination helpers
└── formatters.ts # Response formattersLicense
MIT
Contributing
Contributions are welcome! Please read our contributing guidelines and submit pull requests to our repository.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Bulk edit Shopify products from an AI agent: search, preview, apply and undo catalog edits.
Connect AI to store orders, products and inventory with scoped access and human approvals.
Let your AI manage WooCommerce and Shopify stores: products, SEO, descriptions and images.
Shopify store analysis and product-catalog extraction as agent tools.
Related MCP Servers
- AlicenseDqualityDmaintenanceEnables interaction with Shopify stores through the GraphQL Admin API. Supports product management, customer data, order queries, blog/article management, and store-wide search capabilities through natural language.152MIT
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Shopify store data through the GraphQL Admin API, supporting product, customer, and order management. It allows users to search, retrieve, create, and update store resources via natural language commands.MIT
- AlicenseAqualityCmaintenanceEnables AI agents to read and write Shopify store data including products, orders, customers, inventory, and more via the Admin GraphQL API.2858 npmMIT
- AlicenseAqualityBmaintenanceEnables AI agents to manage Shopify store operations through the Admin GraphQL API, including products, orders, customers, inventory, and discounts via natural language, with safeguards for destructive actions and cost tracking.16184 npmMIT