MCP Doctor MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
pip install mcp-doctor
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add mcp-doctor-8e98 -- node "<FULL_PATH_TO_MCP_DOCTOR>/dist/index.js"

Replace <FULL_PATH_TO_MCP_DOCTOR>/dist/index.js with the actual folder you prepared in step 1.

README.md

Check and improve the contract quality of any MCP server

MCP Doctor

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

pip install mcp-doctor
mcp-doctor check /path/to/your-mcp-server

What It Checks

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?

Usage

CLI

# Terminal output (default, rule-based)
mcp-doctor check /path/to/server

# JSON output (for CI/CD)
mcp-doctor check /path/to/server --format json

# Markdown output (for README badges or reports)
mcp-doctor check /path/to/server --format markdown

# AI-enhanced evaluation (requires OPENAI_API_KEY)
mcp-doctor check /path/to/server --mode ai

# AI mode with a specific model
mcp-doctor check /path/to/server --mode ai --model gpt-4o

As an MCP Server

MCP Doctor is also an MCP server, so AI agents can use it to check other servers:

{
  "mcpServers": {
    "mcp-doctor": {
      "command": "python",
      "args": ["-m", "mcp_doctor.mcp_server"]
    }
  }
}

Tools:

  • check_server(path, format, mode, model) — Run all 6 checks. Use mode="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 command python -m mcp_doctor.mcp_server. Then use the check_server tool to check any MCP server's quality.

Step by step:

  1. Install: pip install mcp-doctor
  2. Add to your MCP configuration:
    {
      "mcpServers": {
        "mcp-doctor": {
          "command": "python",
          "args": ["-m", "mcp_doctor.mcp_server"]
        }
      }
    }
    
  3. Use the check_server tool with a path to any MCP server repo
  4. 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

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 OpenA

Tools (2)

check_serverRun all 6 quality checks on an MCP server.
list_dimensionsList what MCP Doctor evaluates.

Environment Variables

OPENAI_API_KEYRequired for AI-enhanced evaluation mode.

Configuration

claude_desktop_config.json
{"mcpServers": {"mcp-doctor": {"command": "python", "args": ["-m", "mcp_doctor.mcp_server"]}}}

Try it

Check the MCP server located at /path/to/my-server and tell me which dimensions need improvement.
Run a quality check on my MCP server using AI mode to get deeper insights.
List all the dimensions that MCP Doctor evaluates to understand how my server is being scored.
Perform a check on my MCP server and output the results in markdown format for my README.

Frequently Asked Questions

What are the key features of MCP Doctor?

Evaluates MCP servers across six dimensions: Task Clarity, Trust & Safety, Interface Quality, Token Efficiency, Install Friction, and Cross-platform Readiness.. Supports rule-based deterministic evaluation and AI-enhanced review.. Provides actionable recommendations to improve server quality for humans, agents, and platforms.. Offers multiple output formats including terminal, JSON for CI/CD, and Markdown for documentation.. Functions as an MCP server itself, allowing AI agents to audit other MCP servers..

What can I use MCP Doctor for?

Developers preparing an MCP server for public release on registries like Smithery or Glama.. Teams integrating MCP servers into CI/CD pipelines to ensure consistent tool quality.. AI agents auditing third-party MCP servers to determine their reliability and safety before use.. Optimizing tool definitions and documentation to improve token efficiency for LLM interactions..

How do I install MCP Doctor?

Install MCP Doctor by running: pip install mcp-doctor

What MCP clients work with MCP Doctor?

MCP Doctor works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep MCP Doctor docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare