AB

amir-bengherbi/shopify-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

18 stars 15 forks 质量 65 趋势 22MIT

购买 API 的 MCP 服务器

概览

Shopify API的MCP服务器,通过GraphQL API允许与存储数据交互. 这个服务器为管理产品,客户,订单等提供了工具. *:搜索并检索出产品信息 *:装入客户数据并管理客户标签 *:高级订单查询和过滤 *:直接与Shopify的GraphQL Admin API整合 *:清除API和认证问题的错误信息 1. 获得产品 * 按标题获取所有产品或搜索 * 输入: * 搜索 Title(可选字符串): 按标题过滤产品 * 限制(数量): 返回产品的最大数量 * 返回:格式化产品细节,包括标题、描述、手柄和变体 2. 获得产品逐一收集 * 从特定收藏中获取产品 * 输入: * 收集 Id (字符串):从限制中获取产品 收集的ID(可选编号,默认:10):返回的最大产品数量 * 返回:从指定收藏中格式化的产品细节 3个.

概述(AI 翻译)

Shopify API的MCP服务器,通过GraphQL API允许与存储数据交互. 这个服务器为管理产品,客户,订单等提供了工具.

□ 特性

  • ** 产品管理**: 搜索和检索产品信息 ** 客户管理**: 装入客户数据并管理客户标签
  • ** 订单管理**: 高级顺序查询和过滤
  • GraphQL 整合: 直接与 Shopify 的 GraphQL 管理 API 合并
  • ** 综合错误处理**: 清除 API 和认证问题的错误消息

□ 工具

  1. get-products
  • 按标题获取所有产品或搜索
  • 投入:
  • [[T1] (可选字符串): 按标题过滤产品
  • [T2:返回的最大产品数量
  • 回报:格式化产品细节,包括标题、说明、手柄和变体
  1. get-products-by-collection
  • 从特定收藏中获取产品
  • 投入:
  • [[T4] (字符串):从中获取产品所收集产品的标识
  • limit(可选编号,缺省:10):返回的最大产品数量
  • 回报:从指定的收藏中格式化产品细节
  1. get-products-by-ids
  • 用他们的身份证获取产品

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Shopify MCP Server

MCP Server for Shopify API, enabling interaction with store data through GraphQL API. This server provides tools for managing products, customers, orders, and more.

Features

  • Product Management: Search and retrieve product information
  • Customer Management: Load customer data and manage customer tags
  • Order Management: Advanced order querying and filtering
  • GraphQL Integration: Direct integration with Shopify’s GraphQL Admin API
  • Comprehensive Error Handling: Clear error messages for API and authentication issues

Tools

  1. get-products

    • Get all products or search by title
    • Inputs:
      • searchTitle (optional string): Filter products by title
      • limit (number): Maximum number of products to return
    • Returns: Formatted product details including title, description, handle, and variants
  2. get-products-by-collection

    • Get products from a specific collection
    • Inputs:
      • collectionId (string): ID of the collection to get products from
      • limit (optional number, default: 10): Maximum number of products to return
    • Returns: Formatted product details from the specified collection
  3. get-products-by-ids

    • Get products by their IDs
    • Inputs:
      • productIds (array of strings): Array of product IDs to retrieve
    • Returns: Formatted product details for the specified products
  4. get-variants-by-ids

    • Get product variants by their IDs
    • Inputs:
      • variantIds (array of strings): Array of variant IDs to retrieve
    • Returns: Detailed variant information including product details
  5. get-customers

    • Get shopify customers with pagination support
    • Inputs:
      • limit (optional number): Maximum number of customers to return
      • next (optional string): Next page cursor
    • Returns: Customer data in JSON format
  6. tag-customer

    • Add tags to a customer
    • Inputs:
      • customerId (string): Customer ID to tag
      • tags (array of strings): Tags to add to the customer
    • Returns: Success or failure message
  7. get-orders

    • Get orders with advanced filtering and sorting
    • Inputs:
      • first (optional number): Limit of orders to return
      • after (optional string): Next page cursor
      • query (optional string): Filter orders using query syntax
      • sortKey (optional enum): Field to sort by (‘PROCESSED_AT’, ‘TOTAL_PRICE’, ‘ID’, ‘CREATED_AT’, ‘UPDATED_AT’, ‘ORDER_NUMBER’)
      • reverse (optional boolean): Reverse sort order
    • Returns: Formatted order details
  8. get-order

    • Get a single order by ID
    • Inputs:
      • orderId (string): ID of the order to retrieve
    • Returns: Detailed order information
  9. create-discount

    • Create a basic discount code
    • Inputs:
在 GitHub 查看完整 README

安装

npx -y shopify-mcp-server
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "shopify": { "command": "npx", "args": ["-y", "shopify-mcp-server"], "env": { "SHOPIFY_ACCESS_TOKEN": "<YOUR_ACCESS_TOKEN>", "MYSHOPIFY_DOMAIN": "<YOUR_SHOP>.myshopify.com" } } } }