openrouter-free-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@openrouter-free-mcpask a free model to translate 'good morning' into Japanese"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
openrouter-free-mcp
零依赖的 MCP(Model Context Protocol)server,通过 OpenRouter 的 openrouter/free 自动路由调用免费大模型,请求自动分发到当前可用的免费模型(Gemma、DeepSeek、Llama、Qwen 等),自动避开单一模型的限流。
特性
零依赖:仅使用 Node.js 内置模块,无需
npm install自动路由:
openrouter/free自动选择当前可用的免费模型,天然缓解限流重试兜底:429 限流自动重试 3 次(间隔递增)
reasoning 兼容:自动处理推理模型的
reasoning字段兜底响应标注实际模型:返回结果前缀显示实际路由到的模型,便于追踪
Related MCP server: freellmpool
前置要求
Node.js >= 16
一个 OpenRouter 的 API key(免费注册)
安装与配置
无需安装,直接在你的 MCP 客户端配置中添加。以 Trae(~/Library/Application Support/Trae CN/User/mcp.json)为例:
{
"mcpServers": {
"openrouter-free": {
"command": "npx",
"args": ["-y", "openrouter-free-mcp"],
"env": {
"OPENROUTER_KEY": "sk-or-v1-你的key"
}
}
}
}Claude Desktop(claude_desktop_config.json)、Cursor 等其他客户端同理,把上面这段放进 mcpServers 即可。
⚠️ API key 通过环境变量注入,本工具不会读取或存储你的密钥文件。
工具
ask_free_model
参数 | 类型 | 必填 | 说明 |
| string | ✅ | 发送给模型的提示词/问题 |
| string | ❌ | 可选的系统提示词 |
| number | ❌ | 最大生成 token 数,默认 2048(建议 ≥2000,推理模型会消耗额外 token) |
响应格式:[实际模型名]\n\n回答内容
适用场景
批量文本处理(翻译、摘要、清洗)
第二意见(让另一个模型 review 代码/方案)
轻量生成任务(标题、标签、格式转换)
注意:免费模型池有速率限制,不适合高频调用或长上下文任务。
License
MIT
Related MCP Connectors
Machine-native tools for autonomous agents with free routing and x402 USDC pay-per-call.
The OpenRouter for tools. One MCP connection gives any AI agent 254 hosted tools, pay per call.
API Tool Calls: Home cost planners, proofreading, QR and barcodes, page to Markdown, SEO checks and recalls. Free agent tools: 20 calls/day per IP, no key.
The OpenRouter MCP server plugs OpenRouter into the AI tools you already use. Once connected, your assistant can pull live OpenRouter data (models, prices, your credits, rankings, and docs) and send quick test messages, all without leaving your editor.
Related MCP Servers
- FlicenseNot gradedqualityAmaintenanceEnables MCP clients to discover and use pooled free LLM chat routes and models across multiple providers through an OpenAI-compatible gateway, with automatic failover and keyless operation when available. It supports routing for coding agents and other tools without requiring separate provider integrations.-
- FlicenseNot gradedqualityAmaintenanceExposes a pooled gateway of free, enabled LLM chat routes and models across many providers through one OpenAI-compatible endpoint, automatically routing around rate limits and outages and letting sessions start without API keys when a keyless provider is available. Supports model listing and status queries so coding agents and OpenAI-compatible tools can use free tiers without individual provider setup.-
- FlicenseNot gradedqualityAmaintenanceEnables agents to discover and route chat requests across a pool of 178 enabled free LLM routes and 443 cataloged models through one OpenAI-compatible endpoint, with automatic failover, per-day usage tracking, and provider health/status tooling. It can start keyless when an enabled keyless provider is available, and exposes model listing and routing modes for coding agents.-
- FlicenseNot gradedqualityAmaintenanceEnables access to pooled free LLM providers through aggregated OpenAI-compatible routes, offering model discovery and status tools for coding agents and compatible clients. It routes requests across providers with failover and can start without credentials when a keyless route is available.-