Ultimate MCP Server Diagnostic & Repair Tool
π Diagnose, Fix, and Validate MCP Server Configurations in Seconds
By Lan
Quick Start β’ Features β’ Documentation β’ Contributing β’ Support
MCP Doctor is a comprehensive diagnostic and repair tool for Model Context Protocol (MCP) server configurations. It automatically discovers, audits, repairs, and validates MCP server setups across various client environments.
- β‘ Instant Diagnostics - Find and fix configuration issues in seconds
- π§ Auto-Repair - Generate and apply fix plans automatically
- π Multi-Platform - Support for Windows, macOS, and Linux
- π Detailed Reports - Get comprehensive health status and recommendations
- π Easy Integration - Works with popular MCP clients and IDEs
- Auto-Discovery - Find MCP configuration files across common client locations
- Multi-Format Support - Parse JSON, JSONC, YAML, and TOML configurations
- Path Normalization - Validate and normalize file paths across platforms
- Runtime Detection - Check availability of required runtimes (Node.js, Python, etc.)
- Health Audits - Test dependency installation and startup health
- Auto-Repair Plans - Generate step-by-step fix recommendations
- One-Click Fixes - Apply common repairs automatically
- Validation - Verify repairs and confirm successful resolution
- Detailed Reports - Comprehensive diagnostic summaries
- Client Export - Generate client-ready configuration files
- OAuth Support - Remote MCP auth templates and browser flows
- Logging - Detailed logs for troubleshooting
# Install globally
npm install -g mcp-doctor
# Or run directly with npx
npx mcp-doctor# Run full diagnostic
mcp-doctor
# Quick health check
mcp-doctor --quick
# Generate repair plan
mcp-doctor --repair
# Export configuration
mcp-doctor --exportAdd to your MCP client configuration:
{
"mcpServers": {
"doctor": {
"command": "npx",
"args": ["-y", "mcp-doctor"]
}
}
}| Command | Description |
|---|---|
mcp-doctor |
Run full diagnostic suite |
mcp-doctor --quick |
Quick health check only |
mcp-doctor --repair |
Generate and apply repair plans |
mcp-doctor --export |
Export fixed configurations |
mcp-doctor --help |
Show detailed help message |
- β VS Code / Cursor
- β Claude Desktop
- β Continue
- β Cline
- β Roo Code
- β Other MCP-compatible clients
| Format | Extension | Support |
|---|---|---|
| JSON | .json |
β Full |
| JSON with Comments | .jsonc |
β Full |
| YAML | .yaml, .yml |
β Full |
| TOML | .toml |
β Full |
- Node.js 18+
- npm or yarn
# Clone the repository
git clone https://github.com/Lyx3314844-03/mcp-doctor.git
cd mcp-doctor
# Install dependencies
npm install
# Run tests
npm test
# Run linter
npm run lint
# Development mode
npm run devmcp-doctor/
βββ assets/
β βββ icons/ # Project icons and branding
βββ src/
β βββ parser.js # Configuration parser
β βββ runner.js # Diagnostic runner
β βββ scanner.js # File scanner
β βββ utils.js # Utility functions
βββ tests/ # Test files
βββ mcp-inspector.js # Main entry point
βββ package.json # Project metadata
βββ README.md # This file
# Run all tests
npm test
# Run specific test suite
npm run test:doctor
npm run test:parser
npm run test:runner
# Run with coverage
npm run test:coverageWe welcome contributions! Please see our Contributing Guide for details.
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
We use ESLint and Prettier for code formatting:
npm run lint
npm run formatThis project is licensed under the MIT License - see the LICENSE file for details.
- Model Context Protocol team for the specification
- Community contributors and testers
- All users who provided feedback and bug reports
- π Bug Reports: GitHub Issues
- π¬ Discussions: GitHub Discussions
- π§ Email: Contact the MCP Doctor Team
Made with β€οΈ by Lan
β Star this repo if you find it helpful!