Skip to main content
Glama

Shopify MCP Server

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

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.

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

  1. 工具
    1. 先决条件
      1. 安装
        1. 配置
          1. 用法
            1. 获取产品列表
            2. 获取客户列表
          2. 工具响应格式
            1. 产品
            2. 顾客
          3. 发展
            1. 安全
              1. 执照
                1. 贡献

                  Related MCP Servers

                  • -
                    security
                    A
                    license
                    -
                    quality
                    This MCP server integrates with Google Drive to allow listing, reading, and searching over files.
                    Last updated -
                    1,971
                    51,505
                    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
                    F
                    license
                    -
                    quality
                    An MCP server that provides comprehensive market intelligence by analyzing data from both the Apple App Store and Google Play Store, enabling users to research apps, track market trends, study competitors, and understand user feedback across mobile marketplaces.
                    Last updated -
                    102
                    5
                    JavaScript
                  • -
                    security
                    F
                    license
                    -
                    quality
                    An MCP server that enables interaction with Datagouv APIs, primarily allowing users to search for up-to-date information about companies registered in France.
                    Last updated -
                    6
                    TypeScript

                  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/siddhantbajaj/shopify-mcp-server'

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