3 months ago
Context-optimized MCP server for DTC e-commerce brands. Connect Claude (or any MCP client) to your Klaviyo and Shopify data with 16 pre-built analytics tools.
Unlike raw API wrappers, dtc-mcp pre-aggregates data server-side and returns only actionable fields — using ~80% less context than dumping raw API responses into your conversation.
Features
8 Klaviyo tools — campaign performance, flow breakdowns, subscriber health, profile search, event activity
7 Shopify tools — sales summaries, daily/weekly/monthly trends, product performance, inventory alerts, customer cohorts, order search
2 cross-platform tools — email revenue attribution, full DTC health dashboard
Dual revenue metrics — both gross and net revenue on every sales query
Smart fallbacks — ShopifyQL when available, GraphQL pagination when not
Aggressive caching — respects Klaviyo's strict rate limits (1 req/s on reporting)
Server Config
{
"mcpServers": {
"dtc-mcp": {
"command": "npx",
"args": [
"-y",
"dtc-mcp"
],
"env": {
"KLAVIYO_API_KEY": "pk_your_private_key_here",
"SHOPIFY_STORE": "your-store.myshopify.com",
"SHOPIFY_CLIENT_ID": "your_client_id",
"SHOPIFY_CLIENT_SECRET": "shpss_your_secret"
}
}
}
}