Skip to main content
Glama
shopify-mcp-complete

shopify-mcp-complete

by hishamalhadi

shopify-mcp-complete

A comprehensive Model Context Protocol (MCP) server for Shopify's GraphQL Admin API. Provides 44 tools for managing products, orders, customers, inventory, analytics, discounts, collections, themes, and more.

Features

  • 44 MCP Tools covering all major Shopify operations

  • Full CRUD Support for products, customers, orders, and more

  • Inventory Management - adjust, set, transfer, and track stock levels

  • ShopifyQL Analytics - run custom analytics queries for sales, customers, products

  • Theme Access - read and modify theme files (templates, sections, assets)

  • TypeScript with full type safety and Zod validation

  • Latest Shopify API - Uses GraphQL Admin API version 2026-01

Related MCP server: Shopify MCP Server

Tools Overview

Category

Tools

Description

Products

8

CRUD, variants, images, metafields

Orders

7

List, update, cancel, draft orders, fulfillment

Customers

6

CRUD, order history

Inventory

6

Get levels, adjust, set, bulk adjust, transfer

Analytics

4

ShopifyQL queries, sales reports, product performance

Discounts

4

Create, list, update, delete discount codes

Collections

3

List, products, create/update

Themes

4

List themes, read/write theme files

Shop

2

Store info, locations

Installation

npm install shopify-mcp-complete

Or run directly with npx:

npx shopify-mcp-complete --clientId=YOUR_CLIENT_ID --clientSecret=YOUR_SECRET --domain=your-store.myshopify.com

Authentication

As of January 1, 2026, Shopify requires OAuth client credentials for custom apps. This server supports automatic token refresh (tokens expire every 24 hours).

  1. Go to your Shopify Partners Dashboard

  2. Navigate to Apps → Your App → Client credentials

  3. Copy your Client ID and Client Secret

Legacy Mode

If you have an existing static access token (shpat_...), you can still use it, but this method is deprecated.

Configuration

Create a .env file:

# OAuth Mode (Recommended)
SHOPIFY_CLIENT_ID=your_client_id
SHOPIFY_CLIENT_SECRET=shpss_your_client_secret
MYSHOPIFY_DOMAIN=your-store.myshopify.com

# Legacy Mode (Deprecated)
# SHOPIFY_ACCESS_TOKEN=shpat_your_access_token
# MYSHOPIFY_DOMAIN=your-store.myshopify.com

Option 2: Command Line Arguments

# OAuth Mode
npx shopify-mcp-complete \
  --clientId=your_client_id \
  --clientSecret=shpss_your_client_secret \
  --domain=your-store.myshopify.com

# Legacy Mode
npx shopify-mcp-complete \
  --accessToken=shpat_your_access_token \
  --domain=your-store.myshopify.com

Option 3: Claude Desktop Configuration

Add to your Claude Desktop config:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "shopify": {
      "command": "npx",
      "args": ["shopify-mcp-complete"],
      "env": {
        "SHOPIFY_CLIENT_ID": "your_client_id",
        "SHOPIFY_CLIENT_SECRET": "shpss_your_client_secret",
        "MYSHOPIFY_DOMAIN": "your-store.myshopify.com"
      }
    }
  }
}

Required Shopify Scopes

Configure your app in the Shopify Partners Dashboard with these scopes.

Quick Copy-Paste (All Scopes)

read_products,write_products,read_orders,write_orders,read_customers,write_customers,read_inventory,write_inventory,read_reports,read_discounts,write_discounts,read_price_rules,write_price_rules,read_fulfillments,write_fulfillments,read_draft_orders,write_draft_orders,read_locations,read_themes,write_themes

Scopes by Feature

Feature

Scopes Required

Products

read_products, write_products

Orders

read_orders, write_orders

Customers

read_customers, write_customers

Inventory

read_inventory, write_inventory

Analytics/ShopifyQL

read_reports

Discounts

read_discounts, write_discounts, read_price_rules, write_price_rules

Fulfillment

read_fulfillments, write_fulfillments

Draft Orders

read_draft_orders, write_draft_orders

Locations

read_locations

Themes

read_themes, write_themes

Minimum Scopes (Read-Only)

If you only need read access:

read_products,read_orders,read_customers,read_inventory,read_reports,read_discounts,read_price_rules,read_fulfillments,read_draft_orders,read_locations,read_themes

Important:

  • The read_reports scope is required for ShopifyQL-based analytics tools (sales-report, shopifyql-query, product-performance). Without it, these tools will return access denied errors.

  • The write_themes scope requires an exemption from Shopify for production apps. Request exemption here.

Tool Reference

Products

Tool

Description

get-products

List products with search/filter

get-product-by-id

Get detailed product info

create-product

Create new product

update-product

Update product attributes

delete-product

Delete product

manage-variants

Create/update/delete variants

manage-images

Add/remove product images

manage-metafields

Set/delete metafields

Orders

Tool

Description

get-orders

List orders with filters

get-order-by-id

Get detailed order info

update-order

Update order note, tags, etc.

cancel-order

Cancel an order

create-draft-order

Create draft order

complete-draft-order

