Shopify MCP Server

by rezapex
Verified

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.

Integrations

  • Direct integration with Shopify's GraphQL Admin API for accessing and managing store data

  • Provides interaction with Shopify store data through GraphQL Admin API, enabling management of products, customers, orders, collections, webhooks, and discount codes

🚀 概要

Shopify MCPサーバーは、モデルコンテキストプロトコルを通じて、アプリケーションとShopifyエコシステムをつなぐ強力な架け橋となります。Shopifyの管理APIへのシンプルなAPI呼び出しで、商品、顧客、注文などを簡単に管理できます。

📋 目次

📥 インストール

希望するインストール方法を選択してください:

方法説明書
鍛冶屋
グラマ.ai
国立博物館npm install shopify-mcp-server

✨ 特徴

  • 🛍️ 包括的な製品管理- 製品データの検索、取得、管理
  • 👥 顧客データアクセス- 顧客情報を取得し、タグを管理する
  • 📦 高度な注文処理- 注文のフィルタリング、並べ替え、管理が簡単
  • ⚡ GraphQLの直接統合- Shopifyの管理APIに直接接続
  • 🛡️ 堅牢なエラー処理- トラブルシューティングのための明確なフィードバック

🧰 利用可能なツール

製品管理

道具説明主なパラメータ
get-productsタイトルで製品を探すsearchTitlelimit
get-products-by-collectionコレクション商品を入手するcollectionIdlimit
get-products-by-ids特定の商品を取得するproductIds
get-variants-by-ids変異体の詳細を取得するvariantIds

顧客管理

道具説明主なパラメータ
get-customers顧客データを取得するlimitnext
tag-customer顧客にタグを追加するcustomerIdtags

注文管理

道具説明主なパラメータ
get-ordersフィルターと並べ替えの順序firstafterquerysortKey
get-order単一注文の詳細を取得するorderId

ショップ&コレクションツール

道具説明主なパラメータ
get-collectionsショップコレクションを取得するlimitname
get-shop基本的なショップの詳細を取得するなし
get-shop-detailsショップの詳細情報を取得するなし

割引管理

道具説明主なパラメータ
create-discount割引コードを作成するtitlecodevalueTypevalue

🏁 はじめに

  1. パッケージをインストールする
    npm install shopify-mcp-server
  2. 環境変数を設定する
    SHOPIFY_ACCESS_TOKEN=your_token MYSHOPIFY_DOMAIN=your-store.myshopify.com
  3. サーバーを初期化する
    require('shopify-mcp-server').start();
  4. 最初のAPI呼び出しを実行する
    const products = await shopifyMcpServer.tools.getProducts({ limit: 10 }); console.log(products);

💡 ユースケース

  • Eコマースプラットフォームの統合- システム間で製品と注文を同期
  • カスタム管理ダッシュボード- ビジネスニーズに合わせてカスタマイズされたインターフェースを構築
  • 注文の自動化- 自動注文処理のワークフローを設定する
  • マルチチャネル販売管理- すべての販売チャネルにわたって在庫を管理

🔧 セットアップガイド

Shopifyアクセストークンの取得

  1. Shopify管理画面から、 「設定」 > **「アプリと販売チャネル」**に移動します。
  2. 「アプリを開発」 > **「アプリを作成」**をクリックします
  3. アプリに名前を付けます(例:「Shopify MCP Server」)
  4. API スコープを構成します。
    • read_productswrite_products
    • read_customerswrite_customers
    • read_orderswrite_orders
  5. 「保存し**アプリをインストール」**をクリック
  6. 管理APIアクセストークンをコピーする

**セキュリティに関する注意:**アクセストークンは安全に保管してください。バージョン管理にコミットしないでください。

Claude Desktopでの使用

claude_desktop_config.jsonに追加します:

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

👨‍💻 開発

# Clone the repository git clone https://github.com/your-username/shopify-mcp-server.git # Install dependencies cd shopify-mcp-server npm install # Set up environment variables # Create a .env file with your Shopify credentials # Build and test npm run build npm test

🤝 コミュニティ

リソースリンク
GitHubディスカッション会話に参加する
問題トラッカーバグを報告する
ツイッター@rezajafar
不和私たちのサーバーに参加してください

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

GraphQL API を介して Shopify ストア データとのやり取りを可能にし、堅牢なエラー処理を備えた製品、顧客、注文、割引などを管理するためのツールを提供します。

  1. 📋 Table of Contents
    1. 📥 Installation
      1. ✨ Features
        1. 🧰 Available Tools
          1. Product Management
          2. Customer Management
          3. Order Management
          4. Shop & Collection Tools
          5. Discount Management
        2. 🏁 Getting Started
          1. 💡 Use Cases
            1. 🔧 Setup Guide
              1. Getting a Shopify Access Token
              2. Using with Claude Desktop
            2. 👨‍💻 Development
              1. 🤝 Community
                ID: uhwaf9e34i