@aiwerk/mcp-server-shopify

MCP serverCommerce & finance

This integration connects your AI to your Shopify store so it can handle product and order work for you. Once added, your AI can look up and edit products, keep tags current, and find or update orders right from your conversation. It works with your store's products, orders, customers, and inventory, with both read and write access.

Unavailable. This server has no hosted endpoint yet, so Ahel can't serve it.

Add to setup to save this item as a reference. Ahel cannot run it, and signing in will not install it.

What your AI can do with it

  • Find products by name, status, vendor, or other filters
  • Create new products and update details like descriptions, tags, and status
  • Archive products you no longer want on sale
  • Add or remove tags on products
  • Look up orders by order number, customer email, or payment status
  • Mark orders as paid when payment was collected outside Shopify

Getting started

  1. Save this item in Your setup as a reference.
  2. Read the source or reference documentation for its setup requirements. Saving it here does not connect it to your AI.
  3. Check this page for availability before trying to install it through Ahel.

From the project's README

As published by aiwerk/mcp-server-shopify in README.md.

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.

Install

npx -y @aiwerk/mcp-server-shopify

Authentication

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 varWhat
SHOPIFY_STORE_DOMAINYour store domain, e.g. your-store.myshopify.com
SHOPIFY_CLIENT_IDClient ID from your Shopify Dev Dashboard app
SHOPIFY_CLIENT_SECRETClient 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

  1. Sign in to Shopify Partner Dashboard, then open the Dev Dashboard.
  2. Apps → Create app → Start from Dev Dashboard. Name it (e.g. my-mcp-app).
  3. Versions tab → set the scopes you need (see below) → Release.
  4. Home tab → Install app → choose your store → Install.
  5. 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_publications

Tools

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-data

The 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_note
  • shopify_create_draft_order, _complete_draft_order
  • shopify_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.js

Pull 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_SECRET

Tests

npm test

Unit 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.

Tools it gives your AI (28)

ToolWhat it does
shopify_list_productsList products with optional Shopify search query syntax (e.g. "status:active vendor:Acme"). Optional pagination via cursor. Default first=50, max=250.
shopify_get_productGet 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.
shopify_search_productsSearch products by Shopify search query (full-text + filters like "title:T-Shirt status:active"). Required: query. Optional pagination + sort.
shopify_create_productCreate a new product. Required: title. Optional: descriptionHtml, productType, vendor, tags, status (ACTIVE|ARCHIVED|DRAFT, default ACTIVE), handle. Returns product + userErrors.
shopify_update_productUpdate 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.
shopify_archive_productArchive 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.
shopify_add_product_tagAdd one or more tags to a product. Required: productId, tags (non-empty array). Idempotent server-side. Returns the updated product node + userErrors.
shopify_remove_product_tagRemove one or more tags from a product. Required: productId, tags (non-empty array). Returns the updated product node + userErrors.
shopify_list_ordersList orders with optional Shopify search query (e.g. "financial_status:paid created_at:>2026-01-01"). Default first=50, max=250.
shopify_get_orderGet a single order by GID or numeric ID. Returns full detail including line items (with truncation marker), customer, addresses, and financial totals.
shopify_search_ordersSearch orders by Shopify search query (e.g. "name:#1001 OR email:foo@bar.com"). Required: query.
shopify_mark_order_paidMark an order as paid (orderMarkAsPaid). Use for offline payments where the funds were captured outside Shopify. Returns updated order + userErrors.
shopify_cancel_orderCancel an order asynchronously (orderCancel returns a job). Destructive: requires confirm=true. Default reason=OTHER, restock=true, refund=false, notifyCustomer omitted.
shopify_add_order_noteAdd 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.
shopify_list_customersList customers with optional Shopify search query (e.g. "orders_count:>0 country:CH"). Default first=50, max=250.
shopify_get_customerGet a single customer by GID or numeric ID. Returns full detail including default address, addresses (with truncation marker), tags, locale, and lifetime value.
shopify_search_customersSearch customers by Shopify search query (e.g. "email:foo@bar.com OR last_name:Smith"). Required: query.
shopify_create_customerCreate a customer (customerCreate). At least one of email/phone is required. Optional: firstName, lastName, note, tags, locale.
shopify_update_customerUpdate a customer (customerUpdate). Required: id. All other fields are optional and only applied if provided.
shopify_add_customer_noteAdd 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.
shopify_get_inventory_levelGet the inventory level (available, on_hand, committed, incoming, reserved) for an inventory item at a single location. Required: inventoryItemId, locationId.
shopify_adjust_inventory_levelAdjust 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.
shopify_create_draft_orderCreate a draft order. Required: lineItems (non-empty). Each line item needs quantity, plus either variantId (existing variant) or title+originalUnitPrice (custom item).
shopify_complete_draft_orderComplete 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.
shopify_get_shop_infoGet shop-level metadata: name, primary domain, currency, timezone, plan, billing address, contact email, weight unit.
shopify_list_collectionsList collections with optional Shopify search query. Returns id, title, handle, descriptionHtml, sortOrder, productsCount.
shopify_list_locationsList shop locations (warehouses, retail stores). By default excludes inactive and legacy locations; toggle with includeInactive / includeLegacy.
shopify_list_metafieldsList metafields on any HasMetafields resource (Product, ProductVariant, Customer, Order, Collection, Shop, Company, Location). Required: ownerId, ownerType. Optional: namespace filter.

Signals

Last commit
Aug 2026
Weekly downloads
54
Weekly_downloads
58 weekly_downloads
Tools captured
28

Ahel review

  • S4info
    community integration, published by aiwerk, not shopify

Automated review, not a security audit. Ruleset v1.

Advanced
Delivery
mcp-server-shopify MCP server → your Ahel connector (mcp.ahel.ai) → your AI.
Item type
mcp-server
Key
io-github-aiwerk-mcp-server-shopify
Source
github.com/aiwerk/mcp-server-shopify