Skip to main content
Glama

Shopify MCP Server

🚀 概述

Shopify MCP 服务器通过模型上下文协议 (MCP) 为您的应用程序与 Shopify 生态系统之间搭建了一座强大的桥梁。只需简单调用 Shopify 的 Admin API,即可轻松管理产品、客户、订单等。

📋 目录

📥 安装

选择您喜欢的安装方法:

方法指示
锻造工艺
Glama.ai
新公共管理npm install shopify-mcp-server

✨ 特点

  • 🛍️ 全面的产品管理——搜索、检索和管理产品数据
  • 👥 客户数据访问- 获取客户信息并管理标签
  • 📦高级订单处理——轻松过滤、排序和管理订单
  • ⚡ 直接 GraphQL 集成- 直接连接到 Shopify 的管理 API
  • 🛡️ 强大的错误处理- 清晰的故障排除反馈

🧰 可用工具

产品管理

工具描述关键参数
get-products按标题查找产品searchTitlelimit
get-products-by-collection获取收藏产品collectionIdlimit
get-products-by-ids检索特定产品productIds
get-variants-by-ids获取变体详细信息variantIds

客户管理

工具描述关键参数
get-customers检索客户数据limitnext
tag-customer为客户添加标签customerIdtags

订单管理

工具描述关键参数
get-orders过滤和排序firstafterquerysortKey
get-order获取单个订单详情orderId

购物和收藏工具

工具描述关键参数
get-collections检索商店收藏limitname
get-shop获取商店基本信息没有任何
get-shop-details获取详细店铺信息没有任何

折扣管理

工具描述关键参数
create-discount创建折扣代码titlecodevalueTypevalue

🏁 入门

  1. 安装包
    npm install shopify-mcp-server
  2. 设置环境变量
    SHOPIFY_ACCESS_TOKEN=your_token MYSHOPIFY_DOMAIN=your-store.myshopify.com
  3. 初始化服务器
    require('shopify-mcp-server').start();
  4. 进行第一次 API 调用
    const products = await shopifyMcpServer.tools.getProducts({ limit: 10 }); console.log(products);

💡 用例

  • 电子商务平台集成——系统间同步产品和订单
  • 自定义管理仪表板- 根据您的业务需求构建定制界面
  • 订单自动化——设置自动订单处理的工作流程
  • 多渠道销售管理——管理所有销售渠道的库存

🔧 设置指南

获取 Shopify 访问令牌

  1. 在 Shopify 管理员中,转到**“设置”** > “应用和销售渠道”
  2. 点击开发应用>创建应用
  3. 为您的应用命名(例如“Shopify MCP Server”)
  4. 配置 API 范围:
    • read_productswrite_products
    • read_customerswrite_customers
    • read_orderswrite_orders
  5. 单击**“保存安装应用程序”**
  6. 复制您的Admin API 访问令牌

**安全提示:**请妥善保管您的访问令牌。切勿将其提交到版本控制中。

与 Claude Desktop 一起使用

添加到您的claude_desktop_config.json

{ "mcpServers": { "shopify": { "command": "npx", "args": ["-y", "shopify-mcp-server"], "env": { "SHOPIFY_ACCESS_TOKEN": "<TOKEN>", "MYSHOPIFY_DOMAIN": "<SHOP>.myshopify.com" } } } }

👨‍💻开发

# Clone the repository git clone https://github.com/your-username/shopify-mcp-server.git # Install dependencies cd shopify-mcp-server npm install # Set up environment variables # Create a .env file with your Shopify credentials # Build and test npm run build npm test

🤝 社区

资源关联
GitHub 讨论加入对话
问题追踪器报告错误
叽叽喳喳@rezajafar
不和谐加入我们的服务器

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

通过 GraphQL API 实现与 Shopify 商店数据的交互,提供管理产品、客户、订单、折扣等的工具,并具有强大的错误处理功能。

  1. 📋 目录
    1. 📥 安装
      1. ✨ 特点
        1. 🧰 可用工具
          1. 产品管理
          2. 客户管理
          3. 订单管理
          4. 购物和收藏工具
          5. 折扣管理
        2. 🏁 入门
          1. 💡 用例
            1. 🔧 设置指南
              1. 获取 Shopify 访问令牌
              2. 与 Claude Desktop 一起使用
            2. 👨‍💻开发
              1. 🤝 社区

                Related MCP Servers

                • A
                  security
                  A
                  license
                  A
                  quality
                  Enables interaction with Shopify store data using the GraphQL API, supporting product, customer, and order management with comprehensive error handling.
                  Last updated -
                  15
                  76
                  7
                  TypeScript
                  MIT License
                • -
                  security
                  A
                  license
                  -
                  quality
                  This MCP server connects clients with Shopify store data, enabling retrieval of product and customer information via exposed tools.
                  Last updated -
                  2
                  Python
                  MIT License
                • A
                  security
                  A
                  license
                  A
                  quality
                  MCP server that integrates with Shopify API, allowing Claude Desktop users to retrieve and manipulate product information from Shopify stores.
                  Last updated -
                  5
                  Python
                  MIT License
                  • Apple
                • -
                  security
                  A
                  license
                  -
                  quality
                  Enables interaction with Shopify stores through GraphQL API, providing tools for managing products, customers, orders, and more.
                  Last updated -
                  76
                  6
                  TypeScript
                  MIT License

                View all related MCP servers

                MCP directory API

                We provide all the information about MCP servers via our MCP API.

                curl -X GET 'https://glama.ai/api/mcp/v1/servers/rezapex/shopify-mcp-server-main'

                If you have feedback or need assistance with the MCP directory API, please join our Discord server