
ModelLens
io.github.Greatbeing由 GitHub 账号 Greatbeing 发布v0.1.3更新于 Nov 7, 2026
See which models actually work: probe, rank and recommend across OpenAI-compatible gateways.
概览
探测兼容 OpenAI 的模型网关,按实测延迟与成功率给模型排名,并推荐该用哪个模型。
- 可以做什么
- 列出各已配置端点所公布的模型,可按子串过滤
- 用真实请求探测模型,测量延迟、成功率、流式输出与工具调用
- 根据已记录的探测历史为模型排名,并按 fast、cheap、capable 画像推荐最佳模型
- 生成涵盖所有端点的 markdown 汇总报告
- 同时可作为命令行工具执行单次探测或排名
- 适用场景
- 当你同时使用多个模型供应商或一个聚合网关,想用实测证据判断哪些模型真的能应答、有多快、路由器该选哪个时适用。接入新供应商或供应商开始悄悄失败时也很有用。
- 运行要求
- 以本地 Python 3.9+ 进程运行,无第三方依赖(PyPI 包 modellens-mcp 或单个脚本)。需要通过 MODELLENS_CONFIG 提供端点配置 JSON 文件,内含各端点的 base URL 和可选 api_key,并通过 MODELLENS_DATA 指定历史文件路径。需要能访问所配置网关的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 ModelLens,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
ModelLens
See which of your models actually works.
An MCP server that turns any OpenAI-compatible gateway into an observable, rankable set of models. It discovers what a provider advertises, probes what works right now — latency, success, cancellation, streaming, tool calling — keeps the history, and answers "which model should I use?"
Zero third-party dependencies. Python 3.9+ standard library only.
[PyPI version] [PyPI downloads] [MCP Registry] [Glama] [Live status]
Why
If you run more than one model provider, you already have this problem:
- The gateway says it serves 89 models. How many actually answer?
- Which one is fast today? Yesterday's answer is already stale.
- Your router picks the first entry in a list — and the first entry is slow.
- Failures are invisible until a user complains.
ModelLens makes that visible. It is the difference between trusting a model list and measuring it.
Real example from a live gateway (89 models, 16 probed):
The default routing group was putting an 87-second model first and a 0.9-second model third. ModelLens found that in one pass.
Install
or straight from source — no dependencies, no install step:
Configure
api_key may be empty for a localhost gateway. models optionally filters the
advertised list; enabled: false disables an endpoint without deleting it.
Run as an MCP server
Point any MCP client at it:
Works with Claude Desktop, Cursor, Windsurf, VS Code, and any other MCP client.
DeepSeek Harness
Register it in the profile's cordis.patch.yml (note: a new entry needs
- insert:, not a bare - id: — a bare one means "modify an existing entry"):
Then restart dsh web. Verified: the server runs as a child process of
dsh-web (pgrep -P $(systemctl --user show dsh-web -p MainPID)).
Tools
Example
Hosted / paid (x402, USDC on Base)
A hosted endpoint runs the same tools over MCP streamable-HTTP and charges per call with x402 — agents pay gasless USDC on Base, no accounts or API keys:
- Endpoint:
https://8000-agqz7vbdiiy6cc2n2tbs63iji4.instabox.tech/mcp - Manifest:
/.well-known/x402(payTo address, prices, facilitator) - Prices:
list_modelsfree ·ranking/recommend$0.01 ·report$0.02 ·probe$0.05 (probe makes real upstream requests, so it costs the most)
An unpaid paid-tool call returns HTTP 402 + PAYMENT-REQUIRED; the agent
signs an EIP-3009 USDC transfer and retries with X-PAYMENT, the facilitator
verifies/settles, and the tool result comes back with a PAYMENT-RESPONSE.
Self-host the same server anywhere with python3 server_x402.py
(set X402_PAY_TO to your receiving address; see server_x402.py header).
How it scores
Every probe is a real request, so the numbers are evidence, not estimates.
Verdicts: healthy (≥95% success, <3 s median) · mixed · unreliable
(≥30% cancelled) · quota_blocked (all 429) · dead (all 404) · untested.
History is kept per model (newest 200 probes) in history.json, so rankings
improve as you use it.
CLI
The server doubles as a command-line tool:
Use cases
- Before you pick a model —
recommend(profile="fast") - When a provider goes quiet —
rankingshows it dropping before your users do - When your router misbehaves — compare group members, find the slow one
- Cost control — spot the expensive model that is never chosen
- Onboarding a new provider — probe once, see what actually works
Status and roadmap
Working today: discovery, probing, streaming/tool-call checks, scoring, ranking, recommendation, markdown report, MCP stdio transport, CLI.
Roadmap: OpenAI-compatible /v1/models only for now; Anthropic and Gemini
transports, per-endpoint cost accounting, alerting webhooks, and a hosted
multi-team version.
License
MIT. Use it, ship it, charge for your own hosted version.
Honest notes
- Probing costs tokens. Each probe is a real completion. Keep
limitsensible and don't probe a hundred models every minute. - A single probe is weak evidence. The score is meaningful after several
probes; the report says
n=1so you can see the sample size. - Latency depends on you. Your network, not just the provider, is in the measurement. Run it from where your agents run.
来源:README.md,提交 5bdfd65
工具
0版本历史
2- v0.1.3最新Nov 7, 2026
- v0.1.2Nov 5, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
其他 Model 集成

model.tools — Zero-Auth Agent Utilities
tools.model官方发布者
零认证远程工具服务器,为智能体提供一次性邮箱验证码读取、持久检查点、Webhook 收件箱、定时唤醒、任务回执与网页转 Markdown。
NLP.COM.AI Open Model Catalog
ai.com.nlp官方发布者
搜索精选的开放权重AI模型发布、许可证、架构和原始来源。AI 翻译

Hologram Model Hub
foundation.uor.hub官方发布者
一个远程 MCP 服务器,让助手搜索开放模型索引,并获取带 SHA-256 校验值的下载链接。

Bedrock Multi-Model
由 GitHub 账号 Sagargupta16 发布
本地 MCP 服务器,把 AWS Bedrock 的文本、图像、视频和嵌入模型封装成九个工具,让助手可以提问、对比和评审模型。

Veqen Pricing: AI model costs
由 GitHub 账号 Keyveve 发布
只读 MCP 服务器,提供 Veqen 公开的 AI 模型价目表,可查询费率、比较模型并估算以美元计的工作负载成本。