Shopify Admin MCP Server README

The full upstream README, mirrored for reference. Install config, tool schemas, adoption signals and our own overview live on the Shopify Admin MCP Server listing page.

Shopify MCP Server v4.0.1

Shopify Admin GraphQL API 2026-01 MCP server. 54 tools aligned to the OAuth scopes actually granted on the token — orders, products, variants, media, inventory & per-location fulfilment, customers, collections, discounts, abandoned checkouts, blog content, pages, metafields, bulk variant updates, and analytics.

Every GraphQL operation is validated against the 2026-01 schema, and all 24 read tools plus the inventory write tools are verified against a live store.

Terminal
npx -y shopify-admin-mcp-server

Requires SHOPIFY_STORE_DOMAIN and SHOPIFY_ACCESS_TOKEN. Full setup in Setup.

Location fulfilment by SKU

The headline capability: turn a location's ability to stock and fulfil a variant on or off, addressed by SKU rather than by GID.

Code
shopify_get_variant_locations  { sku: "TSHIRT-BLK-M" }
  → active_locations:   where it IS stocked, with available/on_hand/committed/incoming,
                        plus can_deactivate and any deactivation_blocked_reason
  → inactive_locations: where it is NOT stocked
  → inventory_item_id:  for the stock tools below

shopify_set_variant_locations {
  sku: "TSHIRT-BLK-M",
  locations: [
    { location: "Melbourne Warehouse", activate: true  },   // by name or GID
    { location: "Pop-up Store",        activate: false }
  ]
}

Backed by inventoryBulkToggleActivation, so multiple locations are applied in one call. Activating starts the location at 0 available — follow with shopify_set_inventory.

Deactivation is destructive: it discards that location's stock for the variant. Shopify refuses when the variant has committed stock or pending fulfilments there. Check can_deactivate first.

Guardrails: a SKU that matches zero or more than one variant is rejected rather than guessed at, and an unknown location name lists the valid ones.

Tools (54)

Shop & Orders

ToolScopesDescription
shopify_get_shop—Store info: name, domain, plan, currency, timezone
shopify_list_ordersread_ordersList orders in a date range with financials and line items
shopify_get_orderread_ordersSingle order by GID: addresses, fulfillments, refunds
shopify_weekly_summaryread_ordersAuto-paginated aggregate: revenue, AOV, product breakdown
shopify_order_countread_ordersLightweight count for a date range

Inventory & Locations

ToolScopesDescription
shopify_get_locationsread_locationsAll store locations with addresses
shopify_get_variant_locationsread_inventoryBy SKU: which locations stock/fulfil a variant, and which don't
shopify_set_variant_locationswrite_inventoryBy SKU: activate/deactivate fulfilment at locations
shopify_get_inventory_levelsread_inventoryQuantities per location for a variant GID
shopify_adjust_inventorywrite_inventoryChange stock by a delta ("we sold 3")
shopify_set_inventorywrite_inventorySet stock to an exact value, with compare-and-set
shopify_move_inventorywrite_inventoryMove stock between locations transactionally
shopify_update_inventory_itemwrite_inventoryPer-SKU settings: tracked, unit cost, HS/HTS code, country of origin

Customs / HTS data

shopify_update_inventory_item sets the customs fields Shopify needs before it will generate international shipping labels — harmonizedSystemCode (6–13 digits; 6110.20.20 and 61102020 are both accepted), countryCodeOfOrigin, provinceCodeOfOrigin, and per-destination countryHarmonizedSystemCodes overrides. Country codes are case-insensitive. Read the current values back under customs in shopify_get_variant_locations.

shopify_set_inventory defaults to compare-and-set: pass compareQuantity and Shopify rejects the write if someone changed the value underneath you. ignoreCompareQuantity: true forces it, at the risk of clobbering a concurrent update.

Bulk variant updates

ToolScopeWhat it does
shopify_bulk_update_variantswrite_productsApply customs, cost, pricing, identifier and weight changes to many variants at once
shopify_audit_variant_customsread_productsReport which variants are missing HS codes or country of origin

Select variants with skus, productIds, query, onlyMissingHsCode or onlyMissingOrigin, combined with AND. The common customs backfill is one call:

Code
onlyMissingHsCode: true, harmonizedSystemCode: "611030", countryCodeOfOrigin: "AU"

