
mcp-doctor
CLI and MCP server that scans and repairs broken MCP config files for Claude Desktop
The repository was last updated 86 days ago and is published under MIT.
mcp-doctor is an open-source MCP server for developer tools. It is available on CLI, Linux, macOS, Windows and Self-hosted.
- Pricing
- Open source
- Platforms
- CLI, Linux, macOS
- GitHub stars
- 1
- Last commit
- Language
- TypeScript
- License
- MIT
Similar MCP servers
About mcp-doctor
Setting up a Model Context Protocol server often fails silently: a config file has a trailing comma, a stray comment or a single-quoted string, or the command it points to is not on PATH. MCP Doctor checks these problems on the machine itself, looking for MCP config files across macOS, Windows and Linux and confirming that each configured executable can be found.
A separate fix command rewrites malformed JSON in a config file so that clients such as Claude Desktop, Cursor and Cline can load it again. The tool is written in TypeScript and runs from its compiled output with Node.
It suits developers who maintain several local MCP servers and want a faster way to find out why one of them will not start. The project also offers a stdio server mode, so an AI assistant can run the same diagnostics from inside a chat session.
What it does
- Config file scanning
- Finds MCP configuration files across macOS, Windows and Linux and reports which ones are present.
- PATH executable check
- Verifies that the commands configured for each MCP server can actually be located on the system PATH.
- Malformed JSON repair
- Fixes trailing commas, invalid comments and single-quote syntax errors in a given config file.
- Stdio server mode
- Exposes the diagnostic and repair actions as an MCP server so an assistant can check other servers in chat.
- MIT licensed source
- Released under the MIT licence and available as TypeScript source on GitHub.
Good for
- Finding out why Claude Desktop fails to launch after a config edit
- Checking that every stdio command listed in a client config exists on PATH
- Repairing a hand-edited MCP config file that has invalid JSON syntax
- Letting an AI assistant diagnose a broken MCP server without leaving the chat
Pricing
Open source
Free and MIT licensed; the project is also sold through a Gumroad page.
Prices change. Check rafi860.gumroad.com before you buy.
mcp-doctor FAQ
Which MCP clients does mcp-doctor check?
The project's documentation names Claude Desktop, Cursor and Cline as the clients whose configuration files it diagnoses and repairs.
What license is mcp-doctor under?
It is released under the MIT License.
Does mcp-doctor change my config file automatically?
The fix command repairs the JSON file you pass to it, so it rewrites that file in place.
Is mcp-doctor free?
Yes. mcp-doctor is open source, so you can use and self-host it for free.
What are the best alternatives to mcp-doctor?
The closest alternatives to mcp-doctor are mcp-doctor, universal-mcp-toolkit, Mcpdiet, mcpmcp-server and MCP Registry.
Where this comes from
- Description: written from the project's README and the project's website.


