Shopify Python MCP 服务器
这是一个与 Shopify API 配合使用的 MCP 服务器。使用此服务器,您可以从 Claude Desktop 检索和操作 Shopify 产品信息。
功能
工具
该服务器提供以下工具:
- list_products :获取产品列表
limit
:要检索的项目数(最多 250 个,默认值为 50 个)
- get_product :获取详细的产品信息
product_id
:产品 ID(必填)
- create_product :创建新产品
title
:产品名称(必填)body_html
:产品描述(HTML格式)vendor
:供应商名称product_type
:产品类型tags
:标签(逗号分隔)status
:状态(活动/草稿/存档)variants
options
:选项images
:图片
- update_product :更新产品
product_id
:产品 ID(必填)title
:产品名称body_html
:产品描述(HTML格式)vendor
:供应商名称product_type
:产品类型tags
:标签(逗号分隔)status
:状态(活动/草稿/存档)variants
options
:选项images
:图片
- delete_product :删除产品
product_id
:产品 ID(必填)
环境
必需的环境变量
要使用此服务器,您必须设置以下环境变量:
SHOPIFY_SHOP_URL
:您的 Shopify 商店网址(例如 mystore.myshopify.com)SHOPIFY_API_KEY
:Shopify 管理员 API 密钥SHOPIFY_API_PASSWORD
:Shopify 管理员 API 密码(秘密)SHOPIFY_API_VERSION
:Shopify API 版本(默认值:2023-10)
Claude 桌面设置
如果您使用的是 Claude Desktop,请将以下设置添加到 claude_desktop_config.json:
macOS
配置文件位置: ~/Library/Application Support/Claude/claude_desktop_config.json
如何使用
要将此服务器与 Claude Desktop 一起使用,请按如下方式调用该工具:
获取产品列表
获取详细的产品信息
创建新产品
产品更新
删除产品
发展
安装依赖项
调试
您可以使用 MCP Inspector 进行调试:
构建并发布
准备分发包:
- 同步依赖项并更新锁文件:
- 构建包:
- 发布到 PyPI:
注意:您需要通过环境变量或命令标志设置您的 PyPI 凭据:
- 令牌:
--token
或UV_PUBLISH_TOKEN
- 或用户名/密码:
--username
/UV_PUBLISH_USERNAME
和--password
/UV_PUBLISH_PASSWORD
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 API 集成,允许 Claude Desktop 用户从 Shopify 商店检索和操作产品信息。
Related Resources
Related MCP Servers
- -securityAlicense-qualityThis MCP server connects clients with Shopify store data, enabling retrieval of product and customer information via exposed tools.Last updated -4PythonMIT License
- AsecurityAlicenseAqualityAn MCP server implementation that integrates Claude with Salesforce, enabling natural language interactions with Salesforce data and metadata for querying, modifying, and managing objects and records.Last updated -718045TypeScriptMIT License
- AsecurityAlicenseAqualityAn MCP server implementation that integrates Claude with Salesforce, enabling natural language interactions with Salesforce data and metadata for querying, modifying, and managing objects and records.Last updated -738312TypeScriptMIT License
- AsecurityAlicenseAqualityAn MCP server that enables MySQL database integration with Claude. You can execute SQL queries and manage database connections.Last updated -27PythonMIT License