Shopify Store MCP Server

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.

Category
访问服务器

README

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

Variable Required Default Description
SHOPIFY_STORE_URL Yes - Store's myshopify.com domain
SHOPIFY_ACCESS_TOKEN Yes - Admin API access token
SHOPIFY_STOREFRONT_ACCESS_TOKEN No - Storefront API token
SHOPIFY_API_VERSION No 2025-01 API version
SHOPIFY_TIER No STANDARD Rate limit tier

Available Tools

Core Tools

Tool Description
get_shop_info Retrieve store configuration and settings
run_graphql_query Execute any GraphQL query or mutation

Smart Tools

Tool Description
upload_file Upload file from URL, poll until ready, return CDN URL
bulk_export Start bulk query, poll completion, return JSONL download URL
bulk_import Staged upload + bulk mutation with automatic polling
upsert_metaobject Create or update metaobject by handle (idempotent)
schema_discover Discover metafield definitions and metaobject types

Infrastructure Tools

Tool Description
configure Set rate limit tier (manual or auto-detect from shop plan)
get_history Query past operations for debugging
get_stats Aggregated usage statistics

Rate Limiting

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

Tier Requests/sec Plans
STANDARD 1 Basic, Development, Lite
ADVANCED 2 Advanced
PLUS 5 Shopify Plus
ENTERPRISE 10 Commerce Components

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

Available Prompts

Prompt Description
analyze-product Product analysis template
summarize-orders Order summary by timeframe
inventory-health Inventory health check
customer-insights Customer segment analysis
custom-query Help building custom GraphQL queries

Available Resources

Resource Description
shopify://config Current store connection info
shopify://docs/query-syntax Query syntax reference
shopify://docs/gid-format GID format reference
shopify://docs/scopes API 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

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选