MCP Doctor
by rafim-dev
README.md
# 🩺 MCP Doctor & Config Linter
[](https://glama.ai/mcp/servers/rafim-dev/mcp-doctor)
[](https://github.com/punkpeye/awesome-mcp-servers/pull/13849)
> **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.
---
## 🚀 Quickstart
```bash
# 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.
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
ActivityMaintained
ResponsivenessNo issues