mcp-doctor
Health check for MCP servers — and the reason they are broken.
An MCP server that fails to start, points at a moved binary or lost its key does not raise an error; your agent just stops calling tools. This probes every server you configured, lists its tools, measures the latency and names the failure.
View on GitHub
npm
README
What it does
stdio and streamable HTTP Both transports are probed with a real MCP handshake.
Failure taxonomy spawn, handshake, timeout, auth, empty — not a stack trace.
Reads your config Every enabled server in ~/.config/opencode/opencode.jsonc.
CI friendly --json and exit code 1 when a server is broken.
Usage
Everything in your configmcp-doctor
One remote servermcp-doctor --url https://host/mcp
One stdio servermcp-doctor --cmd "npx -y some-mcp-server"
In CImcp-doctor --json
How it works
Each server is started or dialled and the MCP handshake is completed.
The tool list is fetched, and an empty list is treated as a finding of its own.
Failures are classified by their message, so the report says what to fix.
Questions
(rows) =>
rows
.map(
([q, a]) =>
`
${q} ${a}
`,
)
.join("\n")
mcp-doctor · MIT
source
issues
USDC on Base: 0x8aC6a229f254980CCd3Dd35CF5E1B7c08880B40E