# shopify-admin-mcp-server [Health: Active]

**Category:** 🛒 E-Commerce  
**Repository:** https://github.com/camerone05/shopify-admin-mcp-server  
**GitHub Stars:** 0  
**npm Downloads (last month):** 51  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/shopify-admin-mcp-server

## Description
Shopify Admin GraphQL API 2026-01 MCP server — 54 scope-aligned tools for orders, products, variants, media, inventory & location fulfilment, customers, collections, discounts, checkouts, content, metafields, bulk variant updates, analytics

## Tools
Capabilities this server exposes over MCP:

- **shopify_get_shop** — Get store details: name, email, domain, Shopify plan, currency, timezone, billing address.
- **shopify_list_orders** — List orders within a date range with financial details, line items, and customer info.

Args:
  - date_from: Start date YYYY-MM-DD (inclusive)
  - date_to: End date YYYY-MM-DD (inclusive)
  - limit: Max orders 1–250 (default 50)
  - status_filter: Extra Shopify query filter e.g. "financial_status:paid fulfillment_status:unfulfilled"
- **shopify_get_order** — Get a single order by GID with full detail: line items, shipping/billing address, fulfillments, and refunds.
- **shopify_weekly_summary** — Aggregate financial summary — fetches ALL orders in the period (auto-paginated), calculates revenue totals, AOV, items per order, and product breakdown sorted by revenue.
- **shopify_order_count** — Lightweight order count for a date range without fetching order details.
- **shopify_search_customers** — Search customers by name, email, tags, or any Shopify customer query filter.

Example queries: "Jane Smith", "email:bob@example.com", "tag:vip", "state:enabled"
- **shopify_get_customer** — Full customer profile: all addresses, tags, order history (last 5 orders), and lifetime spend.
- **shopify_add_tags** — Add tags to any Shopify resource you have write access to (products, articles, collections). Tags are additive — existing tags are preserved.

Note: requires write access on the target resource type (e.g. write_products for products).
- **shopify_remove_tags** — Remove specific tags from any Shopify resource you have write access to (products, articles, collections).
- **shopify_get_products** — List or search products. Supports cursor pagination.

Args:
  - searchTitle: Partial title match
  - query: Raw Shopify filter e.g. "status:active vendor:Nike tag:sale"
  - limit: Max results (default 10)
  - after/before: Pagination cursors
  - detail: "full" (variants, inventory, pricing, SKUs, images — default) or "summary"
    (id/title/handle/status/vendor/productType/tags/totalInventory only — much lighter,
    use this for bulk scans, filtering, or deciding what to tag)
- **shopify_bulk_tag_products** — Add tags to every product matching a Shopify search query, paging through all matches
server-side in one call — no manual pagination or per-product tagging round trips.

Example: query: "title:*jersey* OR title:*bib* OR title:*t-shirt*", tags: ["reviewsizing"]

Skips products that already carry every tag given. Set dryRun:true to preview the match set
(and see which products would be skipped as already-tagged) before writing anything.
- **shopify_get_product_by_id** — Full product detail: all variants with inventory item IDs, product options, media, collections, and SEO fields.
- **shopify_create_product** — Create a product. Defaults to DRAFT status — pass status: "ACTIVE" to publish immediately.

Options and variants:
  - Give productOptions (e.g. Size → S/M/L) to create a product with real variants.
  - Then call shopify_create_variants to add the priced variants against those options.
  - With no productOptions, Shopify creates a single default variant; set its price with shopify_update_product.

Images can be attached at creation via imageUrls (each must be a publicly reachable URL).
- **shopify_update_product** — Update a product's title, description, SEO, status, vendor, tags, or its variants' prices/SKUs.
Only provided fields change.

Variants passed here are UPDATED (each needs its variant GID). To add new variants use shopify_create_variants;
to remove them use shopify_delete_variants.
- **shopify_delete_product** — PERMANENTLY delete a product and all its variants, media, inventory items, and collection memberships.
This CANNOT be undone.

Prefer setting status to ARCHIVED via shopify_update_product if there is any chance you'll want it back.
Completed orders containing the product are unaffected.
- **shopify_duplicate_product** — Copy a product, including its variants and options, under a new title.
The copy defaults to DRAFT so it can't accidentally go live.
- **shopify_add_product_media** — Attach images or video to a product from publicly reachable URLs.

Shopify fetches each URL asynchronously, so media comes back with status UPLOADED/PROCESSING and becomes
READY shortly after. A URL Shopify cannot reach fails silently into a FAILED status — re-read the product
with shopify_get_product_by_id to confirm.
- **shopify_create_variants** — Add new variants to an existing product.

