Shopify MCP server

Finance and commerce

MCP server for Shopify, Admin REST API (orders, products, customers, inventory, fulfillments).

Your AI app calls the Shopify MCP server, which does the finance and commerce work and sends the result back to the chat.

About Shopify

Shopify is a community MCP server from codespar, filed in our directory under finance and commerce. MCP server for Shopify, Admin REST API (orders, products, customers, inventory, fulfillments).

Shopify runs on your own machine: your AI app starts it with the command npx -y @codespar/mcp-shopify@0.2.2 and talks to it over standard input and output. It needs SHOPIFY_SHOP and SHOPIFY_ACCESS_TOKEN set before Shopify starts.

Shopify is listed in the official MCP registry as io.github.codespar/mcp-shopify, version 0.2.2.

At a glance

Publisher
codespar (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @codespar/mcp-shopify
Written in
TypeScript
License
MIT
GitHub stars
278
Official MCP registry
io.github.codespar/mcp-shopify

How to set up Shopify

  1. Install Node.js on the machine that runs your AI app, because Shopify starts with npx and downloads its package on first run.
  2. Create SHOPIFY_SHOP and SHOPIFY_ACCESS_TOKEN for Shopify in the connected service's own settings, scoped to the smallest permissions the job needs.
  3. Add Shopify to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Shopify tools to confirm the connection.
  5. Run one read-only task with Shopify first, and keep your app asking before each tool call until the results look right.

Shopify compared with similar servers

  • Sicoob by codespar has fewer GitHub stars than Shopify (278 against 278); both are community servers, and both run locally.
  • Shopee by codespar has fewer GitHub stars than Shopify (278 against 278); both are community servers, and both run locally.
  • Sift by codespar has fewer GitHub stars than Shopify (278 against 278); both are community servers, and both run locally.

Before you connect Shopify

  • Give Shopify its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Shopify tool call until you trust what it does with them.
  • Treat text that Shopify fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Shopify on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Shopify

How marketing and sales teams put Shopify to work, by company size. Pick the size closest to yours and start Shopify on one use case.

Small business

  • A small business can ask Shopify which products and customers drive margin, then plan promotions around them.
  • Owners can use Shopify to check refunds, failed payments and churn reasons without opening three dashboards.
  • Shopify runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Ecommerce teams can connect Shopify to tie campaigns to orders and revenue, not just clicks.
  • Marketing and finance can use Shopify to check spend against budget each week and move money to what's working.
  • Start Shopify on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises should keep Shopify read-only for agents, with any money movement handled by people and existing approvals.
  • Large commerce teams can use Shopify to answer revenue questions by channel and region with figures finance signs off on.
  • Shopify is a community server, so have security review the code and pin a version before Shopify touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Shopify README

From codespar/mcp-dev-latam on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

@codespar/mcp-shopify

MCP server for Shopify, global ecommerce platform Admin REST API.

Shopify is the global DTC standard and dominant across LatAm for brands operating internationally (complementary to Nuvemshop/Tiendanube for regional-only merchants, also in this catalog). Agents building merchant tools, restocking, refund automation, marketing campaigns, fulfillment orchestration, integrate directly with the Admin API rather than through a reseller.

Tools (28)

Tool Purpose
list_orders List orders with optional filters.
get_order Get a single order by ID with full detail.
create_order Create a new order.
update_order Update an existing order (tags, note, email, shipping_address, metafields, etc).
cancel_order Cancel an order.
list_products List products with optional filters.
get_product Get a single product by ID including all variants and images.
create_product Create a new product with variants, options, and images.
update_product Update an existing product's fields, variants, or images.
list_customers List customers with optional query filter.
create_customer Create a new customer record.
adjust_inventory Adjust the available inventory for a specific inventory_item at a specific location by a delta (positive to...
create_fulfillment Create a fulfillment for an order (mark line items as shipped, attach tracking number and carrier).
update_fulfillment_tracking Update the tracking number, tracking company, or tracking URL on an existing fulfillment (post-ship trackin...
create_draft_order Create a draft order (invoice-style quote).
complete_draft_order Convert a draft order into a real order.
create_price_rule Create a price rule (the policy that governs discounts, percentage/fixed amount, prerequisites, entitlemen...
create_discount_code Create a discount code tied to an existing price rule (the customer-facing string like 'SUMMER20').
create_smart_collection Create a smart collection, an automated collection populated by rules (e.g.
create_custom_collection Create a custom collection, a manually curated collection.
create_metafield Attach a metafield (custom typed field) to a resource (shop, product, variant, customer, order, collection,...
create_variant Add a new variant to an existing product (size/color/SKU permutation with its own price and inventory).
update_variant Update an existing product variant's price, SKU, barcode, options, weight, or inventory policy.
list_transactions List all payment transactions for an order (authorizations, captures, sales, refunds, voids) including gate...
list_abandoned_checkouts List abandoned checkouts (carts where the customer entered contact info but did not complete checkout).
list_locations List all fulfillment locations (physical stores, warehouses, 3PLs).
create_refund Refund one or more line items on an order.
register_webhook Register a webhook subscription for a Shopify event topic (orders/create, orders/paid, products/update, app...

Install

npm install @codespar/mcp-shopify

Environment

SHOPIFY_SHOP="acme"               # subdomain (acme.myshopify.com)
SHOPIFY_ACCESS_TOKEN="shpat_..."  # Admin API access token (secret)
SHOPIFY_API_VERSION="2024-01"     # Optional. Defaults to 2024-01.

Authentication

Private/custom app access token sent as header on every request:

X-Shopify-Access-Token: <SHOPIFY_ACCESS_TOKEN>

Create a custom app in Shopify admin → Settings → Apps and sales channels → Develop apps, grant the Admin API scopes you need (read/write orders, products, customers, inventory, fulfillments), and install to generate the token.

Run

# stdio (default, for Claude Desktop, Cursor, etc)
npx @codespar/mcp-shopify

# HTTP (for server-to-server testing)
MCP_HTTP=true MCP_PORT=3000 npx @codespar/mcp-shopify

API surface

Uses the Shopify Admin REST API at https://{shop}.myshopify.com/admin/api/{version}. Default version is 2024-01 (stable). Override with SHOPIFY_API_VERSION when newer stable versions ship.

Enterprise

Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.

License

MIT

Questions about Shopify

What is the Shopify MCP server?

MCP server for Shopify, Admin REST API (orders, products, customers, inventory, fulfillments). Shopify is maintained by codespar on GitHub at codespar/mcp-dev-latam, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Shopify MCP server?

Add Shopify to your AI app's MCP config with the command npx -y @codespar/mcp-shopify@0.2.2. In Claude Code, run claude mcp add --transport stdio codespar-shopify -- npx -y @codespar/mcp-shopify@0.2.2. To run Shopify this way you need Node.js installed.

Does Shopify need an API key?

Yes. Shopify expects SHOPIFY_SHOP and SHOPIFY_ACCESS_TOKEN to be set. Create the key for Shopify in the connected service's own settings, give it the smallest permissions the job needs, and keep it out of shared config files.

Is Shopify an official MCP server?

No. Shopify is a community server maintained by codespar. Community servers can be excellent; read the code and the open issues before you give Shopify access to company data.

What license is Shopify under?

Shopify is released under the MIT license, according to its GitHub repository. The license covers the code of Shopify; the service it connects to has its own terms.