Shopify MCP 代理与模拟服务器 (ShopifyMCPMockShop)のロゴ

Shopify MCP 代理与模拟服务器 (ShopifyMCPMockShop)

コミュニティ
ramakay

A Shopify MCP Server built to interact with Mock.shop

公開者ramakay
リポジトリShopifyMockMCP
言語TypeScript
フォーク
5
スター
13
利用可能なツール
0
通信方式stdio
カテゴリ
リンク
  • ツールをAIワークフローに接続

    Shopify MCP 代理与模拟服务器 (ShopifyMCPMockShop)は、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには13件のスターと5件のフォークがあります。

Shopify MCP Proxy & Mock Server (ShopifyMCPMockShop)

This project implements a Model Context Protocol (MCP) server that acts as an intelligent bridge and proxy to Shopify's Storefront API. It uniquely supports mock.shop for safe development and testing without requiring real store credentials.

The server communicates via Standard Input/Output (stdio), making it suitable for local integration with clients like Claude Desktop and Cursor.

Motivation

Generic AI developer tools and off-the-shelf MCP servers often promise much but can lack the transparency, safety mechanisms (like explicit ToolAnnotations), stability, or specific features needed for controlled development and testing, especially against rapidly evolving APIs like Shopify's.

This project was born from the need for a reliable, open-source Shopify MCP server that:

  • Prioritizes Safety: Integrates deeply with mock.shop to provide a crucial sandbox for risk-free development and accurate testing without impacting live stores.
  • Emphasizes Transparency & Control: Allows developers (and their AI partners) to understand exactly how interactions with the Shopify API occur, including which API versions are used and the potential impact of actions (via ToolAnnotations like readonly, destructive, etc.).
  • Addresses Specific Needs: Fills the gap left by purely informational tools or closed-source commercial offerings by providing a safe execution engine tailored for Shopify development workflows.

The goal is to enable developers to confidently leverage AI assistance for Shopify tasks, knowing they have a tool built with intentional guardrails and clear operational context.

Architecture

System Overview

The ShopifyMCPMockShop server follows a layered architecture that provides clean separation between MCP protocol handling and Shopify API integration:

System Architecture

Data Flow

This sequence diagram illustrates how a typical request flows through the system, from user interaction to API response:

Data Flow Diagram

Tool Hierarchy

The MCP server exposes a comprehensive set of tools organized by Shopify resource type:

Tool Hierarchy

Setup & Running Locally

This server is a standalone Node.js script.

  1. Clone the repository:

    bash
    git clone https://github.com/ramakay/ShopifyMockMCP.git
    cd ShopifyMCPMockShop
  2. Install dependencies:

    bash
    npm install
  3. Build the server:

    bash
    npm run build

    This compiles the TypeScript code into JavaScript in the dist directory (dist/server.js).

  4. Configure Environment (Optional - for Real Store):

    • If you want to connect to a real Shopify store instead of mock.shop, set the following environment variables before running the server (e.g., via export or a .env file loaded by your client):
      • SHOPIFY_STORE: Your store domain (e.g., your-store.myshopify.com). Required for real store usage.
      • SHOPIFY_ACCESS_TOKEN: Your Storefront API access token. Required for real store usage.
      • SHOPIFY_VERSION: Optional specific Storefront API version (e.g., 2025-04). Defaults to latest stable.
    • Note: Using mock.shop (default when SHOPIFY_STORE is not set) requires no environment variables.
    • Note: Admin API functionality is currently disabled but planned for future updates. Configuration variables (USE_ADMIN_API, ADMIN_ACCESS_TOKEN, ADMIN_VERSION) are not currently used.
  5. Running: The server is intended to be launched automatically by MCP clients (like Claude Desktop or Cursor) using the stdio configuration. You do not need to run npm run start manually. See the "Usage" section below.

Usage with Cursor or Claude Desktop

Configure your MCP client (Cursor, Claude Desktop) to launch this server via stdio. Add an entry like the following to the respective configuration file:

  • Claude Desktop: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Cursor: ~/.cursor/mcp.json (or similar)
json
{
  "mcpServers": {
    // ... other servers ...
    "shopify-mcp": {
      "command": "node",
      "args": [
        "/full/path/to/ShopifyMCPMockShop/dist/server.js"
      ],
      "env": {
        // Only needed if connecting to a REAL store:
        // "SHOPIFY_STORE": "your-store.myshopify.com",
        // "SHOPIFY_ACCESS_TOKEN": "your-storefront-token",
        // "SHOPIFY_VERSION": "2025-04"
      },
      "disabled": false,
      "alwaysAllow": []
    }
    // ... other servers ...
  }
}