Each variant must supply optionValues matching the product's options — e.g. for a product with options
Size and Colour: optionValues: [{ optionName: "Size", name: "M" }, { optionName: "Colour", name: "Black" }].
Read the product's options first with shopify_get_product_by_id.

strategy REMOVE_STANDALONE_VARIANT deletes the auto-created default variant — use it when adding the
first real variants to a product that was created without options.
- **shopify_delete_variants** — PERMANENTLY delete variants from a product, along with their inventory items. This CANNOT be undone.

A product must keep at least one variant — deleting all of them fails.
- **shopify_get_locations** — All store locations: name, address, active status, and whether each fulfills online orders.
- **shopify_get_variant_locations** — Look up a variant by SKU (or variant GID) and see exactly which locations stock and fulfil it.

Returns:
  - active_locations: locations that CAN stock & fulfil this variant, with available/on_hand/committed/incoming
    quantities, plus can_deactivate and any deactivation_blocked_reason
  - inactive_locations: locations that CANNOT — activate one with shopify_set_variant_locations
  - inventory_item_id: needed by shopify_adjust_inventory / shopify_set_inventory

Call this before shopify_set_variant_locations to see the current state.
- **shopify_set_variant_locations** — Turn location fulfilment ON or OFF for a variant, identified by SKU or variant GID.

  - activate: true  → the location can stock and fulfil this variant (starts at 0 available;
                      follow with shopify_set_inventory to set stock)
  - activate: false → the location no longer stocks the variant, and its stock there is discarded

Locations may be given as a GID or by name (e.g. "Melbourne Warehouse"), matched case-insensitively.
Multiple locations are applied in a single call.

DEACTIVATION IS DESTRUCTIVE: it discards that location's inventory for the variant. Shopify refuses when the
variant has committed stock or pending fulfilments there — check can_deactivate via shopify_get_variant_locations first.
- **shopify_get_inventory_levels** — Inventory quantities at each location for a specific variant: available, on_hand, committed, incoming.

Prefer shopify_get_variant_locations — it accepts a SKU and also shows which locations are NOT stocking the variant.
- **shopify_adjust_inventory** — Change stock by a RELATIVE amount at one location — e.g. delta: -3 to remove three units.

Accepts a SKU (preferred) or an explicit inventoryItemId. Location may be a GID or a name.
To set an exact number instead of a delta, use shopify_set_inventory.

The variant must already be stocked at the location — activate it first with shopify_set_variant_locations.
- **shopify_set_inventory** — Set stock to an EXACT number at one or more locations — e.g. quantity: 42 means "there are now 42".

Use this for stocktakes and when syncing from a system that is the source of truth. For relative changes
("we sold 3"), use shopify_adjust_inventory instead.

Concurrency: by default this uses compare-and-set — pass compareQuantity (the quantity you believe is currently
there) and Shopify rejects the write if someone changed it underneath you. Set ignoreCompareQuantity: true to
force the write regardless, which risks clobbering a concurrent update.

The variant must already be stocked at the location — activate it first with shopify_set_variant_locations.
- **shopify_move_inventory** — Move stock of one variant from one location to another in a single transactional call —
the origin is decremented and the destination incremented together.

Both locations must already stock the variant (activate with shopify_set_variant_locations first).

quantityName pairs the ledger states being moved between, e.g. moving 'available' at the origin to
'available' at the destination. For most stock transfers, leave both as 'available'.
- **shopify_update_inventory_item** — Update a variant's inventory-item settings — the per-SKU attributes that aren't pricing:

  - tracked: whether Shopify tracks stock for this SKU at all (untracked SKUs always sell)
  - cost: unit cost, used for profit reporting and COGS
  - requiresShipping: false for digital or service items

Customs / HTS fields, needed before Shopify will generate international shipping labels:

  - harmonizedSystemCode: the HS/HTS tariff code, 6 to 13 digits. Dots and spaces are stripped,
    so '6110.20.20' and '61102020' are both accepted.
  - countryCodeOfOrigin: 2-letter ISO country where the item was made, e.g. 'AU', 'CN'
  - provinceCodeOfOrigin: province/state code, only used by a few destinations (e.g. 'BC' for Canada)
  - countryHarmonizedSystemCodes: destination-specific HTS overrides, for when a country wants a
    longer national code than your 6-digit base. Replaces the whole override list.

Read the current values back with shopify_get_variant_locations.
Accepts a SKU or an explicit inventoryItemId. Only provided fields change.
- **shopify_get_pages** — List all store pages or search by title.
- **shopify_get_page_by_id** — Full page content including HTML body, SEO, and publish status. Use after shopify_get_pages to get the full body of a specific page.
- **shopify_update_page** — Update a page's title, HTML body, handle, template suffix, and publish status. Only provided fields are changed.
- **shopify_get_blogs** — List all blogs or search by title.
- **shopify_get_blog_by_id** — Get a specific blog with its 10 most recent article summaries.
- **shopify_update_blog** — Update a blog's title, handle, template suffix, or comment policy.

