Routara LLM Gateway

io.github.36412749-collab由 GitHub 账号 36412749-collab 发布v1.0.1更新于 Oct 24, 2026

OpenAI-compatible LLM, image and video APIs via Routara (api.routara.ai).

已验证STDIO仅桌面媒体与设计AI 与机器学习

概览

AI 生成的概览

Routara 官方 MCP 服务器,让助手浏览 Routara 模型目录,并通过其 OpenAI 兼容 API 进行对话、图像和视频生成。

可以做什么
  • 搜索并分页浏览实时模型目录
  • 进行单轮或多轮对话(含工具调用),返回完整的 OpenAI 兼容响应
  • 根据文本或参考图生成图像
  • 提交文生视频、图生视频任务并轮询任务状态
适用场景
适合希望让 Cursor、Claude Desktop、Codex、Windsurf、VS Code 等 MCP 客户端用一个 API 密钥直接调用 Routara 托管的对话、图像和视频模型,而不必自行对接 API 的场景。
运行要求
通过 npx 从 npm 包 routara-mcp 本地运行(需 Node.js)。调用工具需要 ROUTARA_API_KEY 中的 Routara API 密钥,握手阶段无需密钥。可选 ROUTARA_API_BASE 与 ROUTARA_API_TIMEOUT_MS。需能访问 api.routara.ai。
安装前请注意
API 密钥是可计费凭据:不要写入提交的配置,泄露后应立即在 Routara 控制台吊销。工具调用会消耗 Routara 账户额度并产生费用,且不替代宿主应用自身的模型订阅或计费。视频生成是异步任务,需要轮询。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Routara LLM Gateway,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Routara MCP Server

[npm version] [MCP Registry] [License: MIT]

Official Model Context Protocol server for Routara. Use Routara chat, image, and video models from Cursor, Claude Desktop, Codex, Windsurf, VS Code, and other MCP clients.

Practical walkthroughs: Python SDK · Node.js SDK · Cursor MCP · Claude Desktop MCP

Install

bash
npx -y routara-mcp

Or install the one-click routara-mcp.mcpb bundle from the latest GitHub release.

Tools

ToolDescription
routara_list_modelsSearch and paginate the live model catalog
routara_chatSingle-turn or multi-turn chat, including tool calls
routara_generate_imageText-to-image and reference-image generation
routara_generate_videoText-to-video and image-to-video submission
routara_get_video_statusPoll an asynchronous video task

MCP client configuration

json
{  "mcpServers": {    "routara": {      "command": "npx",      "args": ["-y", "routara-mcp"],      "env": {        "ROUTARA_API_KEY": "sk-or-v1-YOUR_KEY_HERE"      }    }  }}

OpenAI Codex

toml
[mcp_servers.routara]command = "npx"args = ["-y", "routara-mcp"]enabled = true
[mcp_servers.routara.env]ROUTARA_API_KEY = "sk-or-v1-YOUR_KEY_HERE"

After adding the config, restart your MCP client and ask it to list Routara models. Then ask it to use routara_chat with a model available to your account. The MCP connection exposes tools; it does not replace the host application's own model subscription or billing.

Environment

VariableRequiredDefault
ROUTARA_API_KEYYes for tool callsNone
ROUTARA_API_BASENohttps://api.routara.ai/v1
ROUTARA_API_TIMEOUT_MSNo30000

The process can start and complete the MCP handshake without an API key. A key is resolved only when a Routara tool is invoked, which lets directories validate the server safely.

Reliability and compatibility

  • Requests time out instead of hanging indefinitely.
  • Transient network errors, HTTP 429, and HTTP 5xx responses are retried with bounded backoff.
  • API errors include the upstream request ID and retry delay when available.
  • routara_chat returns the complete OpenAI-compatible response, preserving reasoning content and tool calls.
  • Media parameters are forwarded only when explicitly supplied; model-specific support varies.

Development

bash
npm cinpm run buildnpm testnpm run validate:registrynpm run build:mcpb

For a live API smoke test:

bash
ROUTARA_API_KEY=sk-or-v1-... npm run test:live

Directory listings

Security

Do not commit API keys. If a key is exposed, revoke it in the Routara dashboard immediately. Please report security issues privately to [email protected].

License

MIT

来源:README.md,提交 9cf6b13

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分