Important:

  • Replace /full/path/to/ShopifyMCPMockShop with the absolute path to where you cloned the repository.
  • Only include the env variables if you are connecting to a real store.
  • Restart your client (Cursor/Claude Desktop) after modifying the configuration.

Available Tools

This MCP server currently provides tools for interacting with the Shopify Storefront API.

Tool NameDescriptionAPI
getShopInfoFetches basic shop details (name, description, currency).Storefront
getProductByIdFetches a specific product by ID. If includeImages is true, returns JSON details and the first image (75px) as a base64 ImageContentBlock.Storefront
findProductsSearches/filters products with pagination/sorting.Storefront
getCollectionByIdFetches a specific collection by ID, optionally including products.Storefront
findCollectionsSearches/filters collections with pagination/sorting.Storefront
cartCreateCreates a new shopping cart.Storefront
cartLinesAddAdds line items to an existing shopping cart.Storefront
cartLinesUpdateUpdates line items (e.g., quantity) in an existing shopping cart.Storefront
cartLinesRemoveRemoves line items from an existing shopping cart.Storefront
getCartFetches the details of an existing shopping cart by ID.Storefront

(Note: Admin API tools like getCustomerById and createProduct are planned for future updates and are currently disabled.)

Inspecting Server Capabilities

To verify the server is built correctly and see the exact capabilities it advertises to MCP clients, you can use the inspect script defined in package.json:

bash
# Ensure you have run 'npm install' and 'npm run build' first
# Run this from the project root directory
npm run inspect

This command executes the compiled server (node dist/server.js) and sends the standard mcp/capabilities request via its standard input. The server processes this request and prints its capabilities (including available tools, resource templates, and server information) as a JSON response to its standard output, which you will see in your terminal. This is useful for debugging and confirming the server's advertised functionality.

Known Issues

  • Inline Image Rendering: Clients like Claude Desktop and Cursor currently render ImageContentBlocks (used by getProductById when includeImages is true) in a separate UI block below the main text response, rather than inline. Attempts to use Markdown or HTML image tags within text blocks also failed to render inline in these clients.

Future Plans

  • Re-integrate and test Admin API tools (getCustomerById, createProduct, etc.).
  • Add configuration options for Admin API credentials (USE_ADMIN_API, ADMIN_ACCESS_TOKEN, ADMIN_VERSION).
  • Implement a testing framework.
  • Explore resource handling if client support improves.

License

MIT License

インストール

TypingMind
{
  "mcpServers": {
    "shopifymockmcp": {
      "command": "node",
      "args": [
        "dist/server.js"
      ]
    }
  }
}

Shopify MCP 代理与模拟服务器 (ShopifyMCPMockShop)のMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Shopify MCP 代理与模拟服务器 (ShopifyMCPMockShop)に接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Shopify MCP 代理与模拟服务器 (ShopifyMCPMockShop)をサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. Shopify MCP 代理与模拟服务器 (ShopifyMCPMockShop)のMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "shopifymockmcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ramakay/shopify-mcp-proxy"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてShopify MCP 代理与模拟服务器 (ShopifyMCPMockShop)のMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. Shopify MCP 代理与模拟服务器 (ShopifyMCPMockShop)のMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Shopify MCP 代理与模拟服务器 (ShopifyMCPMockShop)を使ってこのタスクを手伝ってもらえますか?
Shopify MCP 代理与模拟服务器 (ShopifyMCPMockShop)
はい、読みました。
Shopify MCP 代理与模拟服务器 (ShopifyMCPMockShop)で調べた結果をお伝えします。

よくある質問

Shopify MCP 代理与模拟服务器 (ShopifyMCPMockShop) MCPサーバーは何に使いますか?

Shopify MCP 代理与模拟服务器 (ShopifyMCPMockShop)は、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでShopify MCP 代理与模拟服务器 (ShopifyMCPMockShop) MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでShopify MCP 代理与模拟服务器 (ShopifyMCPMockShop)を利用できます。

TypingMindでShopify MCP 代理与模拟服务器 (ShopifyMCPMockShop) MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Shopify MCP 代理与模拟服务器 (ShopifyMCPMockShop)を接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Shopify MCP 代理与模拟服务器 (ShopifyMCPMockShop) MCPをTypingMindに接続するにはどうすればよいですか?

Shopify MCP 代理与模拟服务器 (ShopifyMCPMockShop)はTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでShopify MCP 代理与模拟服务器 (ShopifyMCPMockShop) MCPのどのようなツールを利用できますか?

Shopify MCP 代理与模拟服务器 (ShopifyMCPMockShop)はMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Shopify MCP 代理与模拟服务器 (ShopifyMCPMockShop) MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Shopify MCP 代理与模拟服务器 (ShopifyMCPMockShop)で認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