Comment policies: MODERATED, AUTO_PUBLISHED, CLOSED
- **shopify_get_articles** — Get articles from a specific blog. Use shopify_get_blogs first to find the blog GID.
- **shopify_get_article_by_id** — Full article with HTML body, SEO, author, tags, image, and parent blog reference.
- **shopify_create_article** — Create a new blog article with HTML body, author, summary, and tags.
- **shopify_update_article** — Update an article's title, body, summary, tags, author, or publish status.
- **shopify_search** — Unified search across products, articles, blogs, and pages. Runs parallel queries for each type and returns results grouped by type.
- **shopify_get_metafields** — Get metafields for any Shopify resource. Requires read access on the owner resource type (e.g. read_products for product metafields).
- **shopify_set_metafield** — Upsert a metafield on any resource you have write access to (products, collections, pages, articles).

Common types: single_line_text_field, multi_line_text_field, integer, boolean, json, url, color, date, file_reference
- **shopify_delete_metafield** — Delete a metafield by GID. Get the ID first with shopify_get_metafields.
- **shopify_get_collections** — List all collections or search by title. Returns SEO fields, sort order, and template suffix.
- **shopify_update_collection** — Update a collection's title, description HTML, and SEO metadata.
- **shopify_list_draft_orders** — List draft orders with status, customer info, line items, and totals.

Filter examples: "status:open", "status:completed", "customer_id:gid://shopify/Customer/123"
- **shopify_list_discounts** — List all discounts — code-based (basic, free shipping, BXGY) and automatic. Returns codes, usage counts, and discount values.

Filter by query string. Examples:
  - "status:ACTIVE"
  - "discount_type:percentage"
  - "discount_type:fixed_amount"
  - "title:SUMMER"
- **shopify_list_abandoned_checkouts** — List abandoned checkouts with customer details, line items, pricing, and the recovery URL. Useful for identifying recovery opportunities and lost revenue.

Only returns checkouts that have not been completed (completedAt is null).
- **shopify_create_collection** — Create a collection.

Two kinds:
  - Manual (default): you choose the products, via shopify_collection_add_products.
  - Smart: pass ruleSet and Shopify keeps membership up to date automatically.
    e.g. { appliedDisjunctively: false, rules: [{ column: "TAG", relation: "EQUALS", condition: "sale" }] }
    appliedDisjunctively: false = products must match ALL rules; true = ANY rule.
    Common columns: TAG, TITLE, TYPE, VENDOR, VARIANT_PRICE, VARIANT_INVENTORY.

A collection's rule set cannot be added later — decide smart vs manual now.
- **shopify_collection_add_products** — Add products to a MANUAL collection.

This fails on smart (rule-based) collections — their membership is decided by the rules, not by hand.
Shopify processes the change asynchronously and returns a job; job.done: false just means it's still
running, not that it failed.
- **shopify_collection_remove_products** — Remove products from a MANUAL collection. The products themselves are not deleted — only their
membership of this collection.

Processed asynchronously, same as adding.
- **shopify_bulk_update_variants** — Apply the same field changes to many variants in one go — customs data, cost,
pricing, identifiers and shipping weight.

Select the variants with any combination of skus, productIds, query, onlyMissingHsCode and
onlyMissingOrigin (combined with AND). At least one selector is required.

The common customs backfill is:
  onlyMissingHsCode: true, harmonizedSystemCode: '611030', countryCodeOfOrigin: 'AU'

dryRun defaults to TRUE when price or compareAtPrice is set, and FALSE otherwise — so pricing
changes require an explicit dryRun: false, while customs and cost writes apply immediately.
A dry run reports exactly which variants would change and writes nothing.

maxVariants (default 500) is a hard refusal, not a truncation: if the selector matches more,
nothing is written and you are told the match count.

SKU cannot be changed here — bulk-rewriting SKUs would break the selectors used to address
variants. Use shopify_update_inventory_item for single-SKU changes.
- **shopify_audit_variant_customs** — Report which variants are missing customs data — the HS/HTS code and country of
origin Shopify needs before it will generate international shipping labels.

Returns totals, the distinct HS codes already in use with their variant counts, and the list of
variants missing data. Use this to aim a backfill before running shopify_bulk_update_variants.

Read-only — it never writes.
- **shopify_analytics_query** — Run a ShopifyQL query against the store's analytics and get back a table.

ShopifyQL shape: FROM <dataset> SHOW <metrics> [GROUP BY <dimension>] [SINCE <range>] [UNTIL <range>]
[ORDER BY <column>] [LIMIT n]

