@aiwerk/mcp-server-shopify
MCP serverCommerce & financeThis 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
- Save this item in Your setup as a reference.
- Read the source or reference documentation for its setup requirements. Saving it here does not connect it to your AI.
- 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 var | What |
|---|---|
SHOPIFY_STORE_DOMAIN | Your store domain, e.g. your-store.myshopify.com |
SHOPIFY_CLIENT_ID | Client ID from your Shopify Dev Dashboard app |
SHOPIFY_CLIENT_SECRET | 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_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_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.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)
| Tool | What it does |
|---|---|
| shopify_list_products | List products with optional Shopify search query syntax (e.g. "status:active vendor:Acme"). Optional pagination via cursor. Default first=50, max=250. |
| shopify_get_product | 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. |
| shopify_search_products | Search products by Shopify search query (full-text + filters like "title:T-Shirt status:active"). Required: query. Optional pagination + sort. |
| shopify_create_product | Create a new product. Required: title. Optional: descriptionHtml, productType, vendor, tags, status (ACTIVE|ARCHIVED|DRAFT, default ACTIVE), handle. Returns product + userErrors. |
| shopify_update_product | 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. |
| shopify_archive_product | 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. |
| shopify_add_product_tag | Add 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_tag | Remove one or more tags from a product. Required: productId, tags (non-empty array). Returns the updated product node + userErrors. |
| shopify_list_orders | List orders with optional Shopify search query (e.g. "financial_status:paid created_at:>2026-01-01"). Default first=50, max=250. |
| shopify_get_order | Get a single order by GID or numeric ID. Returns full detail including line items (with truncation marker), customer, addresses, and financial totals. |
| shopify_search_orders | Search orders by Shopify search query (e.g. "name:#1001 OR email:foo@bar.com"). Required: query. |
| shopify_mark_order_paid | Mark an order as paid (orderMarkAsPaid). Use for offline payments where the funds were captured outside Shopify. Returns updated order + userErrors. |
| shopify_cancel_order | Cancel an order asynchronously (orderCancel returns a job). Destructive: requires confirm=true. Default reason=OTHER, restock=true, refund=false, notifyCustomer omitted. |
| shopify_add_order_note | 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. |
| shopify_list_customers | List customers with optional Shopify search query (e.g. "orders_count:>0 country:CH"). Default first=50, max=250. |
| shopify_get_customer | Get 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_customers | Search customers by Shopify search query (e.g. "email:foo@bar.com OR last_name:Smith"). Required: query. |
| shopify_create_customer | Create a customer (customerCreate). At least one of email/phone is required. Optional: firstName, lastName, note, tags, locale. |
| shopify_update_customer | Update a customer (customerUpdate). Required: id. All other fields are optional and only applied if provided. |
| shopify_add_customer_note | 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. |
| shopify_get_inventory_level | Get the inventory level (available, on_hand, committed, incoming, reserved) for an inventory item at a single location. Required: inventoryItemId, locationId. |
| shopify_adjust_inventory_level | 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. |
| shopify_create_draft_order | Create 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_order | 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. |
| shopify_get_shop_info | Get shop-level metadata: name, primary domain, currency, timezone, plan, billing address, contact email, weight unit. |
| shopify_list_collections | List collections with optional Shopify search query. Returns id, title, handle, descriptionHtml, sortOrder, productsCount. |
| shopify_list_locations | List shop locations (warehouses, retail stores). By default excludes inactive and legacy locations; toggle with includeInactive / includeLegacy. |
| shopify_list_metafields | List 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
github.com/aiwerk/mcp-server-shopify
More in Commerce & finance
MCP server · mikeypetrillo
More in Commerce & financecrypto-quant-signal-mcp
MCP server · algovaultlabs
More in Commerce & financeHive Intelligence MCP
MCP server · hive-intel
More in Commerce & financekeryx
MCP server · tang-vu
More in Commerce & financetruss44-mcp-crypto-price
MCP server · truss44
More in Commerce & financetrading-mcp
MCP server · ai-rook
More in Commerce & finance