shopify
Provides tools for interacting with the Shopify Admin GraphQL API, enabling AI agents to manage products, orders, customers, inventory, draft orders, collections, locations, and metafields in a Shopify store.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@shopify show me the details for order #1234"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@aiwerk/mcp-server-shopify
Shopify Admin GraphQL API MCP server. Lets an AI agent read and write to a Shopify store: products, orders, customers, inventory, draft orders, collections, locations, metafields.
Built and signed by AIWerk. MIT licensed.
Status
v0.1.0 — under active development. Tool surface and credential flow may change before v1.0.
Related MCP server: Shopify MCP Server
Install
npx -y @aiwerk/mcp-server-shopifyAuthentication
This server uses the modern OAuth client_credentials grant (Shopify Dev Dashboard apps). Legacy shpat_* custom-app tokens are not supported.
Three environment variables:
Env var | What |
| Your store domain, e.g. |
| Client ID from your Shopify Dev Dashboard app |
| Client Secret from your Shopify Dev Dashboard app |
The server automatically exchanges the client credentials for an Admin API access token and refreshes the token before its 24h expiry. No manual token rotation.
Creating the Dev Dashboard app
Sign in to Shopify Partner Dashboard, then open the Dev Dashboard.
Apps → Create app → Start from Dev Dashboard. Name it (e.g.
my-mcp-app).Versions tab → set the scopes you need (see below) → Release.
Home tab → Install app → choose your store → Install.
Settings tab → copy Client ID and Client Secret.
Scopes
The 12 scopes below cover the full v0.1 tool surface. Trim to a smaller set if you want a more restricted token (e.g. read-only orders).
read_products, write_products,
read_customers, write_customers,
read_orders, write_orders,
read_draft_orders, write_draft_orders,
read_inventory, write_inventory,
read_locations,
read_publicationsTools
v0.1 ships 28 tools across the Shopify Admin GraphQL API. See src/tools/ for the implementation; tool names are shown in tools/list after the server starts.
Protected customer data
Shopify gates access to customer-bearing objects (Customer, DraftOrder, plus customer { ... } selections inside Order) behind a separate approval. Apps not approved for protected customer data will see this error from the affected tools:
GraphQL error: This app is not approved to access the Customer object.
See https://shopify.dev/docs/apps/launch/protected-customer-dataThe server returns this error verbatim to the AI client. Apply for protected-data approval at the link above if you need:
shopify_list_customers,_get_customer,_search_customers,_create_customer,_update_customer,_add_customer_noteshopify_create_draft_order,_complete_draft_ordershopify_get_order,_list_orders,_search_orders,_mark_order_paid,_cancel_order,_add_order_note(these may also be affected when the response includes customer fields)
Product, inventory, location, collection, metafield, and shop-info tools are unaffected.
API version
The server pins the Shopify GraphQL Admin API to 2026-04. Bumped quarterly per the Shopify release schedule.
Local development
npm install
npm run build
export SHOPIFY_STORE_DOMAIN=your-store.myshopify.com
export SHOPIFY_CLIENT_ID=YOUR_CLIENT_ID
export SHOPIFY_CLIENT_SECRET=YOUR_CLIENT_SECRET
node dist/src/server.jsPull the secrets from your preferred secret store however you like. For example, with pass(1):
SHOPIFY_CLIENT_ID=$(pass show aiwerk/shopify-dev-client-id)
SHOPIFY_CLIENT_SECRET=$(pass show aiwerk/shopify-dev-client-secret)
export SHOPIFY_CLIENT_ID SHOPIFY_CLIENT_SECRETTests
npm testUnit tests use mocked GraphQL responses and run with no external dependencies. There is no live integration harness in this repo — for now we smoke-test against an internal AIWerk dev store before publish.
Security
See SECURITY.md for credential handling, scope minimization, and disclosure policy.
License
MIT, see LICENSE.
Available Tools
28 toolsshopify_add_customer_noteA
Add a note to a customer. mode=append (default) reads the current note and concatenates with two newlines; mode=replace overwrites. Append makes one extra read query.
Inputs: id (required), note (required), mode.
shopify_add_order_noteA
Add a note to an order. mode=append (default) reads the current note and concatenates with two newlines; mode=replace overwrites. Required: id, note. Append makes one extra read query.
Inputs: id (required), note (required), mode.
shopify_add_product_tagA
Add one or more tags to a product. Required: productId, tags (non-empty array). Idempotent server-side. Returns the updated product node + userErrors.
Inputs: productId (required), tags (required).
shopify_adjust_inventory_levelA
Adjust the available or on_hand quantity at a location by a delta (positive or negative integer, non-zero). Uses inventoryAdjustQuantities. Defaults: name=available, reason=correction. Optional: referenceDocumentUri.
Inputs: inventoryItemId (required), locationId (required), delta (required), name, +2 more.
shopify_archive_productA
Archive a product (sets status to ARCHIVED, hiding it from sale). Reversible. Destructive: requires confirm=true. Without confirm, returns a structured "would do X" response without firing.
Inputs: id (required), confirm.
shopify_cancel_orderA
Cancel an order asynchronously (orderCancel returns a job). Destructive: requires confirm=true. Default reason=OTHER, restock=true, refund=false, notifyCustomer omitted.
Inputs: id (required), reason, refund, restock, +3 more.
shopify_complete_draft_orderA
Complete a draft order, converting it into a real order (draftOrderComplete). Destructive: requires confirm=true. paymentPending=true marks the resulting order as payment pending instead of paid.
Inputs: id (required), paymentPending, confirm.
shopify_create_customerA
Create a customer (customerCreate). At least one of email/phone is required. Optional: firstName, lastName, note, tags, locale.
Inputs: firstName, lastName, email, phone, +3 more.
shopify_create_draft_orderA
Create a draft order. Required: lineItems (non-empty). Each line item needs quantity, plus either variantId (existing variant) or title+originalUnitPrice (custom item). Optional: email, customerId, note, tags, shippingAddress, billingAddress, useCustomerDefaultAddress.
Inputs: lineItems (required), email, customerId, note, +4 more.
shopify_create_productA
Create a new product. Required: title. Optional: descriptionHtml, productType, vendor, tags, status (ACTIVE|ARCHIVED|DRAFT, default ACTIVE), handle. Returns product + userErrors.
Inputs: title (required), descriptionHtml, productType, vendor, +3 more.
shopify_get_customerA
Get a single customer by GID or numeric ID. Returns full detail including default address, addresses (with truncation marker), tags, locale, and lifetime value.
Inputs: id (required).
shopify_get_inventory_levelB
Get the inventory level (available, on_hand, committed, incoming, reserved) for an inventory item at a single location. Required: inventoryItemId, locationId.
Inputs: inventoryItemId (required), locationId (required).
shopify_get_orderA
Get a single order by GID or numeric ID. Returns full detail including line items (with truncation marker), customer, addresses, and financial totals.
Inputs: id (required).
shopify_get_productA
Get a product by GID or numeric ID (e.g. "gid://shopify/Product/123" or "123"). Returns full product detail including variants and images, with truncation markers when capped.
Inputs: id (required).
shopify_get_shop_infoA
Get shop-level metadata: name, primary domain, currency, timezone, plan, billing address, contact email, weight unit.
Inputs: no named parameters.
shopify_list_collectionsC
List collections with optional Shopify search query. Returns id, title, handle, descriptionHtml, sortOrder, productsCount.
Inputs: first, after, query, reverse.
shopify_list_customersB
List customers with optional Shopify search query (e.g. "orders_count:>0 country:CH"). Default first=50, max=250.
Inputs: first, after, query, sortKey, +1 more.
shopify_list_locationsA
List shop locations (warehouses, retail stores). By default excludes inactive and legacy locations; toggle with includeInactive / includeLegacy.
Inputs: first, after, includeInactive, includeLegacy.
shopify_list_metafieldsB
List metafields on any HasMetafields resource (Product, ProductVariant, Customer, Order, Collection, Shop, Company, Location). Required: ownerId, ownerType. Optional: namespace filter.
Inputs: ownerId (required), ownerType (required), first, after, +1 more.
shopify_list_ordersC
List orders with optional Shopify search query (e.g. "financial_status:paid created_at:>2026-01-01"). Default first=50, max=250.
Inputs: first, after, query, sortKey, +1 more.
shopify_list_productsA
List products with optional Shopify search query syntax (e.g. "status:active vendor:Acme"). Optional pagination via cursor. Default first=50, max=250.
Inputs: first, after, query, sortKey, +1 more.
shopify_mark_order_paidA
Mark an order as paid (orderMarkAsPaid). Use for offline payments where the funds were captured outside Shopify. Returns updated order + userErrors.
Inputs: id (required).
shopify_remove_product_tagA
Remove one or more tags from a product. Required: productId, tags (non-empty array). Returns the updated product node + userErrors.
Inputs: productId (required), tags (required).
shopify_search_customersB
Search customers by Shopify search query (e.g. "email:foo@bar.com OR last_name:Smith"). Required: query.
Inputs: query (required), first, after, sortKey, +1 more.
shopify_search_ordersC
Search orders by Shopify search query (e.g. "name:#1001 OR email:foo@bar.com"). Required: query.
Inputs: query (required), first, after, sortKey, +1 more.
shopify_search_productsB
Search products by Shopify search query (full-text + filters like "title:T-Shirt status:active"). Required: query. Optional pagination + sort.
Inputs: query (required), first, after, sortKey, +1 more.
shopify_update_customerA
Update a customer (customerUpdate). Required: id. All other fields are optional and only applied if provided.
Inputs: id (required), firstName, lastName, email, +4 more.
shopify_update_productA
Update fields on an existing product by GID or numeric ID. Required: id. All other fields are optional and only applied if provided. Returns product + userErrors.
Inputs: id (required), title, descriptionHtml, productType, +4 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 28 tools
Tools are mostly distinct, but list vs search variants for customers, orders, and products could cause confusion. Descriptions clarify differences, but an agent might still select the wrong one in some cases.
All tools follow a consistent 'shopify_verb_noun' pattern with lowercase snake_case. Verbs are clear (add, adjust, archive, cancel, complete, create, get, list, mark, remove, search, update). Excellent naming consistency.
28 tools is slightly above the typical well-scoped range, but justified by Shopify's broad API covering customers, orders, products, inventory, and more. No tools feel redundant.
Covers basic CRUD for customers and products, but missing delete operations entirely. Orders have no direct create or update; only draft order creation and completion. No metafields CRUD (only list), no collection management beyond list, no refund or fulfillment tools.
Related MCP Connectors
Connect AI to store orders, products and inventory with scoped access and human approvals.
Bulk edit Shopify products from an AI agent: search, preview, apply and undo catalog edits.
Shopify store analysis and product-catalog extraction as agent tools.
Any Shopify store's products for AI agents: prices per country, sales, variants, stock, collections.
Related MCP Servers
- AlicenseCqualityDmaintenanceEnables interaction with Shopify store data through GraphQL API, providing tools for managing products, customers, orders, blogs, and articles.155MIT
- AlicenseDqualityDmaintenanceEnables interaction with Shopify stores through the GraphQL Admin API. Supports product management, customer data, order queries, blog/article management, and store-wide search capabilities through natural language.152MIT
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Shopify store data through the GraphQL Admin API, supporting product, customer, and order management. It allows users to search, retrieve, create, and update store resources via natural language commands.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with live Shopify stores through Admin and Storefront APIs for tasks like GraphQL execution, bulk operations, and file uploads. It includes built-in rate limiting and operation logging to manage store data and schema discovery securely.18 npm3ISC