Shopify MCP Server
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 密钥、密码和访问令牌)
安装
克隆存储库:
git clone https://github.com/siddhantbajaj/shopify-mcp-server.git
cd shopify-mcp-server使用
uv创建并激活虚拟环境:
uv venv
source .venv/bin/activate # On Unix/MacOS
# or
.venv\Scripts\activate # On Windows安装软件包:
uv pip install -e .配置
使用您的 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 凭据。
用法
启动 MCP 服务器:
python -m shopify_mcp_server.server该服务器公开了两个工具:
获取产品列表
从您的 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
---发展
该项目使用:
用于构建人工智能工具的MCP(模型上下文协议)
用于 Shopify 集成的Shopify Python API
UV用于依赖管理
安全
永远不要将
.env文件提交到版本控制确保您的 Shopify API 凭证安全
使用环境变量来获取敏感信息
执照
该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅 LICENSE 文件。
贡献
分叉存储库
创建你的功能分支(
git checkout -b feature/amazing-feature)提交您的更改(
git commit -m 'Add some amazing feature')推送到分支(
git push origin feature/amazing-feature)打开拉取请求
This server cannot be deployed
Maintenance
Related MCP Connectors
Unified MCP server for 70+ eCommerce platforms: products, orders, customers, and more.
MCP server for Product Management
Shopify MCP Pack — wraps the Shopify Admin REST API (2024-01)
Remote MCP server for product discovery catalog and retrieving product details.
Related MCP Servers
- AlicenseBqualityDmaintenanceMCP server that integrates with Shopify API, allowing Claude Desktop users to retrieve and manipulate product information from Shopify stores.51MIT
- FlicenseNot gradedqualityNot gradedmaintenanceA 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.-
- AlicenseNot gradedqualityDmaintenanceA comprehensive MCP server for Shopify Admin API integration, enabling AI assistants to manage products, orders, customers, inventory, analytics, and more through natural language.20 npm19MIT
- AlicenseNot gradedqualityBmaintenanceMCP server for the Shopify Admin API, enabling 36 tools for managing products, orders, customers, inventory, fulfillments, collections, analytics, marketing, content, and webhooks.7 npm1MIT