Shopify Insights MCP
Provides actionable business insights for Shopify stores, including sales summaries with period-over-period comparisons, product performance ranking, inventory alerts (out-of-stock, low stock, overstock), trending products, customer segmentation, order alerts for delayed fulfillment, and fulfillment metrics.
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 Insights MCP How are sales this month compared to last month?"
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 Insights MCP
MCP Server for Shopify that delivers actionable business insights — comparisons, alerts, and recommendations, not just numbers.
Demo
https://github.com/user-attachments/assets/4541bf2d-8974-4944-b3cb-4b8597d071cf
Related MCP server: Shopify MCP Server
Why This Exists
Existing Shopify MCP servers return raw data. Shopify Insights MCP answers "what does it mean?" and "what should I do?":
Other MCPs | Shopify Insights MCP |
"You have $45,000 in sales" | "You have $45,000, 12% less than last month" |
"List of 50 products" | "5 products have critical stock and high demand" |
"10 pending orders" | "3 orders have been unfulfilled for 5+ days" |
Stack
TypeScript + MCP SDK (
@modelcontextprotocol/sdk)Shopify Admin API (GraphQL)
Zod for input validation
Transport: stdio
Installation
Option A: npm (recommended)
npm install -g shopify-insights-mcp
shopify-insights-mcp initThe init command will guide you through connecting your Shopify store and generate the Claude Desktop configuration.
Option B: From source
git clone https://github.com/VenticinqueMauro/shopify-insights-mcp.git
cd shopify-insights-mcp
npm install
npm run build
npm run setup # Guided configurationShopify App Requirements
You need a Custom App with these scopes:
read_orders,read_products,read_customers
Create one at: Shopify Admin > Settings > Apps and sales channels > Develop apps
Build & Run
npm run build # Compile TypeScript → dist/
npm start # Run the MCP server (stdio)
npm run setup # Guided setup wizard
npm run inspector # Open MCP Inspector for debuggingUsage with Claude Desktop
Quick setup (via npx)
{
"mcpServers": {
"shopify-insights": {
"command": "npx",
"args": ["-y", "shopify-insights-mcp"],
"env": {
"SHOPIFY_SHOP_DOMAIN": "your-store.myshopify.com",
"SHOPIFY_ACCESS_TOKEN": "shpat_your_token"
}
}
}
}Local install
{
"mcpServers": {
"shopify-insights": {
"command": "node",
"args": ["/path/to/shopify-insights-mcp/dist/index.js"],
"env": {
"SHOPIFY_SHOP_DOMAIN": "your-store.myshopify.com",
"SHOPIFY_ACCESS_TOKEN": "shpat_your_token"
}
}
}
}Run
shopify-insights-mcp initto generate this config automatically.
Then ask Claude things like:
"How are sales this month compared to last month?"
"Which products are trending up?"
"Are there any orders that need urgent attention?"
"How are my customers segmented?"
Configuration
Required Environment Variables
Variable | Description |
| Your store domain (e.g., |
| Admin API access token (starts with |
Optional Environment Variables
Variable | Default | Description |
| Auto-detected from store | IANA timezone override (e.g., |
|
| Shopify Admin API version |
|
| Maximum records fetched per tool call. Increase for large stores |
Tools (10)
Sales & Revenue
Tool | Description |
| Sales summary with period-over-period comparison. Revenue, orders, AOV, units sold |
| Side-by-side comparison of two custom date ranges |
| Revenue broken down by product, vendor, or product type |
Products & Inventory
Tool | Description |
| Product ranking by revenue, units sold, or order count |
| Stock alerts: out-of-stock, low stock, overstock detection |
| Trending products (rising/falling) vs. previous period |
Customers
Tool | Description |
| Automatic segmentation: VIP, Loyal, Returning, New, Inactive |
| Customer ranking by total spend or order count |
Operations
Tool | Description |
| Orders needing attention: delayed fulfillment, financial issues, high-value pending |
| Operational metrics: fulfillment rate, financial status, health score |
Architecture
src/
├── index.ts # Entry point
├── server.ts # Tool registration & request handler
├── shopify/
│ ├── auth.ts # Credentials from env vars
│ ├── client.ts # GraphQL wrapper
│ └── queries/ # Orders, products, customers queries
├── tools/
│ ├── sales/ # 3 sales tools
│ ├── products/ # 3 product tools
│ ├── customers/ # 2 customer tools
│ └── operations/ # 2 operations tools
├── analytics/
│ ├── comparisons.ts # Change calculation (%, direction)
│ ├── insights.ts # Automatic insight generation
│ └── recommendations.ts # Actionable recommendations
├── types/
│ └── shopify.ts # Shared GraphQL types
└── utils/
├── dates.ts # Period handling & date formatting
├── formatting.ts # Currency, percentage, number formatting
└── errors.ts # Standard error handlingExample Output
📊 SALES SUMMARY - THIS MONTH
CURRENT METRICS:
• Revenue: $1,245,000.00
• Orders: 234
• Avg Order Value: $5,320.51
• Units Sold: 892
VS. PREVIOUS MONTH:
• Revenue: +18.0% (+$190,000.00)
• Orders: +12.0% (+25)
• Avg Order Value: +5.4% (+$272.00)
💡 INSIGHTS:
• 📈 Revenue grew 18.0% compared to the previous period.
• 🛒 Order volume increased 12.0% (+25 orders).
📋 RECOMMENDATIONS:
• 🚀 Leverage the positive momentum by increasing investment in top-performing channels.
• 📦 Ensure sufficient stock to sustain demand growth.Testing
# Run unit tests
npm test
# Manual test via JSON-RPC over stdio
export $(grep -v '^#' .env | xargs)
echo '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_sales_summary","arguments":{"period":"month"}}}' | node dist/index.js
# Or use MCP Inspector
npm run inspectorContributing
Contributions are welcome! Feel free to open issues or submit pull requests.
License
MIT
Available Tools
10 toolsget_customer_segmentsA
Segment customers into VIP, Loyal, Returning, New, and Inactive based on order history and spending. Shows distribution and average spend per segment.
Inputs: period, endDate, startDate.
get_fulfillment_metricsB
Get operational metrics: fulfillment status breakdown, financial status distribution, average order value by status, and operational health indicators.
Inputs: period (required), endDate, startDate.
get_inventory_alertsA
Check inventory levels across all products. Identifies out-of-stock and low-stock variants that need attention.
Inputs: low_stock_threshold, include_out_of_stock.
get_order_alertsA
Identify orders that require immediate attention: unfulfilled orders older than N days, financially problematic orders (refunded, voided), and high-value pending orders.
Inputs: lookbackDays, highValueThreshold, pendingDaysThreshold.
get_product_performanceA
Rank products by revenue, units sold, or order count for a given period. Shows detailed per-product metrics including AOV and share of total.
Inputs: period (required), limit, endDate, sort_by, +1 more.
get_revenue_breakdownC
Break down revenue by product, vendor, or product type for a given period.
Inputs: period (required), limit, endDate, dimension, +1 more.
get_sales_comparisonB
Compare sales metrics between two explicit date ranges side by side.
Inputs: period1End (required), period2End (required), period1Start (required), period2Start (required), +2 more.
get_sales_summaryB
Get a sales summary with revenue, orders, and AOV. Optionally compare with previous period.
Inputs: period (required), endDate, startDate, compareWithPrevious.
get_top_customersB
Rank customers by total spend or order count. Identifies VIP customers and spending patterns.
Inputs: limit, sort_by.
get_trending_productsA
Identify trending products by comparing sales between the current period and the previous one. Shows growth rates, rising stars, and declining products.
Inputs: limit, period.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Most tools target distinct analytical questions, but there is meaningful overlap: get_sales_comparison and get_sales_summary both support period comparison, and get_product_performance, get_trending_products, and get_revenue_breakdown all examine product sales from different angles. The descriptions help, but an agent could still hesitate between these related tools.
Every tool follows the same get_<metric> snake_case pattern with clear noun phrases. The naming is entirely predictable and consistent across all ten tools.
Ten tools is a well-scoped size for a Shopify insights server. Each tool covers a meaningful analytical area without unnecessary bloat or redundancy.
The tool surface covers core merchant insights across sales, revenue, products, inventory, customers, orders, and fulfillment. It lacks direct raw order or product list retrieval, but those are outside the apparent read-only insights purpose, so the gaps are minor.
Related MCP Connectors
Run your Shopify store with AI: drafts you approve, what to fix, and how your store is doing.
Ask questions across Shopify, Klaviyo, GA4 and 20+ e-commerce sources in plain English.
Demand forecasts, reorder points, order quantities and inventory health for Shopify stores.
Google Ads, Meta Ads, GA4, Search Console and Shopify insights, alerts, ROAS rules and ad actions.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables e-commerce shop owners to query their business data using natural language through local AI models. Provides secure, privacy-focused access to sales reports, inventory management, customer analytics, and order data without sending sensitive information to external services.-
- AlicenseAqualityDmaintenanceProvides AI assistants with real-time access to Shopify store analytics, sales data, and inventory through ShopifyQL and the Admin GraphQL API. It enables users to query store performance, customer metrics, and marketing insights using natural language.13MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to forecast revenue and demand for Shopify stores using Google's TimesFM model. Provides tools for revenue forecasting, demand analysis, promotion analysis, and anomaly detection.71MIT

Presso MCP Serverofficial
AlicenseNot gradedqualityDmaintenanceConnects e-commerce and marketing data sources like Shopify, GA4, Google Ads, and Meta Ads to AI assistants, enabling natural language queries about store performance, ad campaigns, and customer behavior.11 npm2MIT