Skip to main content
Glama
Shopify Admin MCP Server

Shopify Admin MCP Server

Shopify Admin MCP Server

An MCP (Model Context Protocol) server that provides read-only access to the Shopify Admin GraphQL API.

Features

  • Read-only access to Shopify Admin data

  • 35 core tools for products, orders, customers, marketing, discounts, collections, inventory, and shop info

  • 12 ShopifyQL analytics tools (optional, requires Level 2 access) for sales, conversions, campaigns, and more

Related MCP server: Shopify MCP

Quick Start

1. Create a Shopify Custom App

  1. In your Shopify admin, go to Settings → Apps and sales channels → Develop apps

  2. Click Allow custom app development (if not already enabled)

  3. Click Create an app and name it (e.g., "Claude MCP")

  4. Click Configure Admin API scopes and enable:

    • read_products

    • read_orders

    • read_customers

    • read_marketing_events

    • read_discounts

    • read_inventory

    • read_locations

    • read_locales

    • read_analytics

    • read_reports

  5. Click Save, then click Install app

  6. In the API credentials tab, copy the API key and API secret key

ShopifyQL & Analytics Requirements

The ShopifyQL-powered analytics tools (run_shopifyql, get_sales_over_time, get_top_customers, etc.) require additional access beyond API scopes:

  1. read_reports scope - Already included in the scopes above

  2. Level 2 Protected Customer Data Access - Required for ALL ShopifyQL queries, even those not accessing customer data

To enable Level 2 access:

  1. Go to the Shopify Partner Dashboard

  2. Navigate to Apps → Your App → API access

  3. Under Protected customer data, request Level 2 access

  4. Complete the required security attestations

  5. Wait for Shopify approval (may take a few days)

By default, ShopifyQL tools are disabled to prevent errors for users without Level 2 access. Once approved, enable them by adding the environment variable:

{
  "mcpServers": {
    "shopify-admin": {
      "command": "npx",
      "args": ["-y", "shopify-admin-mcp"],
      "env": {
        "SHOPIFY_CREDENTIALS_PATH": "/path/to/credentials.json",
        "SHOPIFY_SHOPIFYQL_ENABLED": "true"
      }
    }
  }
}

Note: Non-ShopifyQL tools (products, orders, customers, etc.) work without Level 2 access.

2. Create Credentials File

Create a JSON file with your Shopify credentials (e.g., ~/.shopify-credentials.json):

{
  "shop": "your-store.myshopify.com",
  "clientId": "your-api-key",
  "clientSecret": "your-api-secret-key"
}

3. Configure Your MCP Client

Claude Code

Add to ~/.claude/settings.json:

{
  "mcpServers": {
    "shopify-admin": {
      "command": "npx",
      "args": ["-y", "shopify-admin-mcp"],
      "env": {
        "SHOPIFY_CREDENTIALS_PATH": "/path/to/your/shopify-credentials.json"
      }
    }
  }
}

Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "shopify-admin": {
      "command": "npx",
      "args": ["-y", "shopify-admin-mcp"],
      "env": {
        "SHOPIFY_CREDENTIALS_PATH": "/path/to/your/shopify-credentials.json"
      }
    }
  }
}

4. Restart and Test

Restart Claude Code/Desktop, then try asking:

  • "Get my shop info"

  • "Show me sales for the last 7 days"

  • "List my top 10 products"

Available Tools

Product Tools

Tool

Description

get_products

List products with filtering/pagination

get_product

Get single product by ID

get_product_variants

List product variants

get_product_tags

Get all product tags

get_product_types

Get all product types

get_product_vendors

Get all product vendors

get_products_count

Count products

Order Tools

Tool

Description

get_orders

List orders with filtering/pagination

get_order

Get single order by ID

get_orders_count

Count orders

get_abandoned_checkouts

List abandoned checkouts

get_abandoned_checkouts_count

Count abandoned checkouts

Customer & Segment Tools

Tool

Description

get_customers

List customers with filtering

get_customer

Get single customer by ID

get_customers_count