Datasets include sales, orders, products, customers.

Examples:
  FROM sales SHOW total_sales GROUP BY month SINCE -12m ORDER BY month
  FROM sales SHOW total_sales, orders GROUP BY product_title SINCE -30d ORDER BY total_sales DESC LIMIT 10
  FROM orders SHOW average_order_value SINCE -90d

A syntax error is reported as an error, not as an empty table — an empty result genuinely means
no matching data.
- **shopify_list_marketing_events** — Marketing events recorded against the store — ad campaigns, posts and other
attributed activity, with their UTM parameters and run dates.

Only populated when a marketing app or integration publishes events to Shopify. An empty list
means no such integration is connected, not that the query failed.
- **shopify_get_customer_events** — The activity timeline for one customer — the same events Shopify shows on the
customer's admin page, newest first.

Many customers have no recorded events; an empty list is a valid answer.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "shopify-admin-mcp-server": {
    "command": "npx",
    "args": ["-y","shopify-admin-mcp-server"],
    "env": {
      "SHOPIFY_STORE_DOMAIN": "",
      "SHOPIFY_ACCESS_TOKEN": ""
    }
  }
}
```

**Requires environment variables:** `SHOPIFY_STORE_DOMAIN`, `SHOPIFY_ACCESS_TOKEN` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What shopify-admin-mcp-server does

shopify-admin-mcp-server exposes 54 Shopify Admin GraphQL operations as MCP tools for store administration. The coverage spans order reporting, product and variant management, inventory, fulfilment locations, customers, collections, pages, blogs, articles, metafields, draft orders, discounts, checkouts, marketing events, and analytics.

The server targets Shopify's Admin GraphQL API 2026-01 schema. It includes both read operations and write operations, so an agent can inspect store data, update catalogue records, change inventory, maintain online-store content, and run ShopifyQL reports.

A notable workflow is location fulfilment by SKU. An agent can find the locations where a SKU is active, inspect available and committed quantities, then activate or deactivate fulfilment at selected locations. It can also adjust stock, set an exact quantity, move inventory between locations, and update per-SKU customs or inventory settings.

## How it works

Run the package as a standard stdio MCP process with:

```bash
npx -y shopify-admin-mcp-server
```

The process reads `SHOPIFY_STORE_DOMAIN` and `SHOPIFY_ACCESS_TOKEN` from its environment and sends Shopify Admin GraphQL requests on behalf of the connected MCP client. GraphQL operations are validated against the 2026-01 schema.

Tool access follows the scopes granted to the Shopify OAuth token. Examples include `read_orders` for order tools, `read_inventory` and `write_inventory` for stock operations, `read_products` and `write_products` for catalogue operations, and content-specific scopes for pages, blogs, and articles.

## Setup and configuration

Set these required environment variables before starting the process:

- `SHOPIFY_STORE_DOMAIN`: the Shopify store domain.
- `SHOPIFY_ACCESS_TOKEN`: the OAuth access token used for Admin API requests.

The token needs the Shopify scopes required by the operations an agent will call. Read-only tasks can use read scopes, while catalogue, inventory, collection, content, or metafield changes require the corresponding write scopes.

## Tools and capabilities

Key tool groups include:

- **Orders and reporting:** list orders by date range, retrieve an order, count orders, generate a paginated weekly summary, and query Shopify analytics.
- **Inventory and locations:** list locations, inspect variant quantities, adjust or set stock, move inventory transactionally, toggle SKU fulfilment by location, and update tracking or customs data.
- **Products and variants:** search products, create or update products, duplicate products as drafts, attach media from public URLs, create variants, delete records, and apply bulk tags or variant changes.
- **Customers and marketing:** search customers, retrieve profiles and recent orders, inspect customer events, and list marketing events with UTM parameters.
- **Store content and merchandising:** manage collections, pages, blogs, articles, metafields, and unified searches across catalogue and content resources.

Bulk variant updates can target SKUs, product IDs, search queries, or missing customs fields. Pricing changes default to a dry run, and a maximum variant count prevents silent truncation.

## Limitations and notes

Deactivating a SKU at a location discards that location's stock for the variant and can be refused when committed stock or pending fulfilments exist. Activation starts the location with zero available inventory, so a separate inventory-setting operation may be required.

Exact inventory writes use compare-and-set by default. Supplying the observed quantity lets Shopify reject a stale update; forcing the write can overwrite a concurrent change.

Product and variant deletion is permanent and requires `confirm: true`. Marketing event results depend on a marketing integration publishing events to Shopify. Media attachments use public URLs, and Shopify permissions determine which tools can operate successfully.

_Full upstream README: https://allmcps.com/mcp/shopify-admin-mcp-server/readme_

