MCP Servers

模型上下文协议服务器、框架、SDK 和模板的综合目录。

Diagnose broken MCP configs for Claude, Cursor, VS Code, and other AI tools.

创建于 6/2/2026
更新于 about 4 hours ago
Repository documentation and setup instructions

doctor-mcp-cli

CI npm version npm downloads License: MIT

Stop guessing why your MCP server is broken.

Run it as doctor-mcp.

doctor-mcp is a zero-config CLI that scans MCP client config files, checks commands, environment variables, and local paths, then starts stdio MCP servers to verify that tools/list actually works.

doctor-mcp terminal demo

npx doctor-mcp-cli

npm package: https://www.npmjs.com/package/doctor-mcp-cli

OK     Claude Desktop: config found
ERROR  github: missing environment variable GITHUB_TOKEN
ERROR  filesystem: path does not exist: D:\work\missing
OK     playwright: tools/list succeeded

Summary: 2 OK, 0 WARN, 2 ERROR, 0 SKIP

Why

MCP config failures are often boring but painful: a missing token, a bad path, a command that is not on PATH, or a server that starts but exposes no tools. doctor-mcp turns those failures into a short diagnosis you can act on.

Supported Clients

| Client | Config support | Startup probe | | --- | --- | --- | | Claude Desktop | Platform-specific desktop config | stdio | | Claude Code | Project .mcp.json, global settings | stdio | | Cursor | Project and global mcp.json | stdio | | VS Code | Workspace .vscode/mcp.json | stdio | | Windsurf | Project and global mcp.json | stdio, HTTP/SSE reachability | | Cline | Project .cline/mcp.json | stdio, HTTP/SSE reachability | | Roo Code | Project .roo/mcp.json | stdio, HTTP/SSE reachability | | Continue | Project and global config | stdio, HTTP/SSE reachability |

HTTP/SSE servers receive a lightweight URL reachability check. doctor-mcp never edits your config.

Install

npm install -g doctor-mcp-cli
doctor-mcp

Or run without installing:

npx doctor-mcp-cli

Usage

doctor-mcp [options]

Options:
  --config <path>      check one config file instead of auto-discovery
  --json               print a machine-readable JSON report
  --ci                 print only warnings and errors for CI logs
  --no-start           only run static checks, do not start MCP servers
  --timeout <ms>       stdio server probe timeout in milliseconds (default: 8000)

What It Checks

  • JSON parse errors
  • mcpServers and VS Code servers config shapes
  • missing commands such as node, python, uvx, or npx
  • missing environment variables such as ${env:GITHUB_TOKEN}
  • local path arguments that do not exist
  • stdio MCP startup and tools/list
  • HTTP/SSE URL reachability
  • startup timeouts, with cleanup for the spawned process

JSON Output

doctor-mcp --json

The JSON report includes sources, servers, checks, and summary, making it usable from scripts or CI.

Development

npm install
npm run build
npm test
npm run dev -- --json
快速设置
此服务器的安装指南

安装包 (如果需要)

npx @modelcontextprotocol/server-doctor-mcp-cli

Cursor 配置 (mcp.json)

{ "mcpServers": { "lsufn-doctor-mcp-cli": { "command": "npx", "args": [ "lsufn-doctor-mcp-cli" ] } } }