Count customers

get_segments

List customer segments

get_segment

Get single segment by ID

get_segment_members

Get customers in a segment

Marketing Tools

Tool

Description

get_marketing_activities

List marketing activities

get_marketing_activity

Get single marketing activity

get_marketing_events

List marketing events

get_marketing_event

Get single marketing event

Discount Tools

Tool

Description

get_discounts

List all discounts

get_discount

Get single discount by ID

get_code_discounts

List code-based discounts

get_automatic_discounts

List automatic discounts

Collection Tools

Tool

Description

get_collections

List collections

get_collection

Get single collection by ID

get_collections_count

Count collections

Inventory & Location Tools

Tool

Description

get_inventory_items

List inventory items

get_inventory_item

Get single inventory item

get_locations

List locations

get_location

Get single location

Shop Tools

Tool

Description

get_shop

Get shop information

get_shop_locales

Get shop locales

run_shopifyql

Run custom ShopifyQL query

Analytics Tools

Tool

Description

get_sales_over_time

Sales trends by day/week/month

get_sales_by_product

Top selling products

get_sales_by_region

Sales breakdown by country

get_sales_by_traffic_source

Sales by referrer/source

get_sessions_over_time

Traffic/session trends

get_conversion_rate

Session to order conversion rate

get_average_order_value

AOV trends over time

get_top_customers

Highest spending customers

get_conversions_by_channel

Conversion rates by channel

get_campaign_performance

Campaign performance metrics

get_campaign_performance_over_time

Campaign trends over time

Example Usage

"Show me daily sales for the last 30 days"

Analyze top products

"What are my top 10 best-selling products this month?"

Check campaign performance

"How are my marketing campaigns performing?"

Run custom analytics

"Run this ShopifyQL query: FROM sales SHOW total_sales, orders GROUP BY product_title SINCE -7d ORDER BY total_sales DESC LIMIT 5"

Development

Local Setup

git clone https://github.com/MAYUNO-International-LLC/shopify-admin-mcp.git
cd shopify-admin-mcp
npm install
npm run build

Local MCP Configuration

For local development, point to the built files:

{
  "mcpServers": {
    "shopify-admin": {
      "command": "node",
      "args": ["/path/to/shopify-admin-mcp/dist/index.js"],
      "env": {
        "SHOPIFY_CREDENTIALS_PATH": "/path/to/credentials.json"
      }
    }
  }
}

License

MIT

Available Tools

35 tools
get_abandoned_checkoutsB

List abandoned checkouts with optional filtering. Returns checkout details including items, customer, and recovery URL.

Inputs: after, first, query.

get_abandoned_checkouts_countC

Count the total number of abandoned checkouts.

Inputs: query.

get_automatic_discountsB

List only automatic discounts (applied automatically without a code).

Inputs: after, first, query.

get_code_discountsA

List only code-based discounts (requires customer to enter a code at checkout).

Inputs: after, first, query.

get_collectionA

Get detailed information about a single collection, including rules, SEO settings, and products.

Inputs: id (required).

get_collectionsB

List collections with optional filtering and pagination. Returns collection details including title, handle, product count, and image.

Inputs: after, first, query.

get_collections_countA

Count the total number of collections, optionally filtered by a query.

Inputs: query.

get_customerA

Get detailed information about a single customer by their ID, including addresses and recent orders.

Inputs: id (required).

get_customersB

List customers with optional filtering and pagination. Returns customer details including email, orders count, amount spent, and address.

Inputs: after, first, query.

get_customers_countA

Count the total number of customers, optionally filtered by a query.

Inputs: query.

get_discountA

Get detailed information about a single discount, including codes, value, minimum requirements, and usage.

Inputs: id (required).

get_discountsB

List all discounts (both code and automatic) with optional filtering. Returns discount details including title, status, type, usage, and value.

Inputs: after, first, query.

get_inventory_itemA

Get detailed information about a single inventory item, including levels at all locations and cost.

Inputs: id (required).

get_inventory_itemsB

