Skip to main content
Glama

🩺 MCP Doctor & Config Linter

mcp-doctor MCP server Awesome-MCP

The Essential Health Check, Stdio Diagnoser & Auto-Repair Engine for Model Context Protocol (MCP).
Diagnoses broken configurations, validates stdio binaries, tests environment variables, and auto-fixes malformed JSON in Claude Desktop, Cursor, and Cline.


🌟 Capabilities

  1. mcp-doctor scan: Automatically detects all MCP config files across macOS, Windows, and Linux, and checks if your configured tools actually exist in PATH.

  2. mcp-doctor fix <file.json>: Auto-repairs trailing commas, invalid comments, and single-quote syntax errors that crash Claude Desktop and Cursor.

  3. MCP Stdio Server Mode: Allows your AI assistant to self-diagnose and repair other MCP servers directly inside the chat.


Related MCP server: Env Validator

πŸš€ Quickstart

# Standalone execution
node dist/index.js scan

# Auto-repair a broken MCP config
node dist/index.js fix ~/.config/Claude/claude_desktop_config.json

πŸ“„ License

MIT License. Created by Project GOAT.

Available Tools

3 tools
mcp_doctor_diagnose_serverC

Performs an in-depth diagnosis on a specific MCP server definition (command, arguments, environment).

Inputs: command (required), server_name (required), env, args.

mcp_doctor_repair_jsonA

Auto-repairs malformed MCP configuration JSON (fixes trailing commas, removes invalid comments, converts single quotes, ensures root mcpServers key).

Inputs: raw_json (required).

mcp_doctor_scanA

Scans local Claude Desktop, Cursor, and Cline MCP config files and diagnoses all server configurations, binary paths, and environment variables.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a distinct and clearly defined purpose: scanning all configs, diagnosing a specific server, and repairing JSON. No overlap or ambiguity.

    Naming Consistency5/5

    All tools follow the same verb_noun pattern with the 'mcp_doctor_' prefix, making the naming predictable and consistent.

    Tool Count5/5

    Three tools is well-scoped for a focused utility that scans, diagnoses, and repairs. It covers the core workflow without unnecessary bloat.

    Completeness4/5

    The set covers scanning, deep diagnosis, and JSON repair. A minor gap might be an explicit 'list servers' tool, but the scan tool effectively covers that, so the surface is largely complete.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Diagnose MCP servers β€” health checks, tool testing, token cost audits, conflict detection, and security scanning with 50+ prompt injection patterns. Works as CLI or MCP server inside Claude Desktop.
      1
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      An MCP (Model Context Protocol) server that inspects your local development environment and reports missing dependencies, version mismatches, and misconfigured environment variables to any MCP-compatible AI assistant. Works with Claude Desktop, Cursor, Gemini CLI, and any other client that supports stdio-transport MCP servers.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables any MCP client to detect Claude Code configuration that is silently ignored, such as agent files that fail to load, unknown frontmatter fields, parent-folder settings, conflicting MCP server entries and drift since a baseline. Exposes read-only tools that return findings with exact edits, the fix prompt, and explanations of each check, without modifying any files.
      Apache 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Validates .mcp.json and claude_desktop_config files to catch duplicate server names, missing binaries, invalid environment variables, and unreachable endpoints. Reports each problem along with how to fix it, so silently failing MCP servers can be diagnosed and repaired.
      MIT