Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Real-time LLM/VLM benchmarks, pricing, and recommendations. 300+ models, 5 sources.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"llm-advisor": {
"command": "npx",
"args": [
"-y",
"llm-advisor-mcp"
]
}
}
}在终端中运行这条命令
claude mcp add llm-advisor -- npx -y llm-advisor-mcp粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"llm-advisor": {
"command": "npx",
"args": [
"-y",
"llm-advisor-mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"llm-advisor": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"llm-advisor-mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 Daichi-Kudo 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.4.5)于5个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Context7, Codebase Memory, Exa
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
English | 日本語
Give your AI assistant real-time LLM/VLM knowledge. Pricing, benchmarks, and recommendations — updated every hour, not every training cycle.
LLMs have knowledge cutoffs. Ask Claude "what's the best coding model right now?" and it cannot answer with current data. This MCP server fixes that by feeding live model intelligence directly into your AI assistant's context window.
list_top_models with category codingcompare_models with side-by-side tablerecommend_model with budget constraintsget_model_info with percentile ranksclaude mcp add llm-advisor -- npx -y llm-advisor-mcp
claude mcp add llm-advisor -- cmd /c npx -y llm-advisor-mcp
Add to your MCP configuration file:
{
"mcpServers": { "llm-advisor": { "command": "npx", "args": ["-y", "llm-advisor-mcp"] } } }
That is it. No API keys, no .env files.
| Client | Supported | Install Method |
|---|---|---|
| Claude Code | Yes | claude mcp add |
| Claude Desktop | Yes | JSON config |
| Cursor | Yes | JSON config |
| Windsurf | Yes | JSON config |
| Any MCP client | Yes | stdio transport |
get_model_infoDetailed specs for a specific model: pricing, benchmarks, percentile ranks, capabilities, and a ready-to-use API code example.
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | Yes | — | Model ID or partial name (e.g. "claude-sonnet-4", "gpt-5") |
include_api_example | boolean | No | true | Include a ready-to-use code snippet |
api_format | enum | No | openai_sdk | openai_sdk, curl, or python_requests |
Example output
## anthropic/claude-sonnet-4
Provider: anthropic | Modality: text+image→text | Released: 2025-06-25
| Metric | Value |
|---|---|
| Input | $3.00 /1M tok |
| Output | $15.00 /1M tok |
| Cache Read | $0.30 /1M tok |
| Context | 200K |
| Max Output | 64K |
| Benchmark | Score |
|---|---|
| SWE-bench Verified | 76.8% |
| Aider Polyglot | 72.1% |
| Arena Elo | 1467 |
| MMMU | 76.0% |
| Category | Percentile |
|---|---|
| Coding | P96 |
| General | P95 |
| Vision | P90 |
Capabilities: Tools, Reasoning, Vision
from openai import OpenAI
client = OpenAI( base_url="https://openrouter.ai/api/v1", api_key=" ", ) response = client.chat.completions.create( model="anthropic/claude-sonnet-4", messages=[{"role": "user", "content": "Hello"}], )
```
list_top_modelsTop-ranked models for a category. Includes release dates for freshness awareness.
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
category | enum | Yes | — | coding, math, vision, general, cost-effective, open-source, speed, context-window, reasoning |
limit | number | No | 10 | Number of results (1-20) |
min_context | number | No | — | Minimum context window in tokens |
min_release_date | string | No | — | YYYY-MM-DD. Excludes models released before this date |
Example output
## Top 5: coding
| # | Model | Key Score | Input $/1M | Output $/1M | Context | Released |
|---|---|---|---|---|---|---|
| 1 | openai/o3-pro | SWE 79.5% | $20.00 | $80.00 | 200K | 2025-06-10 |
| 2 | anthropic/claude-sonnet-4 | SWE 76.8% | $3.00 | $15.00 | 200K | 2025-06-25 |
| 3 | google/gemini-2.5-pro | SWE 75.2% | $1.25 | $10.00 | 1M | 2025-03-25 |
| 4 | openai/o4-mini | SWE 73.6% | $1.10 | $4.40 | 200K | 2025-04-16 |
| 5 | anthropic/claude-opus-4 | SWE 72.5% | $15.00 | $75.00 | 200K | 2025-05-22 |
compare_modelsSide-by-side comparison for 2-5 models. Best values are bolded automatically. Includes a Released row so you can spot outdated models at a glance.
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
models | string[] | Yes | — | 2-5 model IDs or partial names |
Example output
## Model Comparison (3 models)
| anthropic/claude-sonnet-4 | openai/gpt-4.1 | google/gemini-2.5-pro | |
|---|---|---|---|
| Input $/1M | $3.00 | $2.00 | $1.25 |
| Output $/1M | $15.00 | $8.00 | $5.00 |
| Context | 200K | 1M | 1M |
| Max Output | 64K | 32K | 65K |
| SWE-bench | 76.8% | 55.0% | 75.2% |
| Aider Polyglot | 72.1% | 65.3% | 71.8% |
| Arena Elo | 1467 | 1492 | 1445 |
| Vision | Yes | Yes | Yes |
| Tools | Yes | Yes | Yes |
| Reasoning | Yes | No | Yes |
| Open Source | No | No | No |
| Released | 2025-06-25 | 2025-04-14 | 2025-03-25 |
recommend_modelPersonalized top-3 recommendations. Scores combine weighted benchmarks, pricing, capability bonuses, and a freshness bonus (+3 points for models released within 3 months, +1 within 6 months).
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
use_case | enum | Yes | — | coding, math, general, vision, creative, reasoning, cost-effective |
max_input_price | number | No | — | Max input price (USD/1M tokens) |
max_output_price | number | No | — | Max output price (USD/1M tokens) |
min_context | number | No | — | Minimum context window in tokens |
require_vision | boolean | No | — | Require image input support |
require_tools | boolean | No | — | Require tool/function calling support |
require_open_source | boolean | No | — | Require open-source license |
min_release_date | string | No | — | YYYY-MM-DD. Excludes older models |
Example output
## Recommended for: coding
Input: $3.00/1M | Output: $15.00/1M | Context: 200K | Released: 2025-06-25 Benchmarks: SWE-bench: 76.8%, Aider: 72.1%, Arena: 1467 Strengths: reasoning, tools, vision
Input: $0.15/1M | Output: $0.60/1M | Context: 1M | Released: 2025-05-20 Benchmarks: SWE-bench: 62.9%, Arena: 1445 Strengths: tools, vision, 1M+ context
Input: $1.10/1M | Output: $4.40/1M | Context: 200K | Released: 2025-04-16 Benchmarks: SWE-bench: 73.6%, Arena: 1430 Strengths: reasoning, tools
All data is fetched in real time from free, public APIs. No authentication required.
| Source | Data | Models | Cache TTL |
|---|---|---|---|
| OpenRouter | Pricing, context lengths, modalities, release dates | 300+ | 1 hour |
| SWE-bench | Coding benchmark (Verified leaderboard) | 30+ | 6 hours |
| LM Arena | Human preference Elo ratings | 314+ | 6 hours |
| OpenCompass VLM | Vision benchmarks: MMMU, MMBench, OCRBench, AI2D, MathVista | 284+ | 6 hours |
| Aider Polyglot | Multi-language coding pass rate | 63+ | 6 hours |
MCP tool definitions and responses consume your LLM's context window. This server is designed to be lean:
| Component | Tokens |
|---|---|
| All 4 tool definitions | ~1,000 |
| Typical tool response | ~250-400 |
For comparison, most MCP servers that return raw JSON consume 3,000-10,000 tokens per response. Every response from llm-advisor-mcp is pre-formatted Markdown, keeping context costs roughly 10x lower.
┌──────────────────────────────────────────────┐
│ MCP Client (Claude, etc.) │ └──────────┬───────────────────────────────────┘ │ stdio (JSON-RPC) ┌──────────▼───────────────────────────────────┐ │ llm-advisor-mcp server │ │ │ │ ┌─────────┐ ┌───────────┐ ┌────────────┐ │ │ │ Tools │ │ Registry │ │ Cache │ │ │ │ (4 tools)│──│ (unified) │──│ (in-memory)│ │ │ └─────────┘ └───────────┘ └────────────┘ │ │ │ │ │ ┌────────────┼────────────┐ │ │ ▼ ▼ ▼ │ │ ┌──────────┐ ┌──────────┐ ┌──────────┐ │ │ │Normalizer│ │Percentile│ │ Fetchers │ │ │ │(slug map)│ │ (5 cats) │ │(5 sources│ │ │ └──────────┘ └──────────┘ └──────────┘ │ └──────────────────────────────────────────────┘ │ │ │ OpenRouter SWE-bench Arena / VLM / Aider
tsup buildClaude 3.5 Sonnet vs anthropic/claude-3.5-sonnet) to canonical IDs@modelcontextprotocol/sdk and zod| Version | Status | Highlights |
|---|---|---|
| v0.1 | Done | get_model_info + list_top_models via OpenRouter |
| v0.2 | Done | compare_models + recommend_model + SWE-bench + Arena Elo |
| v0.3 | Done | VLM benchmarks (MMMU, MMBench, OCRBench, AI2D, MathVista) + Aider Polyglot + percentile ranks + 43 tests |
| v0.4 | Current | Release date display, date-based filtering, freshness scoring in recommendations + 51 tests |
| v1.0 | Planned | Community contributions, weekly static data snapshots via GitHub Actions |
git clone https://github.com/Daichi-Kudo/llm-advisor-mcp.git
cd llm-advisor-mcp npm install npm run build # Build with tsup npm run dev # Run with tsx (hot reload) npm test # Run 51 unit tests (vitest) npm run test:watch # Watch mode
src/
index.ts # Server entry point types.ts # Shared type definitions tools/ model-info.ts # get_model_info tool list-top.ts # list_top_models tool compare.ts # compare_mo
只显示了开头部分;其余内容请在仓库中阅读