Shopify Admin MCP Server
Provides read-only access to the Shopify Admin GraphQL API, with tools for retrieving products, orders, customers, segments, marketing activities and events, discounts, collections, inventory, locations, shop info, and optional ShopifyQL analytics.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Shopify Admin MCP Server Show me my top 10 products by sales for the last 30 days"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Shopify Admin MCP Server
An MCP (Model Context Protocol) server that provides read-only access to the Shopify Admin GraphQL API.
Features
Read-only access to Shopify Admin data
35 core tools for products, orders, customers, marketing, discounts, collections, inventory, and shop info
12 ShopifyQL analytics tools (optional, requires Level 2 access) for sales, conversions, campaigns, and more
Related MCP server: Shopify MCP
Quick Start
1. Create a Shopify Custom App
In your Shopify admin, go to Settings → Apps and sales channels → Develop apps
Click Allow custom app development (if not already enabled)
Click Create an app and name it (e.g., "Claude MCP")
Click Configure Admin API scopes and enable:
read_productsread_ordersread_customersread_marketing_eventsread_discountsread_inventoryread_locationsread_localesread_analyticsread_reports
Click Save, then click Install app
In the API credentials tab, copy the API key and API secret key
ShopifyQL & Analytics Requirements
The ShopifyQL-powered analytics tools (run_shopifyql, get_sales_over_time, get_top_customers, etc.) require additional access beyond API scopes:
read_reportsscope - Already included in the scopes aboveLevel 2 Protected Customer Data Access - Required for ALL ShopifyQL queries, even those not accessing customer data
To enable Level 2 access:
Go to the Shopify Partner Dashboard
Navigate to Apps → Your App → API access
Under Protected customer data, request Level 2 access
Complete the required security attestations
Wait for Shopify approval (may take a few days)
By default, ShopifyQL tools are disabled to prevent errors for users without Level 2 access. Once approved, enable them by adding the environment variable:
{
"mcpServers": {
"shopify-admin": {
"command": "npx",
"args": ["-y", "shopify-admin-mcp"],
"env": {
"SHOPIFY_CREDENTIALS_PATH": "/path/to/credentials.json",
"SHOPIFY_SHOPIFYQL_ENABLED": "true"
}
}
}
}Note: Non-ShopifyQL tools (products, orders, customers, etc.) work without Level 2 access.
2. Create Credentials File
Create a JSON file with your Shopify credentials (e.g., ~/.shopify-credentials.json):
{
"shop": "your-store.myshopify.com",
"clientId": "your-api-key",
"clientSecret": "your-api-secret-key"
}3. Configure Your MCP Client
Claude Code
Add to ~/.claude/settings.json:
{
"mcpServers": {
"shopify-admin": {
"command": "npx",
"args": ["-y", "shopify-admin-mcp"],
"env": {
"SHOPIFY_CREDENTIALS_PATH": "/path/to/your/shopify-credentials.json"
}
}
}
}Claude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"shopify-admin": {
"command": "npx",
"args": ["-y", "shopify-admin-mcp"],
"env": {
"SHOPIFY_CREDENTIALS_PATH": "/path/to/your/shopify-credentials.json"
}
}
}
}4. Restart and Test
Restart Claude Code/Desktop, then try asking:
"Get my shop info"
"Show me sales for the last 7 days"
"List my top 10 products"
Available Tools
Product Tools
Tool | Description |
| List products with filtering/pagination |
| Get single product by ID |
| List product variants |
| Get all product tags |
| Get all product types |
| Get all product vendors |
| Count products |
Order Tools
Tool | Description |
| List orders with filtering/pagination |
| Get single order by ID |
| Count orders |
| List abandoned checkouts |
| Count abandoned checkouts |
Customer & Segment Tools
Tool | Description |
| List customers with filtering |
| Get single customer by ID |
| Count customers |
| List customer segments |
| Get single segment by ID |
| Get customers in a segment |
Marketing Tools
Tool | Description |
| List marketing activities |
| Get single marketing activity |
| List marketing events |
| Get single marketing event |
Discount Tools
Tool | Description |
| List all discounts |
| Get single discount by ID |
| List code-based discounts |
| List automatic discounts |
Collection Tools
Tool | Description |
| List collections |
| Get single collection by ID |
| Count collections |
Inventory & Location Tools
Tool | Description |
| List inventory items |
| Get single inventory item |
| List locations |
| Get single location |
Shop Tools
Tool | Description |
| Get shop information |
| Get shop locales |
| Run custom ShopifyQL query |
Analytics Tools
Tool | Description |
| Sales trends by day/week/month |
| Top selling products |
| Sales breakdown by country |
| Sales by referrer/source |
| Traffic/session trends |
| Session to order conversion rate |
| AOV trends over time |
| Highest spending customers |
| Conversion rates by channel |
| Campaign performance metrics |
| Campaign trends over time |
Example Usage
Get sales trends
"Show me daily sales for the last 30 days"Analyze top products
"What are my top 10 best-selling products this month?"Check campaign performance
"How are my marketing campaigns performing?"Run custom analytics
"Run this ShopifyQL query: FROM sales SHOW total_sales, orders GROUP BY product_title SINCE -7d ORDER BY total_sales DESC LIMIT 5"Development
Local Setup
git clone https://github.com/MAYUNO-International-LLC/shopify-admin-mcp.git
cd shopify-admin-mcp
npm install
npm run buildLocal MCP Configuration
For local development, point to the built files:
{
"mcpServers": {
"shopify-admin": {
"command": "node",
"args": ["/path/to/shopify-admin-mcp/dist/index.js"],
"env": {
"SHOPIFY_CREDENTIALS_PATH": "/path/to/credentials.json"
}
}
}
}License
MIT
Available Tools
35 toolsget_abandoned_checkoutsB
List abandoned checkouts with optional filtering. Returns checkout details including items, customer, and recovery URL.
Inputs: after, first, query.
get_abandoned_checkouts_countC
Count the total number of abandoned checkouts.
Inputs: query.
get_automatic_discountsB
List only automatic discounts (applied automatically without a code).
Inputs: after, first, query.
get_code_discountsA
List only code-based discounts (requires customer to enter a code at checkout).
Inputs: after, first, query.
get_collectionA
Get detailed information about a single collection, including rules, SEO settings, and products.
Inputs: id (required).
get_collectionsB
List collections with optional filtering and pagination. Returns collection details including title, handle, product count, and image.
Inputs: after, first, query.
get_collections_countA
Count the total number of collections, optionally filtered by a query.
Inputs: query.
get_customerA
Get detailed information about a single customer by their ID, including addresses and recent orders.
Inputs: id (required).
get_customersB
List customers with optional filtering and pagination. Returns customer details including email, orders count, amount spent, and address.
Inputs: after, first, query.
get_customers_countA
Count the total number of customers, optionally filtered by a query.
Inputs: query.
get_discountA
Get detailed information about a single discount, including codes, value, minimum requirements, and usage.
Inputs: id (required).
get_discountsB
List all discounts (both code and automatic) with optional filtering. Returns discount details including title, status, type, usage, and value.
Inputs: after, first, query.
get_inventory_itemA
Get detailed information about a single inventory item, including levels at all locations and cost.
Inputs: id (required).
get_inventory_itemsB
List inventory items with optional filtering. Returns inventory details including SKU, levels at each location, and associated variant.
Inputs: after, first, query.
get_locationA
Get detailed information about a single location, including inventory levels for all items.
Inputs: id (required).
get_locationsC
List all inventory locations. Returns location details including name, address, and fulfillment settings.
Inputs: after, first.
get_marketing_activitiesB
List marketing activities with pagination. Returns activity details including title, type, status, budget, and channel.
Inputs: after, first.
get_marketing_activityB
Get detailed information about a single marketing activity, including UTM parameters and budget.
Inputs: id (required).
get_marketing_eventC
Get detailed information about a single marketing event, including UTM parameters.
Inputs: id (required).
get_marketing_eventsB
List marketing events with optional filtering. Returns event details including type, channel, timing, and URLs.
Inputs: after, first, query.
get_orderA
Get detailed information about a single order by its ID, including all line items, addresses, fulfillments, and discounts.
Inputs: id (required).
get_ordersB
List orders with optional filtering and pagination. Returns order details including status, totals, line items, customer info, and shipping address.
Inputs: after, first, query.
get_orders_countA
Count the total number of orders, optionally filtered by a query.
Inputs: query.
get_productA
Get detailed information about a single product by its ID, including all variants, options, images, and SEO settings.
Inputs: id (required).
get_productsB
List products with optional filtering and pagination. Returns product details including title, status, vendor, type, tags, inventory, pricing, and images.
Inputs: after, first, query.
get_products_countA
Count the total number of products, optionally filtered by a query.
Inputs: query.
get_product_tagsC
Get all product tags used in the store.
Inputs: after, first.
get_product_typesC
Get all product types used in the store.
Inputs: after, first.
get_product_variantsC
List all variants for a specific product, including pricing, inventory, SKU, and option values.
Inputs: productId (required), after, first.
get_product_vendorsC
Get all product vendors in the store.
Inputs: after, first.
get_segmentA
Get details about a specific customer segment, including its query definition.
Inputs: id (required).
get_segment_membersC
Get the customers who belong to a specific segment.
Inputs: segmentId (required), after, first.
get_segmentsC
List all customer segments defined in the store.
Inputs: after, first.
get_shopA
Get information about the shop including name, domain, plan, currency, timezone, and billing address.
Inputs: no named parameters.
get_shop_localesA
Get all locales configured for the shop, including primary and published languages.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 35 tools
Most tools are clearly separated by resource and action, such as products, orders, customers, and inventory. A few families are easy to confuse, especially get_discounts versus get_code_discounts/get_automatic_discounts, and the many list/get/count pairs require attention to the singular/plural naming.
Every tool follows a predictable get_<resource> or get_<resources> snake_case pattern. The singular/plural distinction consistently indicates detail versus list operations, and count variants are named consistently.
The server has 35 tools, which is heavy for a read-only Shopify Admin surface. Several tools are narrow count or subtype variants, suggesting the surface could be consolidated with filtering instead of exposing many near-duplicate endpoints.
The tool set is entirely read-only: it can list and retrieve products, orders, customers, discounts, collections, and inventory, but has no create, update, delete, fulfillment, or inventory-adjustment operations. For a Shopify Admin server, those are significant gaps that will block common administrative workflows.
Maintenance
Related MCP Connectors
Read-only MCP access to sessions, funnels, campaigns, errors, live visitors, and anomalies.
Read-only analytics for your Shopify apps: MRR, churn, uninstall reasons, App Store rank, reviews.
First-party unsampled Shopify analytics MCP — sessions, attribution, funnels, leaks. 26 tools.
Read-only MCP access to your DEXUN AdWhiz account: ad accounts, AI recommendations, savings.
Related MCP Servers
- AlicenseBqualityDmaintenanceRead-only MCP server for querying Shopify analytics data, including orders, customers, products, sales, retention, and attribution.19MIT
- AlicenseAqualityBmaintenanceA read-only MCP server that exposes the full Shopify Admin GraphQL API through 6 universal tools, with multi-store support and mutation rejection at the parser level for safety.625 PyPI1MIT
- FlicenseNot gradedqualityDmaintenanceEnables safe, read-only analysis of an online store's SQLite database, providing schema introspection, restricted SELECT queries, and specialized analytics tools through MCP.-
- AlicenseBqualityBmaintenanceEnables read-only access to Google Marketing Platform data across GMP Admin, Display & Video 360, Campaign Manager 360, and Search Ads 360 through OAuth-authenticated MCP tools for discovering accounts, campaigns, reports, and performance metrics.33MIT