Shopify MCP Server

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

  • Allows retrieving product and customer information from a Shopify store, including product lists with details (title, ID, type, vendor, status, price) and customer lists with details (name, ID, email, orders count, total spent)

Shopify MCPサーバー

ClaudeのようなクライアントとShopifyストアデータを接続するためのModel Context Protocol(MCP)サーバー。このサーバーは、Shopifyストアから商品情報や顧客情報を取得するためのツールを公開します。

ツール

  • get-product-list : Shopifyストアから商品リストを取得します
  • get-customer-list : Shopifyストアから顧客リストを取得します
  • 近日中にさらに追加予定

前提条件

  • Python 3.12以上
  • APIアクセスを備えたShopifyストア
  • Shopify API 認証情報 (API キー、パスワード、アクセス トークン)

インストール

  1. リポジトリをクローンします。
git clone https://github.com/siddhantbajaj/shopify-mcp-server.git cd shopify-mcp-server
  1. uvを使用して仮想環境を作成し、アクティブ化します。
uv venv source .venv/bin/activate # On Unix/MacOS # or .venv\Scripts\activate # On Windows
  1. パッケージをインストールします。
uv pip install -e .

構成

  1. ルート ディレクトリに Shopify 資格情報を使用して.envファイルを作成します。
SHOPIFY_SHOP_URL="your-store.myshopify.com" SHOPIFY_API_KEY="your_api_key" SHOPIFY_PASSWORD="your_api_password" SHOPIFY_ACCESS_TOKEN="your_access_token"

プレースホルダー値を実際の Shopify API 資格情報に置き換えます。

使用法

  1. MCP サーバーを起動します。
python -m shopify_mcp_server.server
  1. サーバーは 2 つのツールを公開します。

製品リストを取得する

Shopify ストアから製品のリストを取得します。

  • オプションパラメータ: limit (デフォルト: 10) - 返される製品の最大数

顧客リストを取得する

Shopify ストアから顧客リストを取得します。

  • オプションパラメータ: limit (デフォルト: 10) - 返される顧客の最大数

ツール応答形式

製品

Products (showing X): Title: Product Name ID: 123456789 Product Type: Type Vendor: Vendor Name Status: active Price: $XX.XX ---

顧客

Customers (showing X): Name: John Doe ID: 123456789 Email: john@example.com Orders Count: X Total Spent: $XX.XX ---

発達

このプロジェクトでは以下を使用します:

安全

  • .envファイルをバージョン管理にコミットしないでください
  • Shopify APIの認証情報を安全に保つ
  • 機密情報には環境変数を使用する

ライセンス

このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細については LICENSE ファイルを参照してください。

貢献

  1. リポジトリをフォークする
  2. 機能ブランチを作成します( git checkout -b feature/amazing-feature
  3. 変更をコミットします ( git commit -m 'Add some amazing feature' )
  4. ブランチにプッシュする ( git push origin feature/amazing-feature )
  5. プルリクエストを開く
-
security - not tested
A
license - permissive license
-
quality - not tested

この MCP サーバーは、クライアントを Shopify ストア データに接続し、公開されたツールを介して製品および顧客情報を取得できるようにします。

  1. Tools
    1. Prerequisites
      1. Installation
        1. Configuration
          1. Usage
            1. get-product-list
            2. get-customer-list
          2. Tool Response Format
            1. Products
            2. Customers
          3. Development
            1. Security
              1. License
                1. Contributing
                  ID: jjyo70hi83