MCP Hub
Back to servers

Shopify Store MCP Server

Enables AI agents to interact with live Shopify stores through Admin and Storefront APIs for tasks like GraphQL execution, bulk operations, and file uploads. It includes built-in rate limiting and operation logging to manage store data and schema discovery securely.

Stars
2
Updated
Feb 12, 2026
Validated
Feb 26, 2026

Shopify Store MCP Server

npm version npm downloads License: ISC Node.js TypeScript

A Model Context Protocol (MCP) server that connects to live Shopify stores via the Admin and Storefront APIs. Unlike documentation-only MCPs, this server enables AI agents to perform real operations on your store.

Features

  • Universal GraphQL Access - Execute any Admin API query or mutation via run_graphql_query
  • Smart Multi-Step Tools - File uploads, bulk operations, metaobject upserts with automatic polling
  • Rate Limiting - Respects Shopify's plan-based rate limits (Standard/Advanced/Plus/Enterprise)
  • Operation Logging - SQLite database tracks all operations for debugging and history
  • Schema Discovery - Explore your store's metafield definitions and metaobject types

Setup

Prerequisites

  1. A Shopify store with a custom app
  2. Admin API access token with required scopes
  3. Node.js 18+

Installation

npm install -g shopify-store-mcp

Or run directly with npx:

npx shopify-store-mcp

Usage with Claude Desktop or Cursor

Add the following to your MCP configuration:

{
  "mcpServers": {
    "shopify-store": {
      "command": "npx",
      "args": ["-y", "shopify-store-mcp"],
      "env": {
        "SHOPIFY_STORE_URL": "your-store.myshopify.com",
        "SHOPIFY_ACCESS_TOKEN": "shpat_xxxxxxxxxxxxxxxxxxxxx"
      }
    }
  }
}

On Windows, use this configuration:

{
  "mcpServers": {
    "shopify-store": {
      "command": "cmd",
      "args": ["/k", "npx", "-y", "shopify-store-mcp"],
      "env": {
        "SHOPIFY_STORE_URL": "your-store.myshopify.com",
        "SHOPIFY_ACCESS_TOKEN": "shpat_xxxxxxxxxxxxxxxxxxxxx"
      }
    }
  }
}

Environment Variables

VariableRequiredDefaultDescription
SHOPIFY_STORE_URLYes-Store's myshopify.com domain
SHOPIFY_ACCESS_TOKENYes-Admin API access token
SHOPIFY_STOREFRONT_ACCESS_TOKENNo-Storefront API token
SHOPIFY_API_VERSIONNo2025-01API version
SHOPIFY_TIERNoSTANDARDRate limit tier

Available Tools

Core Tools

ToolDescription
get_shop_infoRetrieve store configuration and settings
run_graphql_queryExecute any GraphQL query or mutation

Smart Tools

ToolDescription
upload_fileUpload file from URL, poll until ready, return CDN URL
bulk_exportStart bulk query, poll completion, return JSONL download URL
bulk_importStaged upload + bulk mutation with automatic polling
upsert_metaobjectCreate or update metaobject by handle (idempotent)
schema_discoverDiscover metafield definitions and metaobject types

Infrastructure Tools

ToolDescription
configureSet rate limit tier (manual or auto-detect from shop plan)
get_historyQuery past operations for debugging
get_statsAggregated usage statistics

Rate Limiting

The server respects Shopify's rate limits based on your shop plan:

TierRequests/secPlans
STANDARD1Basic, Development, Lite
ADVANCED2Advanced
PLUS5Shopify Plus
ENTERPRISE10Commerce Components

Use the configure tool to set your tier manually or auto-detect from your shop plan.

Available Prompts

PromptDescription
analyze-productProduct analysis template
summarize-ordersOrder summary by timeframe
inventory-healthInventory health check
customer-insightsCustomer segment analysis
custom-queryHelp building custom GraphQL queries

Available Resources

ResourceDescription
shopify://configCurrent store connection info
shopify://docs/query-syntaxQuery syntax reference
shopify://docs/gid-formatGID format reference
shopify://docs/scopesAPI scopes reference

Development

# Install dependencies
npm install

# Build
npm run build

# Run with inspector
npm run inspect

# Watch mode
npm run dev

Database

The server uses SQLite for operation logging and configuration. The database is automatically created at ~/.shopify-mcp/mcp.db.

# View database
npm run db:studio

Security

  • Never commit your .env file or access tokens
  • Use environment variables or MCP config for credentials
  • Access tokens should have minimal required scopes
  • The server logs operations locally for debugging (disable with MCP_LOG_OPERATIONS=false)

License

ISC

Reviews

No reviews yet

Sign in to write a review