MCP server that connects to Node.js's built-in debugger for breakpoints, stepping, profiling, and more
Node Inspector MCP
An MCP server that lets AI coding agents debug Node.js programs — pause execution, inspect variables, step through code, and find bugs at runtime.
AI agents can read your code but can't observe it running. When something breaks, they're guessing from static files. This gives them a real debugger — built on Node.js's Chrome DevTools Protocol, the same engine behind Chrome DevTools and VS Code's debugger. Supports JavaScript and TypeScript out of the box.
Debug — describe a bug in plain English. The agent launches the debugger, sets breakpoints, inspects runtime state, finds the root cause, and fixes it.
Trace — point the agent at any Node.js process and ask what happens inside. It maps the module chain, steps through the call graph, and captures live state at every layer. No source changes, no printf debugging.
Works on CLIs, dev servers, build tools, and frameworks you didn't write.
Install
claude mcp add --scope user node-inspector -- npx -y node-inspector-mcp
Requires Node.js 22.6+.
Docs
- Tool Reference — all 20 tools and 3 prompts
- Architecture — how it works
- Examples — 8 practice scripts with bugs
- Contributing