Skip to main content
Glama

Shopify MCP 服务器

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

工具

  • get-product-list :从您的 Shopify 商店检索产品列表

  • get-customer-list :从您的 Shopify 商店检索客户列表

  • 更多内容即将推出

Related MCP server: Clind MCP Server

先决条件

  • 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. 打开拉取请求

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    Not graded
    maintenance
    A Shopify-focused MCP server that enables AI agents to manage store operations like order tracking, product discovery, and checkout link generation. It facilitates customer-facing interactions including shipping estimates and real-time inventory searches.
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    A comprehensive MCP server for Shopify Admin API integration, enabling AI assistants to manage products, orders, customers, inventory, analytics, and more through natural language.
    20 npm
    19
    MIT