Skip to main content
Glama

rakuten-mcp

npm version npm downloads rakuten-mcp MCP server MCP Badge License: MIT

用于 Rakuten Web Service API 的模型上下文协议(MCP)服务器。涵盖乐天市场(Rakuten Ichiba)、乐天图书(Rakuten Books)和乐天旅游(Rakuten Travel)。

安装

npm install -g rakuten-mcp

或者使用 npx rakuten-mcp 按需运行。

Related MCP server: xendit-mcp

配置

  1. 登录 Rakuten Web Service 并点击 + New App。

  2. 选择 Web Application 作为类型,将 Allowed Websites 设置为 github.com(以及任何其他您将发送 Origin 请求头的域名),并勾选您需要的 API 范围(Ichiba、Books、Travel)。

  3. 从应用仪表板复制 Application ID (UUID) 和 Access Key。

变量

必需

描述

RAKUTEN_APP_ID

是

应用 ID (UUID 格式)

RAKUTEN_ACCESS_KEY

是

访问密钥 (pk_...)

RAKUTEN_ORIGIN

否

随每个请求发送的 Origin/Referer 请求头。默认为 https://github.com。必须与您在应用中配置的 Allowed Websites 之一匹配。

注意: 乐天在 2026 年迁移了其 API 平台。旧格式的数字应用 ID 不再有效。如果您拥有 2026 年之前的数字应用 ID,则必须注册一个新应用以获取此服务器所需的 UUID + Access Key 对。

Claude Desktop

编辑 claude_desktop_config.json:

{
  "mcpServers": {
    "rakuten": {
      "command": "npx",
      "args": ["-y", "rakuten-mcp"],
      "env": {
        "RAKUTEN_APP_ID": "your-app-id",
        "RAKUTEN_ACCESS_KEY": "your-access-key"
      }
    }
  }
}

Claude Code

claude mcp add rakuten -e RAKUTEN_APP_ID=... -e RAKUTEN_ACCESS_KEY=... -- npx -y rakuten-mcp

Cursor

添加到 ~/.cursor/mcp.json,格式与 Claude Desktop 相同。

工具

工具

描述

search_products

带有价格筛选、排序和分页功能的全文商品搜索。

get_genre_ranking

畅销榜单,支持整体或按类别查询。

search_genres

浏览商品类别层级。

search_books

通过书名、作者或 ISBN 搜索乐天图书。

search_travel

通过关键词搜索乐天旅游上的酒店。

search_travel_vacancy

使用日期、价格和位置筛选器搜索空房。

提示词

提示词

描述

search_products

搜索商品,支持可选的价格筛选。

compare_products

按评论或价格对商品进行比较。

category_bestsellers

某类别的畅销榜单。

find_hotel

查找特定日期的可用酒店。

budget_hotel

在预算范围内查找酒店。

find_book

通过书名、作者或 ISBN 搜索书籍。

books_by_author

查找某位作者的所有书籍。

资源

资源

URI

描述

支持的类别

rakuten://genres

乐天市场顶级商品类别。

示例查询

Find wireless earphones under ¥10,000 with good reviews.
楽天で1万円以下のワイヤレスイヤホンを探して。

What are the top sellers on Rakuten right now?
楽天の今の売れ筋ランキングを見せて。

Search for hotels in Kyoto on Rakuten Travel.
楽天トラベルで京都のホテルを探して。

Find available rooms near Tokyo Station for April 15-17 under ¥15,000.
東京駅近くで4月15〜17日、1万5千円以下の空室を探して。

Find books by Haruki Murakami on Rakuten Books.
村上春樹の本を楽天ブックスで探して。

安全性

此服务器中的所有工具均为针对乐天 Web 服务 API 的只读搜索。没有任何工具会创建、修改或删除任何资源。乐天对每个应用 ID 强制执行大约每秒 1 次请求(1 QPS)的速率限制;在实践中,这符合对话式 MCP 的使用习惯,但快速连续的批量调用将收到 HTTP 429 响应。API 返回的商品和排名可能是促销性质的;请将结果视为建议而非背书,并在采取行动前在乐天网站上核实价格和可用性。

免责声明

这是一个非官方的、由社区构建的 MCP 服务器。与乐天集团(Rakuten Group, Inc.)无关联、未得到其认可或赞助。Rakuten、Rakuten Ichiba、Rakuten Books 和 Rakuten Travel 是乐天集团的商标。使用风险自负。作者对因误用、提示词注入或错误引起的问题不承担任何责任。

许可证

MIT

Available Tools

27 tools
gora_golf_course_detailGet Rakuten GORA Golf Course DetailA
Read-onlyIdempotent

Get full details for a Rakuten GORA golf course by ID — postal address, phone, designer, hole/par count, course distance, green type, dress code, practice/lodging/meal facilities, credit card acceptance, layout map URL, and weekday/holiday base prices. Use this after gora_golf_course_search to drill into a specific course.

[JA] 楽天GORAのゴルフ場詳細をIDで取得します。郵便番号、電話、設計者、ホール数、パー数、コース距離、グリーン種別、ドレスコード、練習場/宿泊/食事/クレジットカード可否、レイアウトURL、平日/休日の基準最安値を返します。

Inputs: golfCourseId (required).

ichiba_item_rankingGet Rakuten Ichiba Bestseller RankingA
Read-onlyIdempotent

