Llm Advisor

io.github.Daichi-Kudo由 GitHub 账号 Daichi-Kudo 发布v0.4.5更新于 Oct 24, 2026

Real-time LLM/VLM benchmarks, pricing, and recommendations. 300+ models, 5 sources.

已验证STDIO仅桌面数据与分析AI 与机器学习

概览

AI 生成的概览

让助手通过四个只读工具,从五个公开来源获取 300 多个 LLM/VLM 模型的实时价格、基准测试与推荐数据。

可以做什么
  • 查询单个模型的价格、基准成绩、百分位排名、能力与 API 代码示例
  • 按类别列出排名靠前的模型,可按上下文长度和发布日期筛选
  • 将 2 至 5 个模型在价格、上下文、基准与功能上并排比较
  • 按使用场景给出评分前三的推荐,可限制预算、上下文、视觉、工具调用或开源
适用场景
适合让助手回答当前模型选型、价格或基准排名类问题,而不受其训练截止时间限制,例如挑选编程模型或比较 Claude、GPT 与 Gemini。
运行要求
以 stdio 方式在本机运行,通过 npx 从 npm 包 llm-advisor-mcp 安装,需要 Node.js。无需 API 密钥、账号或环境变量;数据取自免费公开来源,因此需要网络访问。
安装前请注意
仅做只读查询,不会代你写入或发送数据。模型数据、价格与基准分数来自第三方公开来源,缓存 1 至 6 小时,可能滞后或不完整。生成的 API 示例中引用一个 OpenRouter API 密钥占位符,需由你自行提供。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

llm-advisor-mcp

[npm version] [npm downloads] [CI] [License: MIT] [Node.js >= 18] [TypeScript]

[Glama MCP server]

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.

  • Zero config — No API keys, no registration. One command to install.
  • Low token — Compact Markdown tables (~300 tokens), not raw JSON (~3,000 tokens). Your context window matters.
  • 5 benchmark sources — SWE-bench, LM Arena Elo, OpenCompass VLM, Aider Polyglot, and OpenRouter pricing merged into one unified view.

Use Cases

  • "What's the best coding model right now?" — list_top_models with category coding
  • "Compare Claude vs GPT vs Gemini" — compare_models with side-by-side table
  • "Find a cheap model with 1M context" — recommend_model with budget constraints
  • "What benchmarks does model X have?" — get_model_info with percentile ranks

Quick Start

Claude Code

bash
claude mcp add llm-advisor -- npx -y llm-advisor-mcp

Claude Code (Windows)

bash
claude mcp add llm-advisor -- cmd /c npx -y llm-advisor-mcp

Claude Desktop / Cursor / Windsurf

Add to your MCP configuration file:

json
{  "mcpServers": {    "llm-advisor": {      "command": "npx",      "args": ["-y", "llm-advisor-mcp"]    }  }}

That is it. No API keys, no .env files.

Compatible Clients

ClientSupportedInstall Method
Claude CodeYesclaude mcp add
Claude DesktopYesJSON config
CursorYesJSON config
WindsurfYesJSON config
Any MCP clientYesstdio transport

Tools

get_model_info

Detailed specs for a specific model: pricing, benchmarks, percentile ranks, capabilities, and a ready-to-use API code example.

Parameters

NameTypeRequiredDefaultDescription
modelstringYes—Model ID or partial name (e.g. "claude-sonnet-4", "gpt-5")
include_api_examplebooleanNotrueInclude a ready-to-use code snippet
api_formatenumNoopenai_sdkopenai_sdk, curl, or python_requests

Example output

## anthropic/claude-sonnet-4
**Provider**: anthropic | **Modality**: text+image→text | **Released**: 2025-06-25
### Pricing| Metric | Value ||--------|-------|| Input | $3.00 /1M tok || Output | $15.00 /1M tok || Cache Read | $0.30 /1M tok || Context | 200K || Max Output | 64K |
### Benchmarks| Benchmark | Score ||-----------|-------|| SWE-bench Verified | 76.8% || Aider Polyglot | 72.1% || Arena Elo | 1467 || MMMU | 76.0% |
### Percentile Ranks| Category | Percentile ||----------|------------|| Coding | P96 || General | P95 || Vision | P90 |
**Capabilities**: Tools, Reasoning, Vision
### API Example (openai_sdk)```pythonfrom openai import OpenAIclient = OpenAI(    base_url="https://openrouter.ai/api/v1",    api_key="<OPENROUTER_API_KEY>",)response = client.chat.completions.create(    model="anthropic/claude-sonnet-4",    messages=[{"role": "user", "content": "Hello"}],)

