Skip to main content

Analytics MCP for Shopify

Store operations MCP servers let you manage products and orders. Analytics MCP servers go a step further -- they provide access to sales reports, traffic data, marketing performance, and cross-platform business intelligence. Instead of switching between Shopify Analytics, Google Analytics, and ad platform dashboards, you can query all of your data conversationally through MCP.

The Analytics MCP Landscape

Several MCP servers provide analytics capabilities relevant to Shopify merchants and developers:

ServerFocusData SourcesTransport
Adzviser MCPMarketing & sales analyticsShopify, Google Ads, Meta Ads, GA4stdio
CData Code AssistDatabase-style queryingShopify + 200 connectorsstdio
Composio Tool RouterMulti-platform orchestrationShopify + 100+ integrationsstdio/HTTP
Custom MCPYour specific needsWhatever you buildAny

Adzviser MCP for Shopify Analytics

Adzviser provides an MCP server that connects to Shopify's analytics alongside marketing platforms, giving you a unified view of store performance through natural language queries.

What Adzviser Provides

  • Sales analytics: Revenue, orders, AOV, conversion rate by time period
  • Product performance: Best sellers, slow movers, revenue by product/collection
  • Marketing attribution: Ad spend vs revenue across Google Ads, Meta Ads, TikTok Ads
  • Customer analytics: New vs returning, LTV estimates, geographic distribution
  • Traffic analytics: Sessions, page views, bounce rate, traffic sources (via GA4 integration)

Setup

Install Adzviser MCP
claude mcp add adzviser -- npx -- -y @adzviser/mcp-server

After installation, you'll need to authenticate with your Adzviser account, which handles the OAuth connections to your various data sources (Shopify, Google Ads, etc.).

Claude Desktop configuration
{
"mcpServers": {
"adzviser": {
"command": "npx",
"args": ["-y", "@adzviser/mcp-server"],
"env": {
"ADZVISER_API_KEY": "your-api-key"
}
}
}
}

Example Queries

Once connected, you can ask natural language analytics questions:

Sales performance
> What was our total revenue, order count, and average order value
for the last 30 days? Compare it to the previous 30-day period.
Product analysis
> Which 10 products generated the most revenue this month?
Include units sold and average selling price for each.
Marketing ROI
> Compare our Google Ads and Meta Ads performance for Q1.
Show spend, revenue attributed, ROAS, and cost per acquisition
for each platform.
Customer insights
> What percentage of our revenue comes from returning customers
vs first-time buyers? Show the trend over the last 6 months.
Data Freshness

Analytics data through MCP is typically updated every few hours, not real-time. For real-time order notifications or inventory alerts, use Shopify webhooks directly. MCP analytics is best for reporting, trend analysis, and strategic decision-making.

Building Reports

You can ask Claude Code to compile structured reports using the analytics data:

Weekly report generation
> Generate a weekly performance report covering:
1. Revenue and order summary (vs last week and vs same week last year)
2. Top 5 products by revenue
3. Marketing spend and ROAS by channel
4. Customer acquisition cost trend
5. Inventory alerts (products with < 2 weeks of stock)

Format it as a Markdown document I can share with the team.

CData Code Assist MCP

CData provides a different approach to analytics -- instead of pre-built dashboards, it gives you SQL-like querying capabilities against Shopify data (and 200+ other data sources).

What CData Provides

CData Code Assist MCP treats Shopify as a queryable database. You can run structured queries against products, orders, customers, and other Shopify resources using familiar SQL-like syntax.

Setup

Install CData Code Assist
claude mcp add cdata -- npx -- -y @cdata/code-assist-mcp

Configuration requires connecting to your CData Cloud instance:

CData configuration
{
"mcpServers": {
"cdata": {
"command": "npx",
"args": ["-y", "@cdata/code-assist-mcp"],
"env": {
"CDATA_INSTANCE_URL": "https://your-instance.cdata.com",
"CDATA_AUTH_TOKEN": "your-auth-token"
}
}
}
}

Use Cases

CData shines when you need complex data analysis that goes beyond simple report queries:

Cohort analysis
> Query our Shopify order data to build a monthly cohort analysis.
Group customers by their first order month, then show retention
(repeat purchase rate) for each subsequent month.
Cross-platform join
> Join our Shopify order data with our Google Analytics session
data to calculate true conversion rate by traffic source,
accounting for multi-session purchase journeys.
Inventory forecasting data
> Pull the last 12 months of daily sales velocity for our top
50 products. I want to calculate reorder points based on
average daily sales and lead time.
When to Use CData vs Adzviser

Adzviser is better for standard marketing and sales reports -- it provides pre-built analytics optimized for common merchant questions. CData is better for custom analysis, cross-platform data joins, and when you need to query data in ways the standard reports don't support. Many teams use both.

Composio Tool Router

Composio takes a broader approach -- it's a tool routing layer that connects AI agents to 100+ platforms including Shopify, Slack, Google Sheets, email, and CRMs.

What Composio Provides

