HasData Shopify — Claude Code MCP server: what it does, how to install
HasData Shopify is an MCP server for Claude Code that reads products and collections from any public Shopify storefront and returns them as JSON for agents.
MIT ★ 5 updated 2026-10-12
claude mcp add shopify -e HASDATA_API_KEY=<HASDATA_API_KEY> -- npx -y @hasdata/shopify-mcpWhat HasData Shopify does
The tools are read-only and there are two of them. hasdata_shopify_collections_getCollections hands back collections with id, title, handle, description and image. hasdata_shopify_products_getProducts returns products with vendor, type, tags, images, plus variants carrying prices, SKUs and stock status. Paging runs on limit and page; limit tops out at 250.
It is hosted at https://mcp.hasdata.com/mcp?apis=shopify and authenticates with an x-api-key header set to your HasData API key. A client that speaks only stdio goes through a launcher, @hasdata/shopify-mcp on npm or hasdata-shopify-mcp on PyPI. Successful calls cost 10 credits each, and the free tier hands out 1,000 credits a month with no card.
What gets read is the signed-out view of a classic Shopify storefront. Point a request at a headless store's own domain and the answer is empty; use its myshopify.com address instead.
What it helps with
- pull another shop's Shopify catalogue into JSON
- compare what two storefronts charge for the same item
- spot variants that show zero stock
- walk a collection page by page and collect every product
- filter discounted items against
compare_at_price
Example prompts for the agent
- Show me the collections on allbirds.com, largest one first.
- Grab the first 250 products from allbirds.com and group them by
product_type. - Which variants are sold out right now in that store?
How to install HasData Shopify
1Platform CLI
claude mcp add shopify -e HASDATA_API_KEY=<HASDATA_API_KEY> -- npx -y @hasdata/shopify-mcpReplace <…> with your own values
2Platform CLI: remote server
claude mcp add --transport http hasdata-shopify 'https://mcp.hasdata.com/mcp?apis=shopify'1Platform CLI: remote server
codex mcp add hasdata-shopify --url 'https://mcp.hasdata.com/mcp?apis=shopify'2Platform CLI
codex mcp add hasdata-shopify --env HASDATA_API_KEY=<HASDATA_API_KEY> -- npx -y @hasdata/shopify-mcpReplace <…> with your own values
Config file
{
"mcpServers": {
"hasdata-shopify": {
"url": "https://mcp.hasdata.com/mcp?apis=shopify"
}
}
}{
"mcpServers": {
"hasdata-shopify": {
"command": "npx",
"args": [
"-y",
"@hasdata/shopify-mcp"
],
"env": {
"HASDATA_API_KEY": "<HASDATA_API_KEY>"
}
}
}
}Replace <…> with your own values
Config file
{
"servers": {
"hasdata-shopify": {
"type": "http",
"url": "https://mcp.hasdata.com/mcp?apis=shopify"
}
}
}{
"servers": {
"hasdata-shopify": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@hasdata/shopify-mcp"
],
"env": {
"HASDATA_API_KEY": "<HASDATA_API_KEY>"
}
}
}
}Replace <…> with your own values
1Platform CLI: remote server
gemini mcp add -t http hasdata-shopify 'https://mcp.hasdata.com/mcp?apis=shopify'2Platform CLI
gemini mcp add -e HASDATA_API_KEY=<HASDATA_API_KEY> hasdata-shopify npx -y @hasdata/shopify-mcpReplace <…> with your own values
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about HasData Shopify
How do I install HasData Shopify in Claude Code?
Grab a HasData API key from the dashboard, then run claude mcp add shopify -e HASDATA_API_KEY=<HASDATA_API_KEY> -- npx -y @hasdata/shopify-mcp. That pulls the npm launcher and runs it over stdio.
What does HasData Shopify do?
Exposes two read-only tools for the products and collections of a public Shopify storefront. Every result comes back as structured JSON, with no app installed in the shop.
Do I need a merchant token or an app install?
Neither. It reads the catalogue any logged-out visitor can browse, and only from a classic Shopify storefront. A headless shop has to be requested through its myshopify.com domain.