# mcp-doctor

> mcp-doctor is an open-source MCP server for developer tools. CLI that scans, security-audits and benchmarks the MCP servers in your AI tool configs. It is available on CLI, API, Linux, macOS and Windows.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Linux, macOS, Windows
- **Repository:** https://github.com/realwigu/mcp-doctor
- **GitHub stars:** 4
- **License:** MIT
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

mcp-doctor reads the MCP server configuration files kept by Claude Code, Claude Desktop, Cursor, VS Code and Windsurf and merges them into one view. From there it checks whether each server answers a JSON-RPC initialize handshake, looks for plaintext secrets and tokens passed as process arguments, and measures round-trip latency.

It runs from the terminal with npx and needs no configuration file of its own. Each command can print a readable table or JSON, which makes it usable in scripts and CI pipelines, and a GitHub Action wraps the full check for pull requests.

The tool also has a server mode, so an assistant connected to it can run the same scan, security and benchmark checks on demand. It suits developers who run several MCP servers across more than one AI client and want to find broken or drifting setups quickly.

## Features

- **Config auto-discovery:** Finds MCP server definitions in the standard config locations of five AI tools without manual setup.
- **Connection health checks:** Sends a JSON-RPC initialize handshake to each server to confirm it responds.
- **Security audit:** Flags plaintext secrets, tokens in arguments and risky shell command patterns in configs.
- **Latency benchmarking:** Measures round-trip response time for each server and rates it as fast, ok or slow.
- **JSON output for CI:** Every command supports structured output for dashboards, scripts and pipelines.
- **GitHub Action:** Runs the full doctor check in CI and can fail the build when errors are found.

## Good for

- Finding which MCP servers are down before a tool call fails mid-session
- Checking for API keys hardcoded in AI client config files
- Comparing server setups across Cursor, VS Code and Claude Desktop
- Gating pull requests on MCP server health and security results
- Letting an AI assistant diagnose its own MCP connections

## FAQ

### Which AI tools does mcp-doctor read configs from?

Claude Code, Claude Desktop, Cursor, VS Code and Windsurf.

### What Node.js version is required?

Node.js 18 or later.

### How do I run mcp-doctor without installing?

Use npx @wigu/mcp-doctor followed by a command such as doctor or scan.

### Does mcp-doctor output machine-readable results?

Yes, every command accepts a --json flag.

### 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, MCP Security Guard, Mcpdiet, dr-mcp and MCP Launcher.

## Where this comes from

- Description: written from the project's README.

## Alternatives

- [mcp-doctor](https://ai-powered.com/mcp/mcp-doctor-3): mcp-doctor is an open-source MCP server for developer tools.
- [MCP Security Guard](https://ai-powered.com/mcp/mcp-security-guard): MCP Security Guard is an open-source MCP server for security.
- [Mcpdiet](https://ai-powered.com/mcp/mcpdiet): Mcpdiet is an open-source MCP server for developer tools.
- [dr-mcp](https://ai-powered.com/mcp/dr-mcp): dr-mcp is an open-source MCP server for developer tools.
- [MCP Launcher](https://ai-powered.com/mcp/mcp-launcher): MCP Launcher is an open-source MCP server for developer tools.
- [MCP Observatory](https://ai-powered.com/mcp/mcp-observatory): MCP Observatory is an open-source MCP server for developer tools.
- [RungLab DevTools MCP](https://ai-powered.com/mcp/runglab-devtools-mcp): RungLab DevTools MCP is a free MCP server for security.
- [MCP Server Health Monitor](https://ai-powered.com/mcp/mcp-server-health-monitor): MCP Server Health Monitor is a free MCP server for health and science.

---
Source: https://ai-powered.com/mcp/mcp-doctor-2
