
MCP Doctor
io.github.Jiansen由 GitHub 账号 Jiansen 发布v0.1.0更新于 Oct 24, 2026
Check and improve the contract quality of any MCP server — for humans, agents, and platforms.
概览
MCP Doctor 从六个维度审查任意 MCP 服务器的契约质量,并给出评分与可执行的改进建议。
- 可以做什么
- 对本地 MCP 服务器仓库运行全部六项契约质量检查,返回分数、等级与建议
- 列出 MCP Doctor 评估的维度,如任务清晰度、信任与安全、接口质量、token 效率、安装门槛与跨平台就绪度
- 在离线规则评分与 LLM 增强的定性评审之间选择
- 以终端文本、供 CI 使用的 JSON 或用于报告与徽章的 Markdown 输出结果
- 适用场景
- 适合在发布或上架 MCP 服务器之前,客观了解其清晰度、安全性、token 效率与平台就绪度。也适合让智能体审查其他服务器的元数据与工具定义。
- 运行要求
- 以 pip 安装的 Python 包在本地运行,MCP 服务器通过 python -m mcp_doctor.mcp_server 启动。规则模式无需网络或密钥;AI 模式需要 OPENAI_API_KEY 变量,可选 OPENAI_BASE_URL 与 MCP_DOCTOR_MODEL,并需安装 ai 附加组件。
安装
在 SourceWeft 中
- 打开 控制台中的 MCP Doctor,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
MCP Doctor
[PyPI] [License] [Python] [GitHub Stars]
Check and improve the contract quality of any MCP server — for humans, agents, and platforms.
Problem
Most MCP servers are built with only one audience in mind (usually human developers reading a README). But a successful MCP server needs to satisfy three audiences simultaneously:
- Distribution platforms (Registry, Smithery, PulseMCP, Glama) need structured metadata
- Human users need clear purpose, trust signals, and low install friction
- AI agents need unambiguous tool descriptions, declared side effects, and token-efficient responses
MCP Doctor checks all six dimensions of "contract quality" and gives you actionable recommendations.
Quick Start
What It Checks
Usage
CLI
As an MCP Server
MCP Doctor is also an MCP server, so AI agents can use it to check other servers:
Tools:
check_server(path, format, mode, model)— Run all 6 checks. Usemode="ai"for LLM-enhanced review.list_dimensions()— List what MCP Doctor evaluates
For AI Agents: Quick Install
One-liner (paste this to your AI agent):
Install mcp-doctor (
pip install mcp-doctor) and add it to your MCP config with commandpython -m mcp_doctor.mcp_server. Then use thecheck_servertool to check any MCP server's quality.
Step by step:
- Install:
pip install mcp-doctor - Add to your MCP configuration:
- Use the
check_servertool with a path to any MCP server repo - If MCP is not available, fall back to CLI:
mcp-doctor check /path/to/server --format json
Agent workflow: check server -> review scores -> identify lowest dimensions -> follow recommendations
Scoring
Each dimension is scored 0-100 and graded A/B/C/D:
- A (90+): Exemplary
- B (75-89): Good, minor gaps
- C (55-74): Adequate, notable gaps
- D (<55): Needs significant improvement
Theoretical Foundation
MCP Doctor is based on the Contract Quality Framework — the principle that a successful MCP product's promises (what it does, what it costs, what risks it carries) should be equally parseable by platforms, humans, and agents.
The framework draws from:
- Anthropic's "Writing effective tools for agents" (tool description engineering, namespacing, token efficiency)
- Official MCP Registry requirements (server.json schema, namespace verification)
- Cross-platform analysis of Smithery, PulseMCP, Glama ranking signals
Evaluation Modes
Rule-based mode is fully offline and deterministic. No network calls, no LLM, no API keys needed.
AI mode sends a metadata summary (server name, tool definitions, README preview, rule-based scores) to an OpenAI-compatible API for qualitative review. No source code is sent. Reports include model name and version for reproducibility.
AI mode supports any OpenAI-compatible provider:
OPENAI_API_KEY— API key (required for AI mode)OPENAI_BASE_URL— Custom endpoint (for Ollama, vLLM, LM Studio, Azure, etc.)MCP_DOCTOR_MODEL— Model name (default:gpt-4o-mini)
Install AI support: pip install mcp-doctor[ai]
Trust & Permissions
MCP Doctor is read-only. It never modifies, deletes, or creates files.
All MCP tools have readOnlyHint: true and destructiveHint: false annotations.
Feedback
Found a bug? Have a suggestion? We'd love to hear from you:
- GitHub Issues: https://github.com/Jiansen/mcp-doctor/issues
- Quick report (if you have
ghCLI):
If you're an agent, include the JSON output of check_server in your report for context.
Contributing
If MCP Doctor helped you improve your server, consider giving it a star on GitHub — it helps others discover the tool.
License
MIT
来源:README.md,提交 ebf6da0
工具
0版本历史
1- v0.1.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分