Check and improve the contract quality of any MCP server β for humans, agents, and platforms.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Check and improve the contract quality of any MCP server β for humans, agents, and platforms.
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:
MCP Doctor checks all six dimensions of "contract quality" and gives you actionable recommendations.
| Dimension | Question |
|---|---|
| Task Clarity | Is the server's purpose immediately clear? |
| Trust & Safety | Are side effects, permissions, and safety boundaries declared? |
| Interface Quality | Are tools well-named, well-described, and well-typed? |
| Token Efficiency | Will tool responses fit an agent's context budget? |
| Install Friction | How fast can someone go from discovery to first use? |
| Cross-platform Readiness | Is metadata complete for Registry, Smithery, PulseMCP, Glama? |
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. Use mode="ai" for LLM-enhanced review.list_dimensions() β List what MCP Doctor evaluatesOne-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:
pip install mcp-doctorcheck_server tool with a path to any MCP server repomcp-doctor check /path/to/server --format jsonAgent workflow: check server -> review scores -> identify lowest dimensions -> follow recommendations
Each dimension is scored 0-100 and graded A/B/C/D:
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:
| Mode | Flag | Deterministic | Network | API Key |
|---|---|---|---|---|
| Rule-based (default) | --mode rule | Yes | No | No |
| AI-enhanced | --mode ai | No | Yes (LLM API) | OPENAI_API_KEY |
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]
MCP Doctor is read-only. It never modifies, deletes, or creates files.
| What it accesses | Why |
|---|---|
server.json | Parse MCP metadata |
README.md | Check documentation quality |
LICENSE | Verify license presence |
*.py, *.json in src/ | Detect tool definitions |
All MCP tools have readOnlyHint: true and destructiveHint: false annotations.
Found a bug? Have a suggestion? We'd love to hear from you:
gh CLI):
If you're an agent, include the JSON output of check_server in your report for context.
If MCP Doctor helped you improve your server, consider giving it a star on GitHub β it helps others discover the tool.
MIT
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mcp-doctor)<a href="https://allmcps.com/mcp/mcp-doctor"><img src="https://allmcps.com/api/badge/mcp-doctor?style=directory" alt="MCP Doctor on AllMCPs" /></a>