FreeModel MCP

FreeModel MCP

Routes tasks to the optimal AI model based on task type and benchmark scores across 25+ platforms. Automatically selects the best model for coding, reasoning, writing, and more using public benchmark data.

Category
访问服务器

README

FreeModel MCP

Stop paying Claude prices for every task. Route coding to DeepSeek, reasoning to Qwen, writing to Gemini — automatically. One API key, 25+ platforms, the right model every time.

npx freemodel-mcp

FreeModel is a model router for Claude Code. It looks at what you're doing — writing code, analyzing data, translating text — and picks the best model for that specific task. Not just the cheapest. Not just the most popular. The one that actually scores highest on the relevant benchmarks.


Why this exists

Every model router does the same thing: "route cheap prompts to cheap models." They classify by complexity (simple → Haiku, complex → Opus) and call it a day.

FreeModel answers a different question: which model actually performs well on this type of task?

Other routers:                FreeModel:
"How hard is this?"           "What kind of task is this?"
         ↓                              ↓
  simple / medium / hard        coding / reasoning / writing
         ↓                              ↓
  pick cheaper model            pick model that scores highest
  at same complexity            on this task type's benchmarks

The difference is data. FreeModel scores every model across six dimensions (Code, Knowledge, Math, Instruction, Safety, Efficiency) using 18 public benchmarks — LiveCodeBench, MMLU-Pro, MATH-500, IFEval, SimpleQA, and more. The scores are public at model.leyijian.com/classification.html.


vs. the alternatives

mcp-multi-model claude-code-llm-router llm-routing FreeModel
Routing logic keyword match in yaml complexity regression confidence score 6-dim benchmark scores
Task types none simple/medium/hard none coding, reasoning, writing, chat, creative, multimodal
Model catalog 12 platforms, manual config 20 platforms, auto-detect 20 platforms 25 platforms, 982 models
Why this model? "you configured it" "complexity match" "confidence score" "scores 92 on coding benchmarks"
Tier system no no no L1–L5, public rubric
Subscription routing no no no yes, auto-prioritizes paid subs
Pricing static yaml static static live API prices
Data transparency N/A N/A N/A public classification page

How it works

Tier system (L1–L5)

Every model gets a tier based on six-dimension benchmark scores — not marketing copy, not vibes.

Tier Label Threshold Example
L1 Specialist single-dim excellence DeepSeek-R1 (Reasoning 95)
L2 Professional ≥70 composite Claude Opus 4, GPT-5
L3 Competent ≥55 composite Qwen3-Max, DeepSeek-V4
L4 Capable ≥35 composite GLM-4-Flash, ERNIE-Speed
L5 Basic <35 composite Small/fast models

Task auto-detection

6 task types detected from the user's prompt before routing:

  • coding — 写代码、debug、爬虫、API、build、修复
  • reasoning — 分析、数学、架构、安全审计、规划
  • writing — 翻译、写作、总结、报告、文档
  • creative — 头脑风暴、命名、设计、营销
  • chat — 问答、推荐、对比、讨论 (default)
  • multimodal — 图片、OCR、视频

Task type → filter to models that score well on relevant benchmarks → pick best price/performance.

Scoring dimensions

Code ────────── LiveCodeBench, SWE-bench, HumanEval
Knowledge ───── MMLU-Pro, GPQA Diamond
Math ────────── MATH-500, AIME 2024
Instruction ─── IFEval, MT-Bench
Safety ──────── SimpleQA, TruthfulQA
Efficiency ──── speed, throughput, cost

18 data sources, 6 dimensions, all public.


Quick start

Option 1: npx (recommended)

Add to ~/.claude/mcp.json:

{
  "mcpServers": {
    "freemodel": {
      "command": "npx",
      "args": ["-y", "freemodel-mcp"],
      "env": {
        "FREEMODEL_KEY": "sk-your-key"
      }
    }
  }
}

Get a key at model.leyijian.com → Settings → API Keys.

Option 2: git clone

git clone https://github.com/yummy342/freemodel-mcp.git
cd freemodel-mcp && npm install
{
  "mcpServers": {
    "freemodel": {
      "command": "node",
      "args": ["/path/to/freemodel-mcp/server.js"],
      "env": {
        "FREEMODEL_KEY": "sk-your-key"
      }
    }
  }
}

MCP Tools

Tool What it does
freemodel_key_health Subscription status, platform health, recommended model
freemodel_status Session summary: active model, healthy count
freemodel_models List your available platforms and models
freemodel_recommend Describe a task → get 2-3 model picks with reasons
freemodel_run Execute on a specific model (platform + model name)

With the skill (recommended)

Install the Claude Code skill for full auto-routing:

  1. Copy skill.md to ~/.claude/skills/freemodel/skill.md
  2. Claude Code auto-loads it on startup
  3. Every task is auto-classified → routed to the best model → executed

The skill adds: subscription priority routing, platform health sorting, quota exhaustion prevention, task-type auto-detection, and model fallback chains.


What you need

  1. A FreeModel API key (get one here)
  2. Add platform keys in the dashboard (DeepSeek, Alibaba, etc.)
  3. Node.js ≥ 18

That's it. No API keys in config files — everything lives in your FreeModel account, encrypted.


Privacy

This is a local relay. Prompts go from your machine → FreeModel API → target platform. No telemetry, no analytics. Your platform API keys stay encrypted in your FreeModel account.


The data

All tier scores, benchmark results, and data sources are public:

model.leyijian.com/classification.html


License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选