dryRun defaults to true when price or compareAtPrice is set and false otherwise, so pricing changes need an explicit dryRun: false. maxVariants (default 500) refuses rather than truncating. sku cannot be changed in bulk.

Analytics & marketing

ToolScopeWhat it does
shopify_analytics_queryread_reportsRun a ShopifyQL query and get a table back
shopify_list_marketing_eventsread_marketing_eventsCampaign/post events with UTM parameters
shopify_get_customer_eventsread_customersOne customer's activity timeline

Marketing events are only populated when a marketing integration publishes to Shopify; an empty list means none is connected.

Products, Variants & Media

ToolScopesDescription
shopify_get_productsread_productsList/search products with variants, inventory, pricing (paginated)
shopify_bulk_tag_productswrite_productsAdd tags to every product matching a search query, paging server-side; skips already-tagged products, supports dryRun
shopify_get_product_by_idread_productsFull detail: variants, options, media, collections, SEO
shopify_create_productwrite_productsCreate a product, with options and images
shopify_update_productwrite_productsUpdate fields and variant prices/SKUs
shopify_delete_productwrite_productsPermanent delete (requires confirm: true)
shopify_duplicate_productwrite_productsCopy a product; the copy defaults to DRAFT
shopify_add_product_mediawrite_productsAttach images/video from public URLs
shopify_create_variantswrite_productsAdd variants against the product's options
shopify_delete_variantswrite_productsPermanent delete (requires confirm: true)

Customers

ToolScopesDescription
shopify_search_customersread_customersSearch by name, email, or any Shopify filter
shopify_get_customerread_customersFull profile with addresses and recent orders
shopify_add_tagswrite_productsAdd tags to any Shopify resource
shopify_remove_tagswrite_productsRemove tags from any Shopify resource

Collections

ToolScopesDescription
shopify_get_collectionsread_productsList/search collections with SEO
shopify_create_collectionwrite_productsCreate a manual or smart (rule-based) collection
shopify_update_collectionwrite_productsUpdate title, description, and SEO
shopify_collection_add_productswrite_productsAdd products to a manual collection (async)
shopify_collection_remove_productswrite_productsRemove products from a manual collection (async)

Pages, Blogs & Articles

ToolScopesDescription
shopify_get_pagesread_online_store_pagesList/search store pages
shopify_get_page_by_idread_online_store_pagesFull page content and publish status
shopify_update_pagewrite_online_store_pagesUpdate title, HTML body, handle, publish status
shopify_get_blogsread_contentList/search blogs
shopify_get_blog_by_idread_contentBlog with 10 most recent articles
shopify_update_blogwrite_contentUpdate title, handle, comment policy
shopify_get_articlesread_contentArticles for a blog
shopify_get_article_by_idread_contentFull article with HTML, author, tags
shopify_create_articlewrite_contentCreate a blog article
shopify_update_articlewrite_contentUpdate content, tags, author, publish status

Search, Metafields & Commerce

ToolScopesDescription
shopify_searchread_products / read_content / read_online_store_pagesUnified search across products, articles, blogs, pages
shopify_get_metafieldsvaries by resourceGet metafields for any resource
shopify_set_metafieldvaries by resourceCreate or update a metafield
shopify_delete_metafieldvaries by resourceDelete a metafield by GID
shopify_list_draft_ordersread_draft_ordersList draft orders with line items and totals
shopify_list_discountsread_discountsList all discounts (code + automatic) via discountNodes
shopify_list_abandoned_checkoutsread_checkoutsAbandoned checkouts with recovery URL and line items

Not included (scopes not granted)

These are deliberately absent — the tools would 403 at runtime. Add the scopes to the custom app and reinstall to get a new token, then they can be built:

CapabilityScopes needed
Create/cancel fulfilments, tracking numbers, move fulfilment between locationswrite_fulfillments, read_fulfillments, *_merchant_managed_fulfillment_orders
Order edits, refunds, cancellations, order taggingwrite_orders
Returnsread_returns, write_returns
Create/complete draft orderswrite_draft_orders
Create discount codeswrite_discounts
Publish products to sales channelswrite_publications, read_publications
Create/edit locationswrite_locations

Architecture