Rather than being Shopify-specific, Composio lets you build multi-platform analytics workflows:

  • Pull Shopify sales data and push summaries to Slack
  • Query order data and update a Google Sheet with the results
  • Monitor inventory levels and create tasks in project management tools
  • Aggregate data from multiple Shopify stores into a unified view

Setup

Install Composio MCP
claude mcp add composio -- npx -- -y composio-mcp
Composio configuration
{
"mcpServers": {
"composio": {
"command": "npx",
"args": ["-y", "composio-mcp"],
"env": {
"COMPOSIO_API_KEY": "your-composio-key"
}
}
}
}

Multi-Platform Workflow Examples

Sales to Slack
> Pull today's Shopify sales total, top 3 selling products,
and any orders over $500. Format this as a daily digest
and post it to our #sales-updates Slack channel.
Inventory to Sheets
> Check inventory levels for all products. Export any products
with less than 20 units in stock to our "Reorder Alerts"
Google Sheet, including product name, SKU, current stock,
and 30-day average sales velocity.
Multi-store aggregation
> I manage 3 Shopify stores (US, UK, EU). Pull this week's
revenue from each store, convert to USD, and create a
comparison table showing performance by region.
Composio Scope

Composio is powerful but broad. For Shopify-specific analytics, dedicated servers (Adzviser, CData) provide deeper functionality. Composio is best when your workflow inherently spans multiple platforms.

Building Custom Analytics Dashboards with MCP Data

The most powerful approach for mature Shopify businesses is combining MCP data access with custom dashboards.

Architecture Pattern

Custom analytics architecture
1. Claude Code (with MCP servers) queries data from multiple sources
2. Data is processed and structured into a standardized format
3. Results are written to a local database or JSON files
4. A frontend dashboard (React, Next.js, or even simple HTML) visualizes the data

Implementation with Claude Code

Build a dashboard data pipeline
> Create a data pipeline script that:
1. Uses the Shopify MCP to pull the last 30 days of orders
2. Calculates daily revenue, order count, and AOV
3. Groups products by collection and calculates revenue per collection
4. Computes customer segmentation (new vs returning)
5. Writes all results to JSON files in data/analytics/
6. Create a simple React dashboard component that reads and
visualizes these JSON files using Recharts

Scheduled Data Refresh

For production dashboards, combine MCP data collection with a cron job:

scripts/refresh-analytics.ts
import { exec } from 'child_process';

// Run via cron: 0 */4 * * * (every 4 hours)
// This script asks Claude Code to refresh analytics data
// using MCP servers and write updated JSON files

async function refreshAnalytics() {
// Fetch order data via Shopify Store MCP
const orders = await fetchRecentOrders(30); // last 30 days

// Calculate metrics
const dailyRevenue = aggregateByDay(orders);
const topProducts = rankByRevenue(orders);
const customerSegments = segmentCustomers(orders);

// Write to data files for dashboard consumption
await writeJSON('data/daily-revenue.json', dailyRevenue);
await writeJSON('data/top-products.json', topProducts);
await writeJSON('data/customer-segments.json', customerSegments);

console.log(`Analytics refreshed: ${orders.length} orders processed`);
}
Start Simple, Scale Up

Don't try to build a comprehensive analytics platform on day one. Start with a single metric (daily revenue), verify the data is accurate, then gradually add more metrics. Each MCP query costs tokens and time -- build incrementally.

Choosing the Right Analytics MCP

ScenarioRecommended Approach
Quick sales checkShopify Store MCP (direct order queries)
Marketing ROI reportsAdzviser MCP
Custom data analysisCData Code Assist MCP
Multi-platform workflowsComposio Tool Router
Production dashboardCustom MCP + data pipeline
One-time deep analysisClaude Code + Store MCP (manual session)

Limitations and Considerations

Token Cost

Analytics queries that process large datasets consume significant tokens. A query that fetches 1,000 orders and analyzes them might cost $1-3 in API tokens. For frequent analytics, consider:

  • Caching results to avoid redundant fetches
  • Pre-aggregating data server-side
  • Using Shopify's built-in analytics for standard metrics

Data Accuracy

MCP analytics queries Shopify's API, which provides accurate transactional data. However:

  • Revenue numbers may differ from Shopify's dashboard due to timing and timezone differences
  • Traffic data requires a separate GA4 or similar integration
  • Attribution across marketing channels is inherently approximate
  • Always cross-reference important financial figures with Shopify's official reports

Rate Limits

Heavy analytics queries can hit Shopify's API rate limits. The Admin API allows approximately 40 REST requests per second or 2,000 GraphQL cost points per second. Plan bulk data fetches accordingly:

Rate-limit-aware query
> Fetch all orders from last quarter, but pace the API calls
to stay under 50% of the rate limit. I don't need real-time
speed -- accuracy and completeness matter more.

Next Steps

With analytics covered, you now have the complete MCP toolkit: development knowledge (Dev MCP), store operations (Store MCP), and business intelligence (Analytics MCP). The final piece is building your own custom MCP server. Proceed to Building Custom MCP Servers to learn how.