Convert draft to order

fulfill-order

Create fulfillment

Customers

Tool

Description

get-customers

List customers

get-customer-by-id

Get customer details

create-customer

Create new customer

update-customer

Update customer

delete-customer

Delete customer

get-customer-orders

Get customer's orders

Inventory

Tool

Description

get-inventory-levels

Get stock levels

adjust-inventory

Adjust quantity (delta)

set-inventory

Set to specific quantity

bulk-adjust-inventory

Adjust multiple items

get-locations

List locations

transfer-inventory

Move between locations

Analytics

Tool

Description

shopifyql-query

Execute custom ShopifyQL

sales-report

Sales analytics by period

customer-segments

Customer insights

product-performance

Top products by sales

Discounts

Tool

Description

create-discount

Create discount code

get-discounts

List discounts

update-discount

Update discount

delete-discount

Delete discount

Collections

Tool

Description

get-collections

List collections

get-collection-products

Products in collection

manage-collection

Create/update collection

Themes

Tool

Description

get-themes

List all themes (published, drafts, dev)

get-theme-files

Read theme files (templates, sections, assets)

update-theme-files

Create or update theme files

delete-theme-files

Delete theme files

Shop

Tool

Description

get-shop-info

Store configuration

get-shop-locations

Fulfillment locations

Usage Examples

Once connected to Claude, you can use natural language to interact with your Shopify store:

  • "List all my active products" - Uses get-products tool

  • "Show me products with low inventory" - Uses get-inventory-levels tool

  • "What are my sales for the last 30 days?" - Uses sales-report tool

  • "Add 50 units to product X inventory" - Uses adjust-inventory tool

  • "Create a 20% discount code SUMMER20" - Uses create-discount tool

Development

# Install dependencies
npm install

# Development mode with hot reload
npm run dev

# Build
npm run build

# Run tests
npm test

# Type check
npm run typecheck

License

MIT

Contributing

Contributions are welcome! Please open an issue or pull request.

Available Tools

45 tools
adjust-inventoryB

Adjust inventory quantity for a specific variant at a location. Use positive delta to add stock, negative to remove. This is for incremental changes.

Inputs: delta (required), locationId (required), inventoryItemId (required), reason, +1 more.

bulk-adjust-inventoryC

Adjust inventory quantities for multiple items at once. Efficient for batch updates.

Inputs: adjustments (required), reason.

cancel-orderC

Cancel an order with optional reason, customer notification, refund, and restock options.

Inputs: orderId (required), reason, refund, restock, +1 more.

complete-draft-orderB

Convert a draft order into a real order. Can mark payment as pending or immediately paid.

Inputs: draftOrderId (required), paymentPending.

create-customerC

Create a new customer with email, phone, name, addresses, and optional marketing consent.

Inputs: note, tags, email, phone, +6 more.

create-discountB

Create a new discount code with specified value (percentage or fixed amount), usage limits, date range, and product applicability.

Inputs: code (required), title (required), value (required), valueType (required), +6 more.

create-draft-orderB

Create a draft order with line items, customer, shipping address, and optional discount. Draft orders can be converted to real orders.

Inputs: lineItems (required), note, tags, email, +5 more.

create-productC

Create a new product with optional variants, metafields, and initial configuration.

Inputs: title (required), tags, status, vendor, +4 more.

customer-segmentsB

Get customer analytics showing top customers by total spent, order count, and engagement. Useful for identifying VIP customers.

Inputs: limit.

delete-customerA

Permanently delete a customer from the store. This cannot be undone.

Inputs: customerId (required).

delete-discountB

Delete a discount code. This cannot be undone.

Inputs: discountId (required).

delete-productA

Permanently delete a product from the store. This cannot be undone.

Inputs: productId (required).

delete-theme-filesA

Delete theme files. Supports up to 50 files per request. Note: Requires write_themes scope and Shopify exemption for production apps.

Inputs: files (required), themeId (required).

fulfill-orderB

Create a fulfillment for an order with optional tracking information. Can fulfill specific line items or the entire order.

Inputs: orderId (required), locationId, lineItemIds, trackingInfo, +1 more.

get-collection-productsB

Get all products in a specific collection with pagination. Returns product details including pricing and inventory.

Inputs: collectionId (required), limit, cursor.

get-collectionsB

List collections from the store with optional search and type filter (SMART or MANUAL). Returns collection details and product counts.

Inputs: type, limit, query, cursor.

get-customer-by-idB

Get detailed information about a specific customer including addresses, marketing consent, and metafields.

Inputs: customerId (required).

get-customer-ordersB

Get order history for a specific customer with pagination support.

Inputs: customerId (required), limit, cursor.

get-customersC

List customers from the store with optional search query. Returns customer details including order count and total spent.

Inputs: limit, query, cursor.

get-discountsB

List discount codes with optional search and status filter. Returns discount details including codes, values, and usage counts.

Inputs: limit, query, cursor, status.

get-inventory-levelsC

Get inventory levels for products/variants across locations. Can filter by location, product, SKU, or low stock threshold.

Inputs: sku, limit, cursor, lowStock, +3 more.

get-locationsB

