Skip to main content
Glama
Shopify Analytics MCP Server

Shopify Analytics MCP Server

by DrMatrixx

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SHOPIFY_STOREYesYour Shopify store subdomain from your-store-subdomain.myshopify.com.
SHOPIFY_CLIENT_IDNoClient ID from your Shopify Dev Dashboard app, used with SHOPIFY_CLIENT_SECRET for client credentials grant authentication.
SHOPIFY_ACCESS_TOKENNoLegacy static Shopify access token, typically starting with shpat_, for existing custom apps.
SHOPIFY_CLIENT_SECRETNoClient Secret from your Shopify Dev Dashboard app, used with SHOPIFY_CLIENT_ID for client credentials grant authentication.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_sales_summaryC

Get revenue, orders, AOV, and period comparison for your Shopify store. Works with natural date ranges like 'last_7d', 'this_month', 'last_quarter'.

get_top_productsC

Get best-performing products ranked by revenue or order count.

get_order_trendsB

Get daily/weekly/monthly revenue and order count breakdown for trend analysis.

get_recent_ordersA

Get the most recent orders with key details — customer, amount, status, items.

get_order_detailsA

Get full details for a specific order — line items, shipping, billing, transactions, fulfillments, refunds.

get_customer_insightsB

Get customer analytics: total customers, top spenders, and aggregate metrics.

get_inventory_statusC

Get current stock levels with low-stock and out-of-stock alerts.

get_product_performanceA

Get detailed analytics for a specific product or compare all products. Shows revenue, units sold, AOV with optional period comparison.

get_sales_by_geographyC

Get revenue breakdown by country, region, or city.

get_sales_by_channelC

Get revenue breakdown by sales channel (Online Store, Shop app, POS, etc.).

get_discount_performanceB

Get performance of discount codes — revenue, orders, and discount amounts.

get_refunds_summaryB

Get refund metrics — total refunds, refund rate, and optionally by product.

search_ordersB

Search orders using Shopify query syntax. Examples: 'financial_status:refunded', 'email:jane@example.com', 'tag:rush', 'created_at:>2026-03-01'.

run_shopifyqlA

Run a raw ShopifyQL query for custom analytics not covered by other tools. Example: FROM sales SHOW total_sales, orders TIMESERIES day SINCE -7d

get_customer_rfm_segmentsB

Segment customers by Recency, Frequency, and Monetary value (RFM analysis). Identifies Champions, Loyal, At Risk, Lost, and other segments.

get_customer_churn_riskA

Identify customers at risk of churning based on their purchase patterns. Finds customers who have gone significantly longer than usual without ordering, sorted by lifetime spend.

get_customer_ltv_summaryA

Get customer lifetime value (LTV) projections. Shows annualized revenue run-rate per customer, top customers by projected LTV, and LTV breakdown by RFM segment.

get_customer_health_reportA

Get a full customer health diagnosis for your store. Analyzes RFM segments, churn risk, and lifetime value in one report with severity-ranked findings and recommended actions.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.5/5.0

Scored across 18 tools

Disambiguation4/5

Each tool targets a distinct analytics slice (sales, orders, products, inventory, customers, geography, channel, discounts, refunds), and descriptions clarify boundaries. Minor overlap exists between get_customer_insights and the RFM/LTV/churn tools, and between get_top_products and get_product_performance, but the composite health report and raw ShopifyQL tools are clearly framed as different levels of abstraction.

Naming Consistency5/5

All 18 names follow a consistent snake_case verb_noun pattern (get_*, search_orders, run_shopifyql) with predictable use of get_ for read operations. Domain vocabulary (customer, order, product, sales) is reused consistently across tools.

Tool Count4/5

18 tools is on the high side of ideal but each maps to a distinct analytical question rather than being redundant. The surface is well-scoped for store analytics, though a few customer-centric tools could arguably be consolidated.

Completeness4/5

Coverage is broad—sales, orders, products, inventory, customers, geography, channel, discounts, refunds—with run_shopifyql as an escape hatch for anything missing. Gaps remain for traffic/conversion or marketing attribution and financial payouts, but core analytics workflows have no dead ends.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues