SuperAPI AI Directory

mcp-doctor

Health checks, binary validation and JSON auto-repair for MCP client configuration files.

Open website

About this tool

MCP Doctor is a configuration diagnostic and repair tool for Model Context Protocol (MCP) clients, primarily serving developers who use MCP-enabled AI tools such as Claude Desktop, Cursor, and Cline.

Purpose

The tool is designed to solve common failures in MCP configuration: configuration file format errors that prevent the client from starting, configured binaries that do not exist in the system PATH, incorrectly set environment variables, and so on. It automatically locates and diagnoses these problems through a zero-configuration approach, lowering the barrier to debugging MCP environments.

Main capabilities

  • Health check (scan): Automatically detects all MCP configuration files on macOS, Windows, and Linux, and checks whether the tools referenced in the configuration actually exist in PATH.
  • Binary validator: Validates the validity of stdio binaries to ensure that the MCP server can start normally.
  • JSON auto-fix (fix): For a specified JSON file, automatically fixes formatting issues such as trailing commas, invalid comments, and single-quote syntax errors that can cause Claude Desktop and Cursor to crash.
  • Environment variable testing: Checks the settings of environment variables in the MCP configuration.
  • MCP Stdio server mode: Allows AI assistants to self-diagnose and repair other MCP servers within the chat interface.

Usage

The tool is used through a command-line interface, and the main commands include:

  • mcp-doctor scan: Scans and checks all MCP configurations and tool existence.
  • mcp-doctor fix <file.json>: Automatically fixes syntax errors in the specified JSON configuration file. In addition, it also supports MCP Stdio server mode, enabling AI assistants to directly invoke diagnostic and repair capabilities.

Applicable scenarios

Suitable for developers using MCP clients such as Claude Desktop, Cursor, and Cline, especially when encountering startup crashes, unrecognized tools, or JSON format errors while configuring MCP servers. It is also suitable for users who want AI assistants to automatically troubleshoot and repair MCP server configurations during conversations.

Limitations

This tool uses the MIT license and was created by Project GOAT. Currently, details such as specific environment requirements, installation steps, compatible versions, or performance limitations are not provided.