Mauro Venticinque
Copied

A-01

shopify-insights-mcp

MCP server that returns readings of Shopify data, not raw data. Published on npm under the MIT license.

Specification
Typeproducto
PlatformMCP · npm
Year2026
RoleAuthor
StackTypeScript · @modelcontextprotocol/sdk · Shopify Admin GraphQL · Zod · Vitest
Tools10 tools · counted in src/tools
LicenseMIT
Version1.1.0 · npm view shopify-insights-mcp version

npm →

Context

The existing MCP servers for Shopify returned rows. You asked about sales and got a number; you asked about products and got fifty names. That leaves the interesting work —is that number good? what do I do with it?— on the side of whoever is asking.

Options

I could wrap the Admin API and expose one endpoint per resource, which is what already existed and what comes out naturally. Or I could define the tools by business question instead of by resource, and make every answer carry its own comparison.

The first option is easier to maintain and easier to explain. I ruled it out because the value of an MCP server is not in access to the data, which is already solved, but in the model receiving the data with its context alongside it.

Decision

Ten tools, each tied to a question: sales comparison, revenue breakdown, trending products, per-product performance, inventory alerts, order alerts, fulfillment metrics, top customers, segments and summary.

Each answer carries the number and its reading. Instead of “you have 45,000 in sales”, it answers “you have 45,000, 12% less than last month”. Instead of a list of fifty products, “five products with critical stock and high demand”.

stdio transport, input validation with Zod and a CLI, so it installs with one command.

Verification

Published as shopify-insights-mcp v1.1.0, MIT license. The ten tools are declared in the server and covered by tests with Vitest.

Consequences

Defining tools by question rather than by resource makes them harder to extend: adding a new metric means deciding what it is compared against, not exposing one more field. That is the cost of an answer that is useful without post-processing.

← Archive