rakuten-pantry-mcp
A Rakuten Ichiba (Japan's largest e-commerce marketplace) MCP server for searching, browsing, and comparing products with enhanced pricing and shipping insights. Requires RAKUTEN_APP_ID and RAKUTEN_ACCESS_KEY for authentication.
Tools:
ichiba_item_search— Search products by keyword with optional filters for price range, genre, and shop. Returns enriched fields:quantity(parsed from product name, e.g. "24本入り×2ケース" → 48)unitPrice(price ÷ quantity)postageLabel(送料無料 / 送料別 / 要確認)estimatedTotalPrice(itemPrice when free shipping)shippingVerified(whether shipping cost is confirmed via API)
ichiba_genre_search— Browse the genre/category hierarchy; pass'0'for top-level genres or a specific genre ID to drill into subcategories.ichiba_tag_search— Look up details for a specific tag ID (facet attributes like size, color), including the tag's group, name, and parent tag.ichiba_item_ranking— Retrieve bestseller rankings, filterable by genre, time period (realtime/daily/weekly/monthly/yearly), age demographic, and gender. Returns the same enriched pricing/shipping fields as item search.ichiba_product_search— Cross-seller product search (Item Price Navi) comparing prices for identical products across multiple shops, returning min/max/average prices and number of sellers. Supports filtering by maker/brand code.
Prompt:
compare_ichiba_value— Guides agents through a structured unit-price and shipping-inclusive comparison workflow, including web-searching unconfirmed shipping costs and re-ranking by total cost, ensuring accurate cost-per-unit comparisons.
Provides tools for searching items, genres, tags, rankings, and product comparisons on Rakuten Ichiba, with enhanced fields like quantity, unit price, and shipping cost labels.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@rakuten-pantry-mcp find the cheapest bulk pasta with free shipping and best unit price"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
rakuten-pantry-mcp
mrslbt/rakuten-mcp をベースにした楽天市場(Ichiba)向け MCP サーバーです。
upstream(npm の rakuten-mcp)にはない機能を追加しています。
追加機能(upstream にない)
フィールド / 機能 | 説明 |
| 商品名から総個数を解析(例: |
|
|
|
|
| 送料無料時は |
| 送料が API 上で確定しているか |
| 単価比較+送料ウェブ確認のガイドプロンプト |
改造の詳細は CHANGES.md。upstream へのパッチは patches/ を参照。
Related MCP server: rakuten-mcp
リポジトリ構成
rakuten-pantry-mcp/
├── src/
│ ├── index.ts # エントリポイント
│ ├── server.ts # MCP サーバー組み立て
│ ├── client.ts # 楽天 API クライアント
│ ├── config.ts / errors.ts / i18n.ts / auth.ts
│ ├── tools/
│ │ ├── ichiba.ts # ★ 改造の本体(5ツール)
│ │ ├── index.ts
│ │ ├── types.ts
│ │ └── meta.ts
│ ├── prompts/
│ │ ├── ichiba.ts # ★ compare_ichiba_value
│ │ ├── schema.ts # ★ プロンプト引数の型変換
│ │ └── index.ts
│ ├── transports/ # stdio / HTTP
│ └── resources/
├── test/ # ichiba / prompts / http のテスト
├── patches/ # upstream 向け差分
├── dist/ # ビルド成果物(npm run build)
├── package.json
├── README.md
├── CHANGES.md
├── AGENTS.md
└── LICENSEIchiba ツール 5個のみ(Books / Travel / Recipe / Kobo / GORA は含みません)。resources/ は現時点では未使用(空のレジストリ)です。
セットアップ
git clone https://github.com/yukin_co/rakuten-pantry-mcp.git
cd rakuten-pantry-mcp
npm install
npm run buildMCP クライアント設定
環境変数 RAKUTEN_APP_ID と RAKUTEN_ACCESS_KEY が必要です(楽天デベロッパーで取得)。
ローカル clone を使う場合
args には clone 先の dist/index.js への絶対パス を指定します。
{
"mcpServers": {
"rakuten-pantry": {
"command": "node",
"args": ["/path/to/rakuten-pantry-mcp/dist/index.js"],
"env": {
"RAKUTEN_APP_ID": "your-app-id",
"RAKUTEN_ACCESS_KEY": "your-access-key"
}
}
}
}npx で使う場合(npm 公開後)
{
"mcpServers": {
"rakuten-pantry": {
"command": "npx",
"args": ["-y", "rakuten-pantry-mcp"],
"env": {
"RAKUTEN_APP_ID": "your-app-id",
"RAKUTEN_ACCESS_KEY": "your-access-key"
}
}
}
}npm の
rakuten-mcp(mrslbt/rakuten-mcp)は別パッケージです。上記のrakuten-pantry-mcpを指定してください。
ツール(5)
ツール | 内容 |
| キーワード検索(quantity / unitPrice / 送料フラグ付き) |
| ジャンルツリー |
| タグ参照 |
| 売れ筋ランキング |
| 複数店舗横断の価格比較 |
プロンプト(1)
プロンプト | 内容 |
| 単価比較と送料確認の手順をエージェントに渡す |
開発
npm run typecheck
npm test
npm run buildライセンス
MIT — 元: mrslbt/rakuten-mcp(MIT)
Available Tools
5 toolsichiba_genre_searchBrowse Rakuten Ichiba GenresARead-onlyIdempotent
Browse the Rakuten Ichiba genre (category) hierarchy. Pass '0' to list top-level genres, or a specific genre ID to fetch its ancestors, siblings, and direct children. Useful for narrowing item searches to a specific category, or for discovering what categories exist.
[JA] 楽天市場のジャンル(カテゴリ)階層を参照します。'0' を渡すとトップレベル、特定のジャンルIDを渡すと祖先・兄弟・直下の子ジャンルを取得します。商品検索を特定カテゴリに絞り込んだり、カテゴリ構造を発見するのに使えます。
Inputs: genre_id.
ichiba_item_rankingGet Rakuten Ichiba Bestseller RankingARead-onlyIdempotent
Get the Rakuten Ichiba bestseller ranking — overall or filtered by genre, time period, age, and gender demographic. Returns ranked items with rank, price, review stats, purchase URL, quantity, unitPrice, postageLabel, estimatedTotalPrice, and shippingVerified. Use ichiba_genre_search to find genre IDs. For cheapest / per-unit / shipping-inclusive comparisons (送料込み, コスパ, 安い順, 最安): use the compare_ichiba_value PROMPT instead of this tool alone. If you must use this tool directly: (1) pre-sort by unitPrice ascending; (2) shippingVerified=true → estimatedTotalPrice is final; (3) web-search top 3–5 shippingVerified=false items for JPY shipping; (4) re-rank by itemPrice+shipping; never guess shipping.
[JA] 楽天市場の売れ筋ランキングを取得します。quantity・unitPrice・postageLabel・estimatedTotalPrice・shippingVerifiedを含みます。送料込み・コスパ・安い順・最安の比較は compare_ichiba_value プロンプトを使うこと(このツール単体は不十分)。直接使う場合: (1) unitPrice昇順 (2) shippingVerified=trueは確定 (3) false上位3〜5件をウェブ検索 (4) 再ソート。送料推測禁止。
Inputs: age, sex, page, period, +1 more.
ichiba_item_searchSearch Rakuten Ichiba ProductsARead-onlyIdempotent
Search products on Rakuten Ichiba (Japan's largest e-commerce marketplace) by keyword. Supports price range filtering, sorting by review count/average/price, and restricting results to a specific genre or shop. Returns items with prices, review stats, images, purchase URLs, quantity, unitPrice, postageLabel (from postageFlag), estimatedTotalPrice, and shippingVerified. For cheapest / per-unit / shipping-inclusive comparisons (送料込み, コスパ, 安い順, 最安): use the compare_ichiba_value PROMPT instead of this tool alone. If you must use this tool directly: (1) pre-sort by unitPrice ascending; (2) shippingVerified=true → estimatedTotalPrice is final; (3) web-search top 3–5 shippingVerified=false items for JPY shipping; (4) re-rank by itemPrice+shipping; never guess shipping.
[JA] 楽天市場で商品をキーワード検索します。各商品にquantity・unitPrice・postageLabel・estimatedTotalPrice・shippingVerifiedを付与します。送料込み・コスパ・安い順・最安の比較は compare_ichiba_value プロンプトを使うこと(このツール単体は不十分)。直接使う場合: (1) unitPrice昇順 (2) shippingVerified=trueは確定 (3) false上位3〜5件をウェブ検索 (4) 再ソート。送料推測禁止。
Inputs: keyword (required), hits, page, sort, +4 more.
ichiba_product_searchSearch Rakuten Ichiba Products (Cross-Seller, with Min/Max Pricing)ARead-onlyIdempotent
Search Rakuten's Item Price Navi — cross-seller product catalogue that groups identical products across multiple shops. Returns each product with its min/max/average price across all sellers and the total number of shops carrying it. Use this (instead of ichiba_item_search) when you want to compare prices for a specific product or answer 'is this a fair price?'. Filter by maker_code to restrict to a brand.
[JA] 楽天市場の商品価格ナビを検索します。同一商品を複数店舗にまたがって集約し、最安値/最高値/平均価格と取扱店舗数を返します。特定商品の価格比較や「妥当な価格か?」を判断する用途では、ichiba_item_search ではなくこちらを使用してください。maker_code でブランド絞り込みも可能。
Inputs: hits, page, sort, keyword, +3 more.
ichiba_tag_searchLook up Rakuten Ichiba Tag DetailsARead-onlyIdempotent
Look up details for a specific Rakuten Ichiba tag by tag ID. Tags are facet-style attributes (size, color, etc.) attached to items. Returns the tag group this tag belongs to, the tag name, and any parent tag. Tag IDs surface in ichiba_item_search item responses (each item carries an attributeIds array) and in ichiba_genre_search.
[JA] 特定のタグIDの詳細を取得します。タグはファセット属性(サイズ、色など)で商品に紐づいています。タグ名、所属タググループ、親タグを返します。タグIDは ichiba_item_search の各商品 attributeIds や ichiba_genre_search から取得できます。
Inputs: tag_id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose: genre navigation, ranking, item keyword search, cross-seller product comparison, and tag lookup. The descriptions explicitly differentiate them, e.g., ichiba_product_search is for price comparisons while ichiba_item_search is for general keyword search.
All tools follow the pattern 'ichiba_<domain>_<operation>' (e.g., ichiba_genre_search, ichiba_item_ranking). The only minor deviation is that most use '_search' but 'ichiba_item_ranking' uses '_ranking' instead. Overall, the convention is consistent and predictable.
With 5 tools, the server is well-scoped for browsing and searching the Rakuten Ichiba marketplace. Each tool covers a necessary function, and the count is neither too slim nor too heavy for this domain.
The tool set covers core browsing and search needs (genre, ranking, item search, product comparison, tags). A minor gap is the lack of a tool to retrieve detailed information for a single item by ID, which could be useful. However, the existing tools are sufficient for the main use cases.
Maintenance
Related MCP Connectors
MCP server for real-time product search by barcode (EAN, UPC, GTIN) or keyword on ean-search.org
Barcode-verified UK multi-merchant price comparison, deals, and Category Intelligence MCP server.
SEO MCP server for keyword research, SERP analysis, audits, and Search Console workflows.
One MCP server for all web data. Scrape, search, crawl, and AI research in one install.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn MCP server that enables users to search for products on the Mercari marketplace using keywords, categories, and specific filters like price and condition. It provides comprehensive tools for retrieving item details and browsing search results via standard or SSE protocols.-
- AlicenseAqualityCmaintenanceMCP server for Rakuten APIs. Search products, books, hotels, and rankings across Japan's largest e-commerce platform.2797 npm6MIT
- FlicenseNot gradedqualityDmaintenanceThis MCP server analyzes product photos using AI to generate listing drafts, publishes to Mercari Shops via GraphQL API, and exports drafts for other marketplaces.-
- FlicenseNot gradedqualityBmaintenanceMCP server to search Rakuten Ichiba (Japan's largest e-commerce platform) for products, returning names, prices, URLs, shop info, reviews, and images via the official Rakuten API.-