Get the Rakuten Ichiba realtime bestseller ranking: overall, for one genre, or for an age/gender demographic. Genre and demographic filters are mutually exclusive (Rakuten restriction). Returns ranked items with their rank, price, review stats, and purchase URL. Use ichiba_genre_search to find genre IDs.

[JA] 楽天市場のリアルタイム売れ筋ランキングを取得します。総合、ジャンル別、または年代/性別で絞り込み可能。ジャンルと年代/性別は併用できません(楽天の仕様)。順位、価格、レビュー、購入URLを含むランキング一覧を返します。ジャンルIDの検索には ichiba_genre_search を使用してください。

Inputs: age, sex, page, genre_id.

recipe_category_listList Rakuten Recipe CategoriesA
Read-onlyIdempotent

Get the full Rakuten Recipe category hierarchy (43 large → ~540 medium → ~1500 small categories). Each category has a categoryId, name, and URL on recipe.rakuten.co.jp. Use 'large' depth when you only need the top-level menu (much smaller payload). Medium and small categories include parentCategoryId for tree assembly.

[JA] 楽天レシピのカテゴリ階層(43大カテゴリ→約540中カテゴリ→約1500小カテゴリ)を取得します。各カテゴリにID、名前、recipe.rakuten.co.jp のURLが付きます。トップレベルだけ必要な場合は 'large' を指定(ペイロード大幅小)。中・小には parentCategoryId が付与されます。

Inputs: level.

recipe_category_rankingGet Rakuten Recipe Category RankingA
Read-onlyIdempotent

Get the top recipes in a Rakuten Recipe category. Returns ranked recipes with title, ingredient list, cooking time (indication), cost estimate, image URLs, author nickname, and a direct URL to recipe.rakuten.co.jp. Use recipe_category_list to find category IDs.

[JA] 指定カテゴリの楽天レシピ人気ランキングを取得します。順位、タイトル、材料一覧、調理時間目安、費用目安、画像、投稿者ニックネーム、レシピURLを返します。カテゴリIDは recipe_category_list で取得。

Inputs: categoryId (required).

travel_get_area_classGet Rakuten Travel Area ClassificationA
Read-onlyIdempotent

Get the full Rakuten Travel area-code hierarchy: Japan → prefecture (middle) → city (small) → district (detail). Use the returned codes as largeClassCode/middleClassCode/etc. in the hotel search tools.

[JA] 楽天トラベルのエリアコード階層を取得します(日本→都道府県→市区町村→詳細)。返されたコードを largeClassCode/middleClassCode 等としてホテル検索ツールに渡してください。

Inputs: no named parameters.

travel_get_hotel_chain_listGet Rakuten Travel Hotel ChainsA
Read-onlyIdempotent

List all Rakuten Travel hotel chains (Marriott, APA, Hilton, Toyoko Inn, etc.) with their codes. Useful for filtering or grouping search results by chain.

[JA] 楽天トラベルに登録されている全ホテルチェーン(マリオット、APA、ヒルトン、東横INN等)とコードを返します。

Inputs: no named parameters.

travel_hotel_rankingGet Rakuten Travel Hotel RankingA
Read-onlyIdempotent

Get the top-ranked hotels on Rakuten Travel, overall or by ranking genre (onsen, ryokan, city, resort, businesshotel, pension, publichouse). Returns ranked hotels with rank, name, area, review stats, and information URLs.

[JA] 楽天トラベルのホテルランキングを取得します。'all'(総合)、または温泉/旅館/シティ/リゾート/ビジネス/ペンション/公共の宿でタイプ別に絞り込めます。順位、ホテル名、エリア、レビュー、URLを返します。

Inputs: genre.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 27 tools

    Disambiguation5/5

    Each tool targets a distinct service and resource-action combination (e.g., books_book_search vs books_cd_search, travel_simple_hotel_search vs travel_keyword_hotel_search). Overlaps like books_total_search vs category-specific searches and ichiba_item_search vs ichiba_product_search are explicitly differentiated in descriptions, leaving no real ambiguity.

    Naming Consistency4/5

    Names follow a consistent service_resource_action pattern in snake_case (books_, gora_, ichiba_, travel_, recipe_, kobo_). Minor deviation: two travel tools use a get_ verb prefix (travel_get_area_class, travel_get_hotel_chain_list) while others use trailing action nouns like _search, _detail, or _ranking.

    Tool Count4/5

    27 tools is above the typical 3–15 range, but the server aggregates six distinct Rakuten services (Books, Ichiba, Travel, Recipe, Kobo, GORA), each with multiple endpoints. Each tool maps to a unique operation, so the count is justified despite being slightly heavy.

    Completeness4/5

    Most services have thorough coverage: Books offers total and category-specific searches, Travel has multiple search modes plus detail/area/chain/ranking tools, and Ichiba includes search, genre, ranking, and price comparison. Notable gaps: Recipe only has category listing and ranking (no keyword or ingredient search), and Ichiba lacks a dedicated shop search tool.

    Maintenance

    ActivitySlowing
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Extract YouTube transcripts for AI agents, RAG pipelines, and LLM workflows. Supports any YouTube URL. Returns clean text or timestamped segments. No API keys required.
      1
      4
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A MCP server for Walmart Marketplace and Affiliate APIs, enabling sellers to manage items, inventory, prices, and orders, and consumers to search, lookup products, reviews, and store locations.
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      An MCP server for Rakuten Ichiba that enhances product search with quantity parsing, unit price calculation, and shipping cost analysis, enabling cost-effective bulk purchasing decisions.
      5
      1
      MIT