Code
src/
  index.ts             # entry point — wires the tool modules together
  shopify-client.ts    # config, GraphQL client (429 retry), errors, MCP response helpers
  resolvers.ts         # SKU → variant, location name → GID
  variant-fields.ts     # shared variant field validation/normalisation (HS codes, weight, etc.)
  variant-select.ts     # selector (skus/productIds/query/missing-customs) → concrete variant list
  bulk.ts                # field-agnostic bulk variant writer: grouping, chunking, per-product results
  tools/
    orders.ts         # shop, orders, summary, count
    products.ts       # products, variants, media
    inventory.ts      # locations, variant⇄location activation, stock
    customers.ts      # customers, resource tagging
    content.ts        # pages, blogs, articles, metafields, search
    commerce.ts       # collections, draft orders, discounts, abandoned checkouts
    bulk-variants.ts   # bulk variant field updates, customs coverage audit
    analytics.ts       # ShopifyQL query tool
    marketing.ts        # marketing events, customer event timelines
tests/
  *.test.ts            # Vitest unit tests — one file per module under test

Each module exports a single registerXTools(server) function. No file exceeds 800 lines.


Setup

1. Create a Shopify Custom App

  1. Shopify Admin → Settings → Apps and sales channels → Develop apps
  2. Click Create an app
  3. Under Configure Admin API scopes, enable:
    • read_all_orders, read_orders
    • read_analytics, read_reports, read_customer_events
    • read_checkouts
    • read_customers
    • read_price_rules, read_discounts
    • read_draft_orders
    • read_inventory, write_inventory, read_inventory_transfers, write_inventory_transfers
    • read_locations
    • read_marketing_integrated_campaigns, read_marketing_events
    • read_online_store_pages, write_online_store_pages
    • read_content, write_content
    • read_products, write_products
  4. Click Install app
  5. Copy the Admin API access token

To confirm what a token actually has, query { currentAppInstallation { accessScopes { handle } } }.

2. Install

Run straight from npm — no clone, no build:

Terminal
npx -y shopify-admin-mcp-server

Or install it globally:

Terminal
npm install -g shopify-admin-mcp-server
From source
bash
git clone <repo> shopify-admin-mcp-server
cd shopify-admin-mcp-server
npm install
npm run build

3. Configure the MCP client

config.json
{
  "mcpServers": {
    "shopify": {
      "command": "npx",
      "args": ["-y", "shopify-admin-mcp-server"],
      "env": {
        "SHOPIFY_STORE_DOMAIN": "mystore.myshopify.com",
        "SHOPIFY_ACCESS_TOKEN": "shpat_xxxxxxxxxxxxxxxxxxxxx"
      }
    }
  }
}
Running from a local build instead
config.json
{
  "mcpServers": {
    "shopify": {
      "command": "node",
      "args": ["/full/path/to/shopify-admin-mcp-server/dist/index.js"],
      "env": {
        "SHOPIFY_STORE_DOMAIN": "mystore.myshopify.com",
        "SHOPIFY_ACCESS_TOKEN": "shpat_xxxxxxxxxxxxxxxxxxxxx"
      }
    }
  }
}

4. Restart the client


Environment Variables

VariableRequiredExample
SHOPIFY_STORE_DOMAINYesmystore.myshopify.com
SHOPIFY_ACCESS_TOKENYesshpat_abc123...

Notes

  • All GIDs use the format gid://shopify/ResourceType/12345
  • Rate limits are handled automatically with retry-after backoff (up to 3 retries)
  • Responses over 100,000 characters are truncated with a notice
  • API version: 2026-01
  • discountNodes replaces codeDiscountNodes (removed in 2026-01)
  • Destructive tools (shopify_delete_product, shopify_delete_variants) require an explicit confirm: true
  • inventoryAdjustQuantities / inventorySetQuantities idempotency keys are optional until 2026-04, when they become required

Fixed in v4.0.0

Five tools were silently broken against 2026-01 and failed on every call. All are now fixed and verified live:

ToolBug
shopify_update_pageUsed non-existent PageInput type and Page.bodyHtml field
shopify_adjust_inventorySelected InventoryChange.inventoryItem, which doesn't exist (it's item)
shopify_get_page_by_idSelected Page.seo, which doesn't exist
shopify_list_discountsSelected DiscountRedeemCode.usageCount, which doesn't exist (usage is asyncUsageCount on the discount)
shopify_list_abandoned_checkoutsUsed four money fields that don't exist on AbandonedCheckout

productCreate / productUpdate were also migrated off the deprecated input: ProductInput! argument to product: ProductCreateInput / ProductUpdateInput.