List inventory items with optional filtering. Returns inventory details including SKU, levels at each location, and associated variant.

Inputs: after, first, query.

get_locationA

Get detailed information about a single location, including inventory levels for all items.

Inputs: id (required).

get_locationsC

List all inventory locations. Returns location details including name, address, and fulfillment settings.

Inputs: after, first.

get_marketing_activitiesB

List marketing activities with pagination. Returns activity details including title, type, status, budget, and channel.

Inputs: after, first.

get_marketing_activityB

Get detailed information about a single marketing activity, including UTM parameters and budget.

Inputs: id (required).

get_marketing_eventC

Get detailed information about a single marketing event, including UTM parameters.

Inputs: id (required).

get_marketing_eventsB

List marketing events with optional filtering. Returns event details including type, channel, timing, and URLs.

Inputs: after, first, query.

get_orderA

Get detailed information about a single order by its ID, including all line items, addresses, fulfillments, and discounts.

Inputs: id (required).

get_ordersB

List orders with optional filtering and pagination. Returns order details including status, totals, line items, customer info, and shipping address.

Inputs: after, first, query.

get_orders_countA

Count the total number of orders, optionally filtered by a query.

Inputs: query.

get_productA

Get detailed information about a single product by its ID, including all variants, options, images, and SEO settings.

Inputs: id (required).

get_productsB

List products with optional filtering and pagination. Returns product details including title, status, vendor, type, tags, inventory, pricing, and images.

Inputs: after, first, query.

get_products_countA

Count the total number of products, optionally filtered by a query.

Inputs: query.

get_product_tagsC

Get all product tags used in the store.

Inputs: after, first.

get_product_typesC

Get all product types used in the store.

Inputs: after, first.

get_product_variantsC

List all variants for a specific product, including pricing, inventory, SKU, and option values.

Inputs: productId (required), after, first.

get_product_vendorsC

Get all product vendors in the store.

Inputs: after, first.

get_segmentA

Get details about a specific customer segment, including its query definition.

Inputs: id (required).

get_segment_membersC

Get the customers who belong to a specific segment.

Inputs: segmentId (required), after, first.

get_segmentsC

List all customer segments defined in the store.

Inputs: after, first.

get_shopA

Get information about the shop including name, domain, plan, currency, timezone, and billing address.

Inputs: no named parameters.

get_shop_localesA

Get all locales configured for the shop, including primary and published languages.

Inputs: no named parameters.

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 35 tools

    Disambiguation4/5

    Most tools are clearly separated by resource and action, such as products, orders, customers, and inventory. A few families are easy to confuse, especially get_discounts versus get_code_discounts/get_automatic_discounts, and the many list/get/count pairs require attention to the singular/plural naming.

    Naming Consistency5/5

    Every tool follows a predictable get_<resource> or get_<resources> snake_case pattern. The singular/plural distinction consistently indicates detail versus list operations, and count variants are named consistently.

    Tool Count2/5

    The server has 35 tools, which is heavy for a read-only Shopify Admin surface. Several tools are narrow count or subtype variants, suggesting the surface could be consolidated with filtering instead of exposing many near-duplicate endpoints.

    Completeness2/5

    The tool set is entirely read-only: it can list and retrieve products, orders, customers, discounts, collections, and inventory, but has no create, update, delete, fulfillment, or inventory-adjustment operations. For a Shopify Admin server, those are significant gaps that will block common administrative workflows.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      A read-only MCP server that exposes the full Shopify Admin GraphQL API through 6 universal tools, with multi-store support and mutation rejection at the parser level for safety.
      6
      25 PyPI
      1
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables safe, read-only analysis of an online store's SQLite database, providing schema introspection, restricted SELECT queries, and specialized analytics tools through MCP.
      -
    • A
      license
      B
      quality
      B
      maintenance
      Enables read-only access to Google Marketing Platform data across GMP Admin, Display & Video 360, Campaign Manager 360, and Search Ads 360 through OAuth-authenticated MCP tools for discovering accounts, campaigns, reports, and performance metrics.
      33
      MIT