LS

luckyfarnon/shopify-mcp

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

5 stars 11 forks Качество 64 Тренд 13MIT

Shopify MCP Server (`shopify-mcp`) is a GraphQL-powered command-line utility for interacting with your Shopify store data.

Обзор

MCP Server for Shopify API, enabling interaction with store data through GraphQL API. This server provides tools for managing products, customers, orders, and more. - : Search, retrieve, and update product information, including SEO-optimized content - : Load customer data and manage customer tags - : Advanced order querying and filtering - : Create, retrieve, and update blogs with custom templates and comment policies - : Create and manage blog articles with rich content, author information, and SEO metadata - : Unified search across products, articles, blogs, and pages - : Direct integration with Shopify's GraphQL Admin API - : Clear error messages for API and authentication issues - : Designed for seamless use with AI language models 1. Node.js (version 16 or higher) 2. Shopify Custom App Access Token (see setup instructions below) To use this MCP server, you'll need to create a custom app in your Shopify store: 1. From your Shopify admin, go to > 2.

README

Показан фрагмент оригинального README. Открыть оригинал.

Shopify MCP Server

(please leave a star if you like!)

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

📦 Package Name: shopify-mcp
🚀 Command: shopify-mcp (NOT shopify-mcp-server)

Features

  • Product Management: Search, retrieve, and update product information, including SEO-optimized content
  • Customer Management: Load customer data and manage customer tags
  • Order Management: Advanced order querying and filtering
  • Blog Management: Create, retrieve, and update blogs with custom templates and comment policies
  • Article Management: Create and manage blog articles with rich content, author information, and SEO metadata
  • Store Search: Unified search across products, articles, blogs, and pages
  • GraphQL Integration: Direct integration with Shopify’s GraphQL Admin API
  • Comprehensive Error Handling: Clear error messages for API and authentication issues
  • LLM-Optimized: Designed for seamless use with AI language models

Prerequisites

  1. Node.js (version 16 or higher)
  2. Shopify Custom App Access Token (see setup instructions below)

Setup

Shopify Access Token

To use this MCP server, you’ll need to create a custom app in your Shopify store:

  1. From your Shopify admin, go to Settings > Apps and sales channels
  2. Click Develop apps (you may need to enable developer preview first)
  3. Click Create an app
  4. Set a name for your app (e.g., “Shopify MCP Server”)
  5. Click Configure Admin API scopes
  6. Select the following scopes:
    • read_products, write_products
    • read_customers, write_customers
    • read_orders, write_orders
    • read_content, write_content (for blogs and articles)
  7. Click Save
  8. Click Install app
  9. Click Install to give the app access to your store data
  10. After installation, you’ll see your Admin API access token
  11. Copy this token - you’ll need it for configuration

Usage with Claude Desktop

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "shopify": {
      "command": "npx",
      "args": [
        "shopify-mcp",
        "--accessToken",
        "",
        "--domain",
        ".myshopify.com"
      ]
    }
  }
}

Locations for the Claude Desktop config file:

  • MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%/Claude/claude_desktop_config.json

Alternative: Run Locally with Environment Variables

If you prefer to use environment variables instead of command-line arguments:

  1. Create a .env file with your Shopify credentials:

    SHOPIFY_ACCESS_TOKEN=your_access_token
Открыть полный README на GitHub

Установка

npx shopify-mcp --accessToken <YOUR_ACCESS_TOKEN> --domain <YOUR_SHOP>.myshopify.com
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "shopify": { "command": "npx", "args": [ "shopify-mcp", "--accessToken", "<YOUR_ACCESS_TOKEN>", "--domain", "<YOUR_SHOP>.myshopify.com" ] } } }