
OpenRouter
io.github.tsilva由 GitHub 账号 tsilva 发布v1.1.8更新于 Oct 24, 2026
MCP server providing access to 300+ AI models via OpenRouter
发布方自己的服务:370.ai — AI Gateway: 100+ Chat Models, Image & Speech Generation
概览
一个本地 MCP 服务器,让助手通过 OpenRouter 调用 300 多个 AI 模型,用于对话、图像生成、嵌入和模型查找。
- 可以做什么
- 向 OpenRouter 对话模型发送提示或消息列表,并在助手会话中取回回复。根据提示生成一张图像,可选保存到你指定的绝对本地路径。为单个字符串或字符串列表生成嵌入向量。列出可用模型,可按视觉、图像生成、嵌入、工具调用或长上下文等能力筛选。搜索模型名称和标识,最多返回 20 个匹配项。
- 适用场景
- 适合希望在一个助手会话中通过单一 OpenRouter 账户访问多家模型提供方的场景,例如比较模型、生成图像或生成嵌入,而无需分别安装各家集成。
- 运行要求
- 以 Python 包形式通过 stdio 在本地运行(需 Python 3.10 及以上),通常用 uvx 启动。需要 OpenRouter 账户,并且所有工具调用都需要 OPENROUTER_API_KEY 环境变量。可选的 DEFAULT_TEXT_MODEL、DEFAULT_IMAGE_MODEL 和 DEFAULT_EMBEDDING_MODEL 变量用于提供默认模型。需要访问 OpenRouter 的网络连接。
安装
在 SourceWeft 中
- 打开 控制台中的 OpenRouter,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
[mcp-openrouter]
🚀 One MCP server for OpenRouter models 🚀
mcp-openrouter is a Python MCP server that lets Codex, Claude Code, opencode, and other MCP hosts call OpenRouter models from local stdio tools.
It exposes chat, image generation, embeddings, model listing, and model search through a small FastMCP server with retry handling, host-aware installation, and optional default model environment variables.
Install
Install the published server into every detected MCP client:
Install into selected clients:
Run from a local checkout:
mcp-openrouter with no arguments starts the stdio server. The explicit command is uv run mcp-openrouter serve.
Commands
Tools
Example MCP prompts:
Configuration
OPENROUTER_API_KEY is required for all tool calls. For a local checkout, its .keyenv.toml maps the variable to macOS Keychain: use keyenv set OPENROUTER_API_KEY to replace it, keyenv doctor to verify it, and keyenv run -- ... to launch the server or live tests. Python still reads the value normally from os.environ.
Optional defaults make the model parameter optional for matching tools:
The current tools read DEFAULT_TEXT_MODEL, DEFAULT_IMAGE_MODEL, and DEFAULT_EMBEDDING_MODEL. DEFAULT_CODE_MODEL and DEFAULT_VISION_MODEL are available for client conventions. Non-secret defaults may remain in .env; the API key must not.
Notes
- Python 3.10+ is required.
- The published runtime command installed into hosts is
uvx mcp-openrouter. - Supported installer targets are Codex, Claude Code, and opencode.
generate_image.output_pathmust be absolute, for example/Users/you/output.png.- Unit tests mock network calls.
tests/test_tools.pyrequires a liveOPENROUTER_API_KEY. - After changing server code, restart the MCP host so it launches a fresh server process.
- Keep
server.json,CHANGELOG.md, and the package version in sync before release. The Makefile release helper ismake release-x.y.z.
Local MCP Development
Register a local checkout when you want an MCP host to run your working tree instead of the published PyPI package.
Claude Code:
Codex:
opencode:
Architecture
[mcp-openrouter architecture diagram]
License
来源:README.md,提交 9dbab24
工具
0版本历史
1- v1.1.8最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
其他 Router 集成
370.ai — AI Gateway: 100+ Chat Models, Image & Speech Generation
ai.router官方发布者
远程 AI 网关 MCP 服务器,让助手用一个 370.ai API 密钥调用 100 多个聊天模型、生成图片并把文字转为语音。

AI Media Router
由 GitHub 账号 jutsuhq 发布
本地 MCP 服务器,用你自己的 API 密钥通过 40 多家供应商生成图片和视频,支持比价和可搜索的本地素材库。

Bike Router
由 GitHub 账号 JonasHeinickeBio 发布
连接自建 pyBikeRouter API 的 MCP 服务器,可规划基于 OSM 的骑行路线,并附带天气、景点与 GeoJSON/GPX 导出。

Uniswap Universal Router Decoder
由 GitHub 账号 Elnaril 发布
本地 MCP 服务器,用于解码和编码 Uniswap Universal Router 的 V2、V3、V4 调用数据,只读,不签名也不发送交易。

x402 Router
由 GitHub 账号 camerxnduff 发布
只读 MCP 服务器,可搜索经探测的 x402 按次付费端点注册表,并为助手路由到评分最高的端点。