MCP Product Search Server
MCP製品検索サーバー
Model Context Protocol (MCP) に基づいた製品検索サーバーです。Claudeがキーワードに基づいて製品カタログを検索し、構造化データを取得できるようにします。
機能
Claudeが呼び出せる3つのツールを提供します:
ツール | 説明 |
| キーワードで製品を検索。カテゴリ、価格、評価によるフィルタリングをサポート |
| すべての製品カテゴリと件数を一覧表示 |
| IDを指定して単一製品の完全な情報を取得 |
Related MCP server: ProductLens-MCP
クイックスタート
1. プロジェクトのクローン
git clone <your-repo-url>
cd mcp-product-search2. 仮想環境の作成と依存関係のインストール
macOS / Linux:
python3 -m venv .venv
source .venv/bin/activate
pip install "mcp[cli]"Windows:
python -m venv .venv
.venv\Scripts\activate
pip install "mcp[cli]"Python 3.10以上が必要です。
python3 --versionで確認してください。
3. ブラウザでのテスト
mcp dev server.pyブラウザが自動的にMCP Inspectorを開きます。開かない場合は、ターミナルに出力されたアドレス(通常は http://localhost:6274)に手動でアクセスしてください。
接続手順:
左側の Command を仮想環境内のPythonの絶対パスに変更します:
macOS/Linux:
/絶対パス/mcp-product-search/.venv/bin/pythonWindows:
C:\絶対パス\mcp-product-search\.venv\Scripts\python.exe
Arguments に
server.pyを入力しますConnect をクリックし、左下に Connected と表示されれば成功です
上部の Tools タブをクリックし、ツールを選択してパラメータを入力し、Run Tool をクリックします

4. Claude Desktopへの接続
設定ファイルを見つけます:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
以下の内容を追加します(実際の絶対パスに置き換えてください):
{
"mcpServers": {
"product-search": {
"command": "/绝对路径/mcp-product-search/.venv/bin/python",
"args": ["/绝对路径/mcp-product-search/server.py"]
}
}
}現在のディレクトリの絶対パスを確認する方法:
# macOS / Linux
pwd
# Windows
cd設定ファイルを保存した後、Claude Desktopを完全に終了して再起動してください。
5. Claude Code(コマンドライン)への接続
claude mcp add product-search \
/绝对路径/mcp-product-search/.venv/bin/python \
/绝对路径/mcp-product-search/server.py使用例
Claudeに接続後、以下のように質問できます:
帮我搜索苹果品牌的笔记本电脑
找一款评分 4.8 以上、价格不超过 300 美元的耳机
列出所有产品分类
查询产品 P003 的详细信息Claudeは自動的にどのツールを呼び出すべきか判断し、返された構造化データに基づいて回答します。
ツールパラメータの説明
search
パラメータ | 型 | 必須 | デフォルト値 | 説明 |
| string | はい | — | 製品名、説明、ブランド、カテゴリ、タグをマッチング |
| string | いいえ | — | カテゴリでフィルタリング(例: |
| float | いいえ | — | 最高価格(USD) |
| float | いいえ | — | 最低評価(0–5) |
| int | いいえ |
| 結果の最大件数(最大50) |
結果は評価の高い順、価格の安い順にソートされます。
戻り値の例:
{
"keyword": "apple",
"filters": { "category": "Laptops", "max_price": null, "min_rating": null },
"total_results": 1,
"products": [
{
"id": "P001",
"name": "Apple MacBook Pro 14-inch M3",
"category": "Laptops",
"brand": "Apple",
"price": 1999.0,
"currency": "USD",
"stock": 42,
"rating": 4.8,
"description": "14-inch Liquid Retina XDR display, M3 chip, 18GB RAM, 512GB SSD.",
"tags": ["laptop", "apple", "macbook", "m3", "professional", "portable"]
}
]
}list_categories
パラメータなし。すべてのカテゴリ名と対応する製品数を返します。
get_product
パラメータ | 型 | 必須 | 説明 |
| string | はい | 製品ID(例: |
プロジェクト構造
mcp-product-search/
├── server.py # MCP 服务器,定义工具
├── products.py # 产品目录与搜索逻辑
├── pyproject.toml # 项目依赖
└── README.md製品データの拡張
現在の製品カタログは products.py に記述された12件のサンプルデータです。実際のデータに置き換えるには search_products() 関数を修正するだけでよく、server.py を変更する必要はありません。
データソース | 修正方法 |
ローカル JSON/CSV | 起動時にファイルを読み込んで |
SQLite / PostgreSQL | ループ処理をSQLクエリに置き換える |
EC API | 関数内でHTTPリクエストを送信する |
Elasticsearch | ESの全文検索インターフェースを呼び出す |
Available Tools
3 toolsget_productA
Retrieve full details for a single product by its ID (e.g. "P001").
Args: product_id: The product's unique identifier.
Inputs: product_id (required). Returns: result
list_categoriesA
Return all available product categories and their item counts.
Inputs: no named parameters. Returns: result
searchA
Search products by keyword with optional filters.
Args: keyword: Search term matched against name, description, brand, category, and tags. category: Filter by exact category name (e.g. "Laptops", "Headphones"). max_price: Upper price limit in USD. min_rating: Minimum rating (0–5). limit: Maximum number of results to return (default 10, max 50).
Inputs: keyword (required), category, max_price, min_rating, +1 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a distinct purpose: get_product retrieves by ID, list_categories returns category overview, search does keyword-based filtering. No ambiguity in their roles.
All tool names follow a consistent verb_noun pattern (get_product, list_categories, search) using snake_case, making them predictable.
With 3 tools, the server is well-scoped for a search-focused service. Each tool earns its place without bloat or deficiency.
The tool set covers core search and retrieval operations (get by ID, list categories, keyword search). Missing a general 'list all products' operation, but search likely covers this with an empty keyword, though not documented; minor gap.
Maintenance
Related MCP Connectors
AMZScout Skill + MCP gives AI agents live access to real Amazon marketplace data across 14 Amazon marketplaces. Analyze any ASIN, validate product ideas, research niches, compare competitors, discover profitable keywords, and build data-driven PPC strategies using trusted Amazon insights instead of AI assumptions. Works with Claude, ChatGPT, Cursor, and any other MCP-compatible AI client. To connect, you'll need an AMZScout API plan and authorize your account. Get access and view pricing here: https://learn.amzscout.net/amazon-product-api-for-ai-agents
Search multi-merchant supply, checkout, and track orders via MCP.
Hosted Amazon Seller Central and Amazon Ads MCP server for Claude, ChatGPT, Cursor, and agents.
Connect Amazon Seller Central to Claude or ChatGPT via MCP. Orders, inventory, pricing, fees, FBA.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server that wraps the Universal Commerce Protocol (UCP) Discovery and Catalog capabilities, letting you search and compare products across UCP merchants directly from Claude.4MIT
- FlicenseNot gradedqualityDmaintenanceEnables product comparison and analysis for any MCP-compatible AI assistant, with tools like compare_products and list_products.-
- FlicenseNot gradedqualityDmaintenanceEnables e-commerce shopping assistant capabilities including product search, cart management, payment processing, and order fulfillment via MCP tools.-

Unwrangle MCPofficial
AlicenseNot gradedqualityCmaintenanceEnables AI agents to retrieve product details, customer reviews, and search results from retailers like Amazon, Target, Best Buy, Home Depot, and Walmart through a unified MCP interface.62 npmMIT