Get all inventory locations for the store including address, active status, and fulfillment capabilities.

Inputs: includeInactive.

get-order-by-idA

Get detailed information about a specific order including line items, customer, addresses, fulfillments, and transactions.

Inputs: orderId (required).

get-ordersC

List orders from the store with filters for status, financial status, fulfillment status, and date range.

Inputs: limit, query, cursor, status, +4 more.

get-product-by-idB

Get detailed information about a specific product by ID, including all variants, images, metafields, and inventory.

Inputs: productId (required).

get-productsA

List products from the store with optional search and filters. Returns product details including variants, pricing, and inventory.

Inputs: limit, cursor, status, vendor, +2 more.

get-shop-infoA

Get general information about the Shopify store including name, domain, plan, currency, timezone, and contact details.

Inputs: no named parameters.

get-shop-locationsB

Get all fulfillment and inventory locations for the store including address and capabilities.

Inputs: includeInactive.

get-theme-filesB

Read theme files (templates, sections, assets, config). Returns file content for liquid and JSON files. Use wildcards like 'templates/.json' or 'sections/.liquid' to filter files.

Inputs: themeId (required), limit, filenames.

get-themesA

List all themes in the store. Returns theme ID, name, role (MAIN=published, UNPUBLISHED=draft), and status. Use this to find theme IDs for other operations.

Inputs: roles.

manage-collectionC

Create a new collection or update an existing one. Can create manual collections with specific products or smart collections with rules.

Inputs: no named parameters.

manage-imagesB

Add or remove images from a product. Provide image URLs to add or image IDs to remove.

Inputs: productId (required), imagesToAdd, imagesToDelete.

manage-metafieldsC

Set or delete metafields on any resource (product, variant, customer, order, etc.). Use this to manage custom data.

Inputs: ownerId (required), metafieldsToSet, metafieldIdsToDelete.

manage-variantsC

Create, update, or delete product variants. Can bulk create new variants, update existing ones, or remove variants.

Inputs: productId (required), variantsToCreate, variantsToDelete, variantsToUpdate.

product-performanceC

Get product performance analytics showing top selling products by revenue or quantity. Useful for inventory planning and marketing decisions.

Inputs: limit, period, sortBy.

sales-reportB

Get a sales report for a specified time period. Can group by day, week, month, product, vendor, or channel. Returns total sales, net sales, and order counts.

Inputs: period, groupBy.

set-inventoryA

Set inventory to a specific quantity at a location. This replaces the current quantity rather than adjusting it.

Inputs: quantity (required), locationId (required), inventoryItemId (required), reason.

shopifyql-queryB

Execute a raw ShopifyQL query for custom analytics. Returns tabular data with columns and rows. Use this for custom reports not covered by other analytics tools.

Inputs: query (required).

transfer-inventoryC

Transfer inventory from one location to another. Moves specified quantity between locations.

Inputs: quantity (required), toLocationId (required), fromLocationId (required), inventoryItemId (required).

update-customerC

Update an existing customer's email, phone, name, note, tags, or tax exempt status.

Inputs: customerId (required), note, tags, email, +5 more.

update-discountC

Update an existing discount code's title, code, value, dates, or usage limit.

Inputs: discountId (required), code, title, value, +4 more.

update-inventory-itemB

Update inventory item properties including HS tariff code, country of origin, and shipping requirements. Use this to set customs information for international shipping.

Inputs: inventoryItemId (required), tracked, requiresShipping, countryCodeOfOrigin, +2 more.

update-orderC

Update an order's note, tags, email, shipping address, metafields, or custom attributes.

Inputs: orderId (required), note, tags, email, +3 more.

update-productC

Update an existing product's title, description, vendor, type, tags, or status.

Inputs: productId (required), tags, title, status, +3 more.

update-theme-filesB

Create or update theme files (templates, sections, snippets, config, assets). Supports up to 50 files per request. Note: Requires write_themes scope and Shopify exemption for production apps.

Inputs: files (required), themeId (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 45 tools

    Disambiguation4/5

    Most tools target distinct resources and actions, and inventory variants (adjust vs set vs bulk-adjust vs transfer) are well-differentiated by description. The main overlap is get-locations vs get-shop-locations, which appear to return essentially the same location data, creating a real selection ambiguity.

    Naming Consistency3/5

    Core CRUD tools follow a clean verb_noun pattern (get/create/update/delete-product), but the set mixes conventions: aggregate 'manage-*' tools (manage-collection, manage-variants, manage-metafields) and bare noun tools with no verb (sales-report, customer-segments, product-performance, shopifyql-query). It's readable but not systematic.

    Tool Count3/5

    45 tools is heavy for a single server, well above the typical comfortable range. The broad e-commerce domain (products, orders, customers, inventory, discounts, collections, themes, analytics) does justify many tools, but the surface could reasonably be split into sub-domains.

    Completeness4/5

    Coverage is strong across all major domains: full product/customer/discount CRUD, order lifecycle (draft, complete, fulfill, cancel), comprehensive inventory management, and theme file operations. Gaps remain around standalone refund/transaction management and fulfillment tracking updates, which agents would need to work around.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers