Shopify管理API服务器

Shopify管理API操作的MCP服务器,支持产品、集合、博客、主题、菜单和折扣管理。

  • by hdmt
  • TypeScript
  • 本地部署
  • 1 星标
  • 更新于
在 GitHub 查看 hdmt/shopify-admin-mcp

使用说明

Shopify管理员MCP

Shopify Admin API操作的MCP服务器

日语版在这里

设置

npm install

环境变量

SHOPIFY_SHOP_DOMAIN=your-store.myshopify.com
SHOPIFY_ACCESS_TOKEN=shpat_xxxxx

Claude桌面配置

{
  "mcpServers": {
    "shopify-admin": {
      "command": "node",
      "args": ["--experimental-strip-types", "/path/to/shopify-admin-mcp/src/index.ts"],
      "env": {
        "SHOPIFY_SHOP_DOMAIN": "your-store.myshopify.com",
        "SHOPIFY_ACCESS_TOKEN": "shpat_xxxxx"
      }
    }
  }
}

可用工具

系统

工具 说明
test_connection 测试API连接

产品

工具 说明
search_products 搜索产品(按标题、供应商等)
get_product 获取产品详细信息(按ID或句柄)
create_product 创建具有可选变体的新产品
update_product 更新产品信息(标题、描述、状态、搜索引擎优化等)
upload_product_image 从公共URL向产品添加图像
get_monthly_ranking 获取月度销售排名

集合

工具 说明
get_collections 搜索和列出收藏
get_collection 获取收藏详细信息
create_collection 创建收藏
add_products_to_collection 添加产品并设置排序顺序
duplicate_collection 复制集合

博客

工具 说明
get_blogs 获取博客列表
get_articles 获取文章列表
create_article 创建一篇文章
update_article 更新文章

主题

工具 说明
get_themes 获取主题列表
get_theme_asset 获取主题文件
update_theme_asset 创建或更新主题文件

菜单

工具 说明
get_menus 获取包含项目的导航菜单
update_menu 更新导航菜单

折扣

工具 说明
get_discounts 列出所有折扣(代码+自动)
get_discount 按ID获取单个折扣详细信息
create_discount_code_basic 创建代码折扣(金额/%折扣)
update_discount_code_basic 更新基本代码折扣
create_discount_automatic_basic 创建自动应用的基本折扣
update_discount_automatic_basic 更新自动应用的基本折扣
create_discount_code_bxgy 创建BXGY(买X得到Y)代码折扣
update_discount_code_bxgy 更新BXGY代码折扣
create_discount_automatic_bxgy 创建自动应用的BXGY折扣
update_discount_automatic_bxgy 更新自动应用的BXGY折扣
create_discount_code_free_shipping 创建免费送货代码折扣
update_discount_code_free_shipping 更新免费送货代码折扣
create_discount_automatic_free_shipping 创建自动应用的免费运费折扣
update_discount_automatic_free_shipping 更新自动应用的免费运费折扣
activate_discount 激活(启用)折扣
deactivate_discount 取消(禁用)折扣

要求的API范围

  • read_orders
  • read_products, write_products
  • read_content, write_content
  • read_themes, write_themes
  • read_online_store_navigation, write_online_store_navigation
  • read_discounts, write_discounts