Robot Resources Router
Official@robot-resources/router-mcp
⚠️ 已弃用 — npm 包不再发布。 Router MCP 服务器已被
@robot-resources/router中内置的 Router 插件所取代。非 OpenClaw 代理的独立 Router MCP 已在路线图中。如需使用当前的 Router,请使用 OpenClaw 插件 (npx robot-resources)、JS 库、Python SDK (pip install robot-resources) 或 HTTP APIhttps://api.robotresources.ai/v1/route。请参阅 robotresources.ai/docs。
用于管理 Robot Resources Router 的 MCP 服务器 — 提供统计、配置和模型比较功能。
什么是 Robot Resources?
人力资源,但针对的是你的 AI 代理。
Robot Resources 可将你的 LLM API 成本降低 60-90%。它运行一个本地代理,根据任务类型(编码、推理、分析、简单问答、创意、通用)对每个提示词进行分类,并将其路由到能够处理该任务的最便宜模型 — 涵盖来自 OpenAI、Anthropic 和 Google 的 14 种模型。
你的 API 密钥永远不会离开你的机器。免费、无限制、无分级。
安装完整套件
npx robot-resources一条命令即可设置 Router 代理、配置你的代理并立即开始节省成本。
在 robotresources.ai 了解更多信息
Related MCP server: whichmodel-mcp
关于此 MCP 服务器
此包通过 Model Context Protocol 为 AI 代理提供 Router 代理的管理工具。你可以使用它来查看成本节省情况、比较模型并调整路由配置 — 所有操作均可在 Claude Desktop、Claude Code 或任何兼容 MCP 的代理中完成。
快速入门
npx @robot-resources/router-mcp需要 Router 代理运行在 localhost:3838(默认)。可通过 ROUTER_URL 环境变量进行覆盖。
配置
Claude Desktop
添加到你的 claude_desktop_config.json:
{
"mcpServers": {
"router": {
"command": "npx",
"args": ["-y", "@robot-resources/router-mcp"]
}
}
}Claude Code
添加到你的 .mcp.json:
{
"mcpServers": {
"router": {
"command": "npx",
"args": ["-y", "@robot-resources/router-mcp"]
}
}
}自定义 Router URL
如果代理运行在非默认端口:
{
"mcpServers": {
"router": {
"command": "npx",
"args": ["-y", "@robot-resources/router-mcp"],
"env": {
"ROUTER_URL": "http://localhost:4000"
}
}
}
}工具
router_get_stats
Router 代理的成本节省统计信息。
参数 | 类型 | 默认值 | 描述 | ||
| `"daily" | "weekly" | "monthly"` |
| 时间周期 |
|
| — | 按任务类型过滤 | ||
|
| — | 按提供商过滤 |
router_compare_models
根据给定任务类型的能力和成本比较模型。
参数 | 类型 | 默认值 | 描述 |
|
| 必填 | 要比较的任务类型 |
|
|
| 最低能力评分 |
|
| — | 按提供商过滤 |
router_get_config
读取当前的路由配置(提供商范围、阈值、覆盖项)。
无需参数。
router_set_config
在运行时更新路由配置。更改仅在内存中生效(重启后重置)。
参数 | 类型 | 描述 |
|
| 限制为特定的提供商 |
|
| 最低能力评分 |
|
| 用于成本比较的模型 |
|
| 日志级别 |
传入 null 可将任何字段重置为环境变量的默认值。
要求
Node.js >= 18.0.0
Router 代理 正在运行(请参阅 @robot-resources/router)
许可证
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Related MCP Connectors
Hosted MCP server for LLM cost estimation, model comparison, and budget-aware routing.
LLM cost optimization gateway, repo token-waste auditor & model arbitrage MCP server.
One API key for every AI model, routed to the cheapest provider. OpenAI-compatible.
AI model routing on your own vendor keys: pick the best model per prompt, or route and run it.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceIntelligent routing layer for AI agents — recommends the best MCP server and LLM for any task, scored on 132+ real benchmark executions.2MIT
- AlicenseNot gradedqualityDmaintenanceA model routing advisor for autonomous agents — get cost-optimised LLM recommendations via MCP.8 npmMIT
- AlicenseAqualityDmaintenanceSecurity, cost, and health governance proxy for MCP infrastructure. Enforces YAML-configurable security policies (blocklists, rate limits, token budgets), tracks real token costs via tiktoken, monitors server health with live JSON-RPC probes. Features OAuth 2.1/OIDC with RBAC, web dashboard, payload normalization, semantic shell AST analysis, mTLS, and a formal STRIDE threat model.4292 npm4MIT
- FlicenseNot gradedqualityDmaintenanceUnified local MCP AI Gateway that routes across Groq, OpenRouter, Mistral, and local Ollama providers, with OpenAI-compatible APIs, MCP tools, fallback/racing router, monitoring, and web dashboard.-