Skip to main content
Glama
robot-resources

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 API https://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 代理的成本节省统计信息。

参数

类型

默认值

描述

period

`"daily"

"weekly"

"monthly"`

"weekly"

时间周期

task_type

string

—

按任务类型过滤

provider

string

—

按提供商过滤

router_compare_models

根据给定任务类型的能力和成本比较模型。

参数

类型

默认值

描述

task_type

string

必填

要比较的任务类型

threshold

number

0.7

最低能力评分

provider

string

—

按提供商过滤

router_get_config

读取当前的路由配置(提供商范围、阈值、覆盖项)。

无需参数。

router_set_config

在运行时更新路由配置。更改仅在内存中生效(重启后重置)。

参数

类型

描述

provider_scope

string

限制为特定的提供商

capability_threshold

number

最低能力评分

baseline_model

string

用于成本比较的模型

log_level

string

日志级别

传入 null 可将任何字段重置为环境变量的默认值。

要求

许可证

MIT

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    B
    maintenance
    Security, 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.
    4
    76 npm
    3
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    Unified 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.
    -