---
### `list_top_models`
Top-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

#ModelKey ScoreInput $/1MOutput $/1MContextReleased
1openai/o3-proSWE 79.5%$20.00$80.00200K2025-06-10
2anthropic/claude-sonnet-4SWE 76.8%$3.00$15.00200K2025-06-25
3google/gemini-2.5-proSWE 75.2%$1.25$10.001M2025-03-25
4openai/o4-miniSWE 73.6%$1.10$4.40200K2025-04-16
5anthropic/claude-opus-4SWE 72.5%$15.00$75.00200K2025-05-22

---
### `compare_models`
Side-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-4openai/gpt-4.1google/gemini-2.5-pro
Input $/1M$3.00$2.00$1.25
Output $/1M$15.00$8.00$5.00
Context200K1M1M
Max Output64K32K65K
SWE-bench76.8%55.0%75.2%
Aider Polyglot72.1%65.3%71.8%
Arena Elo146714921445
VisionYesYesYes
ToolsYesYesYes
ReasoningYesNoYes
Open SourceNoNoNo
Released2025-06-252025-04-142025-03-25

---
### `recommend_model`
Personalized 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

1. anthropic/claude-sonnet-4 (score: 78)

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

2. google/gemini-2.5-flash (score: 74)

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

3. openai/o4-mini (score: 71)

Input: $1.10/1M | Output: $4.40/1M | Context: 200K | Released: 2025-04-16 Benchmarks: SWE-bench: 73.6%, Arena: 1430 Strengths: reasoning, tools


---
## Data Sources
All data is fetched in real time from free, public APIs. No authentication required.
| Source | Data | Models | Cache TTL ||--------|------|--------|-----------|| [OpenRouter](https://openrouter.ai/api/v1/models) | Pricing, context lengths, modalities, release dates | 300+ | 1 hour || [SWE-bench](https://github.com/SWE-bench/swe-bench.github.io) | Coding benchmark (Verified leaderboard) | 30+ | 6 hours || [LM Arena](https://lmarena.ai) | Human preference Elo ratings | 314+ | 6 hours || [OpenCompass VLM](https://opencompass.org.cn) | Vision benchmarks: MMMU, MMBench, OCRBench, AI2D, MathVista | 284+ | 6 hours || [Aider Polyglot](https://aider.chat/docs/leaderboards/) | Multi-language coding pass rate | 63+ | 6 hours |
---
## Context Cost
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.
---
## Architecture

┌──────────────────────────────────────────────┐ │ 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


- **TypeScript + ESM** — Single entry point, `tsup` build- **In-memory cache** — TTL-based (1h pricing, 6h benchmarks), stale-while-revalidate- **Cross-source normalization** — Maps inconsistent model names (e.g. `Claude 3.5 Sonnet` vs `anthropic/claude-3.5-sonnet`) to canonical IDs- **Percentile computation** — Ranks across 5 categories (coding, math, general, vision, cost efficiency)- **Freshness scoring** — Recommendation algorithm gives a bonus to recently released models (+3 for <=3mo, +1 for <=6mo)- **Zero runtime deps** beyond `@modelcontextprotocol/sdk` and `zod`
---
## Roadmap
| 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 |
---
## Development
```bashgit clone https://github.com/Daichi-Kudo/llm-advisor-mcp.gitcd llm-advisor-mcpnpm installnpm run build       # Build with tsupnpm run dev         # Run with tsx (hot reload)npm test            # Run 51 unit tests (vitest)npm run test:watch  # Watch mode

Project structure

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_models tool    recommend.ts        # recommend_model tool    formatters.ts       # Markdown output formatters  data/    registry.ts         # Unified model registry    cache.ts            # In-memory TTL cache    normalizer.ts       # Cross-source name normalization    percentiles.ts      # Percentile rank computation    fetchers/      openrouter.ts     # OpenRouter API      swe-bench.ts      # SWE-bench leaderboard      arena.ts          # LM Arena Elo ratings      vlm-leaderboard.ts # OpenCompass VLM benchmarks      aider.ts          # Aider Polyglot scores    static/      api-examples.ts   # API code snippet templates

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Add tests for new functionality
  4. Run npm test to verify all 51 tests pass
  5. Submit a pull request

License

MIT — built by Cognisant LLC

来源:README.md,提交 4f64aab

工具

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

版本历史

1
  1. v0.4.5最新Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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