Shopify MCP Server

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.

Integrations

  • Allows retrieving product and customer information from a Shopify store, including product lists with details (title, ID, type, vendor, status, price) and customer lists with details (name, ID, email, orders count, total spent)

Shopify MCP 服务器

一个模型上下文协议 (MCP) 服务器,用于将 Claude 等客户端与 Shopify 商店数据连接起来。该服务器提供从 Shopify 商店检索产品和客户信息的工具。

工具

  • get-product-list :从您的 Shopify 商店检索产品列表
  • get-customer-list :从您的 Shopify 商店检索客户列表
  • 更多内容即将推出

先决条件

  • Python 3.12 或更高版本
  • 具有 API 访问权限的 Shopify 商店
  • Shopify API 凭据(API 密钥、密码和访问令牌)

安装

  1. 克隆存储库:
git clone https://github.com/siddhantbajaj/shopify-mcp-server.git cd shopify-mcp-server
  1. 使用uv创建并激活虚拟环境:
uv venv source .venv/bin/activate # On Unix/MacOS # or .venv\Scripts\activate # On Windows
  1. 安装软件包:
uv pip install -e .

配置

  1. 使用您的 Shopify 凭据在根目录中创建一个.env文件:
SHOPIFY_SHOP_URL="your-store.myshopify.com" SHOPIFY_API_KEY="your_api_key" SHOPIFY_PASSWORD="your_api_password" SHOPIFY_ACCESS_TOKEN="your_access_token"

将占位符值替换为您的实际 Shopify API 凭据。

用法

  1. 启动 MCP 服务器:
python -m shopify_mcp_server.server
  1. 该服务器公开了两个工具:

获取产品列表

从您的 Shopify 商店检索产品列表。

  • 可选参数: limit (默认值:10)- 返回的最大产品数量

获取客户列表

从您的 Shopify 商店检索客户列表。

  • 可选参数: limit (默认值:10)- 返回的最大客户数量

工具响应格式

产品

Products (showing X): Title: Product Name ID: 123456789 Product Type: Type Vendor: Vendor Name Status: active Price: $XX.XX ---

顾客

Customers (showing X): Name: John Doe ID: 123456789 Email: john@example.com Orders Count: X Total Spent: $XX.XX ---

发展

该项目使用:

安全

  • 永远不要将.env文件提交到版本控制
  • 确保您的 Shopify API 凭证安全
  • 使用环境变量来获取敏感信息

执照

该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅 LICENSE 文件。

贡献

  1. 分叉存储库
  2. 创建你的功能分支( git checkout -b feature/amazing-feature
  3. 提交您的更改( git commit -m 'Add some amazing feature'
  4. 推送到分支( git push origin feature/amazing-feature
  5. 打开拉取请求
-
security - not tested
A
license - permissive license
-
quality - not tested

该 MCP 服务器将客户端与 Shopify 商店数据连接起来,从而能够通过公开的工具检索产品和客户信息。

  1. Tools
    1. Prerequisites
      1. Installation
        1. Configuration
          1. Usage
            1. get-product-list
            2. get-customer-list
          2. Tool Response Format
            1. Products
            2. Customers
          3. Development
            1. Security
              1. License
                1. Contributing
                  ID: jjyo70hi83