LS

luckyfarnon/shopify-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

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
GitHub で README 全文を見る

インストール

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" ] } } }