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
- Clone this repository
- 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
- Check your path node with
which node - Go to the Developer settings and click “Edit config”. This will open a JSON file.
- 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"
}
}
- Replace
/path/to/your/nodewith the path you checked in step 1 - Replace
/path/to/mcp-server.jswith the path where you cloned this repo - You can get an API token from System > Integrations in the Magento admin
- Restart Claude Desktop.
- 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 SKUsearch_products: Search for products using Magento search criteriaget_product_categories: Get categories for a specific product by SKUget_related_products: Get products related to a specific product by SKUget_product_stock: Get stock information for a product by SKUget_product_attributes: Get all attributes for a product by SKUget_product_by_id: Get detailed information about a product by its IDadvanced_product_search: Search for products with advanced filtering optionsupdate_product_attribute: Update a specific attribute of a product by SKU
Customer Tools
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →