Skip to content

MCP server

dtc-mcp

Code-execution MCP server that exposes typed Klaviyo and Shopify clients in a V8 sandbox so an AI client can write JavaScript to query DTC analytics data.

  • Community
  • Runs locally
  • API key

Repository and documentation last checked Built from public product pages and documentation. SourcesClaim this listing

ecommerceguide summary

dtc-mcp is a local MCP server that gives an AI client typed Klaviyo and Shopify clients inside a V8 sandbox. Instead of dozens of tools it exposes three: execute_code, which runs JavaScript against those clients with state kept across calls, plus search_docs and read_doc over a bundled SDK reference of around 330 chunks. Access is read-only, using a Klaviyo private key and Shopify client credentials or an Admin API token.

Why it stands out

A code-execution server: the model writes JavaScript against typed Klaviyo and Shopify SDKs instead of calling dozens of tools.

What dtc-mcp does

ecommerceguide editorial
  • Installs via npm install -g dtc-mcp and runs over stdio
  • Three tools: execute_code, search_docs and read_doc
  • Read-only Klaviyo and Shopify scopes set through environment variables
  • Setup documented for Claude Desktop and Cursor, plus one-click .mcpb bundle
  • Sandbox state persists across calls within one MCP session
  • Klaviyo-only mode works when Shopify variables are omitted
  • MIT licence, TypeScript, maintained by Rafael Sztutman

How ecommerce teams could use it

ecommerceguide editorial

Illustrative scenarios written by ecommerceguide from the product's documented capabilities. They are not customer case studies.

  1. A Shopify store running email and flows in Klaviyo

    A marketer asks Claude Desktop about campaign and flow performance over a period

    Intended outcomeexecute_code queries Klaviyo reporting namespaces and returns results shaped by the pick, topN and summarize helpers

  2. An operator comparing store orders with email activity

    Questions span Shopify orders and products alongside Klaviyo segments and events

    Intended outcomeBoth typed clients run in the same sandbox session, with globalThis state carried between calls

  3. A developer setting the server up in Cursor

    Working out which SDK methods exist before writing a query

    Intended outcomesearch_docs and read_doc return ranked or exact chunks from the bundled reference, refreshed from a hosted docs copy on startup

Who it suits

ecommerceguide editorial

Best for

You run Shopify and Klaviyo, work in Claude Desktop or Cursor, and are comfortable installing a local npm server with your own API keys.

Probably not for

You need write access, a hosted remote endpoint or sources beyond Shopify and Klaviyo, since this is a local read-only server.

Business size
Any stageThe project is a free MIT-licensed local server with no stated revenue, order or team bounds.

Technical details

From the vendor's own pages

From the server's repository, documentation and MCP directory listings.

What an agent can do
Analytics, Email marketing, Orders, Manage products, Customers
Transport
stdio (local)
Authentication
API keyenv KLAVIYO_API_KEY (pk_...), SHOPIFY_STORE plus SHOPIFY_CLIENT_ID/SECRET or SHOPIFY_ACCESS_TOKEN
Package
dtc-mcp (npm)
Language
TypeScript
Licence
MIT
Repository last updated
26 May 2026

Connect dtc-mcp

Third-party data

Setup documented for

Install command
npm install -g dtc-mcp

Command as listed on the repository README, not tested by ecommerceguide. Check the repository README (opens in a new tab) for configuration and credentials before running it.

Works with

Ecommerce platforms and services

Systems this server reads from or writes to.

Often used alongside

ecommerceguide editorial

Categories and use cases