rms-mcp
rms-mcp
乐天 RMS API 的 MCP 服务器 — 销售仪表板 & 订单管理
功能
通过 Claude Code(或任何 MCP 客户端)获取乐天 RMS 数据:
工具 | 说明 |
| 每日销售汇总(件数、税费、优惠券、运费) |
| 商品排名(数量、销售额、平均单价) |
| 指定订单号获取完整详细 JSON |
| 取消率及件数 |
Related MCP server: shopdate MCP
设置
git clone https://github.com/yasuhidekoizumi-afk/rms-mcp.git
cd rms-mcp
uv sync认证
在 RMS 管理后台 → API 设置中获取 serviceSecret 和 licenseKey。
export RMS_SERVICE_SECRET="SP404839_xxxxxxxxxx"
export RMS_LICENSE_KEY="SL404839_xxxxxxxxxx"运行确认
RMS_SERVICE_SECRET="..." RMS_LICENSE_KEY="..." uv run python -c "
from rms_mcp.order_api import OrderAPI
from rms_mcp.client import RMSClient
c = RMSClient('SP...', 'SL...')
api = OrderAPI(c)
r = api.search_orders('2026-05-01T00:00:00+0900','2026-05-08T23:59:59+0900')
print(len(r.get('orderNumberList',[])), '件')
c.close()
"Claude Code 设置
.mcp.json:
{
"mcpServers": {
"rms-mcp": {
"command": "uv",
"args": ["run", "rms-mcp"],
"cwd": "/path/to/rms-mcp",
"env": {
"RMS_SERVICE_SECRET": "SP404839_xxx",
"RMS_LICENSE_KEY": "SL404839_xxx"
}
}
}
}快速参考
每日销售:
今天的乐天销售额是多少→rms_daily_sales商品排名:
本月的乐天 TOP10 是什么?→rms_product_ranking(top_n=10)取消率:
本月的取消率是多少?→rms_cancel_rate订单详情:
这个订单的详情→rms_order_detail(order_numbers=[...])
API 覆盖范围
[x] RakutenPayOrderAPI (searchOrder, getOrder)
[x] PurchaseItemAPI (searchOrderItem)
[ ] InventoryAPI
[ ] ProductAPI
[ ] CouponAPI
📖 部署手册
详细的部署步骤请参考 SETUP.md。
License
MIT — ORYZAE Inc.
Available Tools
4 toolsrms_cancel_rateC
Cancellation rate and counts
Inputs: start_date, end_date.
rms_daily_salesB
Daily sales summary (orders, revenue, tax, coupons, delivery)
Inputs: start_date, end_date.
rms_order_detailC
Full order detail by order number(s)
Inputs: order_numbers (required).
rms_product_rankingC
Product sales ranking by revenue (from PackageModelList)
Inputs: start_date, end_date, top_n.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool targets a distinct aspect of RMS data: cancellation rates, daily sales, order details, and product rankings. There is no overlap in functionality, making it easy for an agent to select the correct tool.
All tools follow a consistent pattern: 'rms_' prefix followed by a descriptive noun phrase using underscores (cancel_rate, daily_sales, order_detail, product_ranking). This predictability aids both human and agent understanding.
With 4 tools, this server is well-scoped for a focused analytics/reporting domain. Each tool serves a clear purpose without unnecessary bloat, and the count fits comfortably within the optimal range of 3-15 tools.
The tool set covers key reporting and analytics needs for an RMS: cancellation, sales summary, order details, and product ranking. Minor gaps exist, such as the absence of time-range filtering or trend comparisons, but the core query functionality is present.
Maintenance
Related MCP Connectors
Products, customers, orders, subscriptions, benefits, revenue metrics and refunds.
Read-only Amazon seller analytics: sales, Buy Box, FBA inventory, alerts, revenue and fees.
Read your Cakto sales: orders, revenue analytics, subscriptions, churn, customers and products.
Read-only access to your OptimalCentral listing audits, keyword ranks and search visibility.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables searching and retrieving information from Rakuten services (Ichiba, Books, Travel, Recipe, Kobo, GORA) via the new API endpoints with secure authentication.1MIT
- AlicenseNot gradedqualityBmaintenanceProvides read-only access to JD Shop Intelligence, Business Advisor, and Wanxiangtai data through a local Chrome bridge, enabling AI assistants to query authorized stores’ operations, products, inventory, transactions, refunds, and advertising reports.5MIT
- AlicenseNot gradedqualityCmaintenanceEnables read-only retrieval of Taobao/Tmall seller analytics from 生意参谋, free market insights, and Qianniu order/product data through a logged-in Ziniao store browser, without Open Platform keys.73 npmMIT
- AlicenseAqualityBmaintenanceEnables MCP clients to read and manage online shop data, including orders, products, customers, and sales reports, plus opt-in order status, notes, and refunds recorded without moving money.2Functional Source , Version 1.1, ALv2 Future