BM

boldcommerce/magento2-mcp

Developer tools

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

68 stars 26 forks 品質 63 トレンド 14GPL-3.0

太字商/magento2-mcp は [https://github.com/boldcommerce/magento2-mcp.] からインポートされた MCP サーバー候補です

概要

太字商/magento2-mcp は [https://github.com/boldcommerce/magento2-mcp.] からインポートされた MCP サーバー候補です

概要(AI 翻訳)

Magento 2 REST API に接続するモデルコンテキストプロトコル(MCP)サーバーで、Claude や他の MCP クライアントが Magento ストアから製品情報を照会できるようにします。

##特徴

製品の特徴

  • 商品情報をSKUまたはIDで問い合わせる
  • 各種条件で商品を探す
  • 製品カテゴリを取得する
  • 関連製品を入手
  • 製品在庫情報を入手
  • 製品属性の取得
  • 属性コードと値を指定して製品属性を更新する
  • フィルターおよび分類の高度プロダクト調査

顧客の特徴

  • 電子メールアドレスで注文されたすべての製品を入手

注文と収益機能

  • 特定の日付範囲の注文数を取得する
  • 特定の日付範囲の収益を得る
  • 特定の日付範囲の国でフィルタリングされた収益を得る
  • 販売数量やトップセラー商品を含む製品販売統計を入手
  • 「today」「yesterday」「Last week」「今週」「YTD」などの相対的な日付表現のサポート
  • 国名と国名の両方でフィルタリングする国のサポート

前提条件

  • Node.js(v14以上)
  • Magento 2インスタンス REST API アクセス
  • Magento 2インスタンスのAPIトークン

インストール

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

README

以下は原文 README の抜粋です。原文を見る。

Magento 2 MCP Server

This is a Model Context Protocol (MCP) server that connects to a Magento 2 REST API, allowing Claude and other MCP clients to query product information from a Magento store.

Features

Product Features

  • Query product information by SKU or ID
  • Search for products using various criteria
  • Get product categories
  • Get related products
  • Get product stock information
  • Get product attributes
  • Update product attributes by specifying attribute code and value
  • Advanced product search with filtering and sorting

Customer Features

  • Get all ordered products for a customer by email address

Order and Revenue Features

  • Get order count for specific date ranges
  • Get revenue for specific date ranges
  • Get revenue filtered by country for specific date ranges
  • Get product sales statistics including quantity sold and top-selling products
  • Support for relative date expressions like “today”, “yesterday”, “last week”, “this month”, “YTD”
  • Support for country filtering using both country codes and country names

Prerequisites

  • Node.js (v14 or higher)
  • A Magento 2 instance with REST API access
  • API token for the Magento 2 instance

Installation

  1. Clone this repository
  2. Install dependencies:
npm install

Usage

Running the server directly

node mcp-server.js

Testing with the test client

node test-mcp-server.js

Using with Claude Desktop

  1. Check your path node with which node
  2. Go to the Developer settings and click “Edit config”. This will open a JSON file.
  3. Add the following snippet within the mcpServers:
    "magento2": {
      "command": "/path/to/your/node",
      "args": ["/path/to/mcp-server.js"],
      "env": {
        "MAGENTO_BASE_URL": "https://YOUR_DOMAIN/rest/V1",
        "MAGENTO_API_TOKEN": "your-api-token"
      }
    }
  1. Replace /path/to/your/node with the path you checked in step 1
  2. Replace /path/to/mcp-server.js with the path where you cloned this repo
  3. You can get an API token from System > Integrations in the Magento admin
  4. Restart Claude Desktop.
  5. You should now be able to ask Claude questions about products in your Magento store.

Available Tools

The server exposes the following tools:

Product Tools

  • get_product_by_sku: Get detailed information about a product by its SKU
  • search_products: Search for products using Magento search criteria
  • get_product_categories: Get categories for a specific product by SKU
  • get_related_products: Get products related to a specific product by SKU
  • get_product_stock: Get stock information for a product by SKU
  • get_product_attributes: Get all attributes for a product by SKU
  • get_product_by_id: Get detailed information about a product by its ID
  • advanced_product_search: Search for products with advanced filtering options
  • update_product_attribute: Update a specific attribute of a product by SKU

Customer Tools

GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →