ShopifyQL MCP
A Model Context Protocol server for querying ShopifyQL.
Endpoint
Streamable HTTP:
/api/mcp?token=<MCP_AUTH_TOKEN>SSE (legacy):
/api/sse?token=<MCP_AUTH_TOKEN>Requests without a matching token query parameter are rejected with HTTP 401.
Tools
execute_shopifyql_query(query, domain)— run a ShopifyQL query against one of your authorized shops.list_authorized_domains()— list the shop domains the presented token may query.get_shopifyql_schema(source?)— return the bundled ShopifyQL catalog.get_recent_sales_count(domain, minutes, channel?)— count the orders placed on a shop in the lastminutesminutes.channelis a comma-separated list of sales channel handles (web,pos,shop, …) and defaults toall.list_sales_channels(domain, limit?)— which sales channels the lastlimitorders came through (default 1000), with an order count and last-order time each. Use it to find validchannelhandles.
REST endpoints
Same token, plain HTTP:
POST /api/query— body{ query, domain }.GET /api/sales/count?domain=<shop>&minutes=<n>&channel=web,shop— orders in the lastnminutes (1–10080).channelis optional and defaults toall, which includes Point of Sale.GET /api/sales/channels?domain=<shop>&limit=1000— sales channels of the most recent orders.limitis optional (1–1000, default 1000).