Node.js Debugger MCP server
Enables AI assistants to debug Node.js applications using the Chrome DevTools Protocol with breakpoints, stepping, and variable inspection.
Also known as ScriptedAlchemy/devtools-debugger-mcp
- Stars
- 350
- Tools
- 21
- Downloads, 30 days
- —
- Latest version
- —
- Last commit
- Oct 2, 2025
- License
- MIT
What is Node.js Debugger MCP?
Node.js Debugger enables AI assistants to debug Node.js applications using the Chrome DevTools Protocol with breakpoints, stepping, and variable inspection. It exposes 21 tools, such as start_node_debug, stop_debug_session, set_breakpoint.
Summary generated from the project's README
About Node.js Debugger MCP server
Debugging Node.js applications through an AI assistant is possible with this MCP server. It provides programmatic access to the Chrome DevTools Protocol, allowing an AI to act as a developer by managing breakpoints, stepping through code, and inspecting runtime behavior. The server works locally by spawning Node.js processes with the inspector enabled and connecting via WebSockets.
Developers can use tools like start_node_debug to launch scripts and set_breakpoint to pause execution at specific lines. The server supports advanced features such as conditional breakpoints, logpoints, and pause-on-exceptions. It also handles source maps, which enables debugging for TypeScript and other transpiled code. To analyze the state of an application, the assistant can use inspect_scopes to view local variables and closures, evaluate_expression to run JavaScript in the current frame, and list_call_stack to examine the execution path.
Setup requires installing the package via npm and configuring your MCP settings with the path to the server's entry point. The server manages the entire lifecycle of a debug session, from launching the initial script to cleaning up the session when the process exits.
What you can do with it
- 1Debug TypeScript codeAn AI can debug transpiled TypeScript files by utilizing the built-in source map support.
- 2Inspect application stateYou can ask an AI to examine local variables and the current context during a pause.
- 3Trace execution flowAn AI assistant can step through functions or run until a specific line is reached.
- 4Monitor runtime logsThe assistant can review console output captured during a debugging session to identify errors.
Written from the project's README. Every use case is checked against a quote from it.
How to install Node.js Debugger MCP
Formats verified 10 Nov 2026Add to CursorInstall Node.js Debugger MCP in Claude Code
$ claude mcp add devtools-debugger-mcp -- npx -y devtools-debugger-mcpInstall Node.js Debugger MCP in Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"devtools-debugger-mcp": {
"command": "npx",
"args": [
"-y",
"devtools-debugger-mcp"
]
}
}
}Install Node.js Debugger MCP in VS Code
.vscode/mcp.json
{
"servers": {
"devtools-debugger-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"devtools-debugger-mcp"
]
}
}
}Install Node.js Debugger MCP in VS Code CLI
$ code --add-mcp '{"name":"devtools-debugger-mcp","type":"stdio","command":"npx","args":["-y","devtools-debugger-mcp"]}'Install Node.js Debugger MCP in Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"devtools-debugger-mcp": {
"command": "npx",
"args": [
"-y",
"devtools-debugger-mcp"
]
}
}
}Install Node.js Debugger MCP in Codex
~/.codex/config.toml
[mcp_servers.devtools-debugger-mcp] command = "npx" args = ["-y", "devtools-debugger-mcp"]
Install Node.js Debugger MCP in Gemini CLI
~/.gemini/settings.json
{
"mcpServers": {
"devtools-debugger-mcp": {
"command": "npx",
"args": [
"-y",
"devtools-debugger-mcp"
]
}
}
}Node.js Debugger MCP tools 21
Detected from the READMEstart_node_debugstop_debug_sessionset_breakpointset_breakpoint_conditionadd_logpointset_exception_breakpointsresume_executionstep_overstep_intostep_outcontinue_to_locationrestart_frame
| start_node_debug | — | |
| stop_debug_session | — | |
| set_breakpoint | — | |
| set_breakpoint_condition | — | |
| add_logpoint | — | |
| set_exception_breakpoints | — | |
| resume_execution | — | |
| step_over | — | |
| step_into | — | |
| step_out | — | |
| continue_to_location | — | |
| restart_frame | — |
Show all 21 toolsShow fewer tools
inspect_scopesevaluate_expressionget_object_propertieslist_call_stackget_pause_infolist_scriptsget_script_sourceblackbox_scriptsread_console
| inspect_scopes | — | |
| evaluate_expression | — | |
| get_object_properties | — | |
| list_call_stack | — | |
| get_pause_info | — | |
| list_scripts | — | |
| get_script_source | — | |
| blackbox_scripts | — | |
| read_console | — |
README
View on GitHubNode.js Debugger MCP
An MCP server that provides comprehensive Node.js debugging capabilities using the Chrome DevTools Protocol. This server enables AI assistants to debug Node.js applications with full access to breakpoints, stepping, variable inspection, call stacks, expression evaluation, and source maps.
Why use this MCP server?
This MCP server is useful when you need AI assistance with debugging Node.js applications. It provides programmatic access to all the debugging features you'd find in Chrome DevTools or VS Code, allowing AI assistants to help you set breakpoints, inspect variables, step through code, and analyze runtime behavior.
Features
- Full Node.js debugger: Set breakpoints, conditional breakpoints, logpoints, and pause-on-exceptions
- Stepping controls: Step over/into/out, continue to location, restart frame
- Variable inspection: Explore locals/closure scopes,
thispreview, and drill down into object properties - Expression evaluation: Evaluate JavaScript expressions in the current call frame with console output capture
- Call stack analysis: Inspect call stacks and pause-state information
- Source map support: Debug TypeScript and other transpiled code with full source map support
- Console monitoring: Capture and review console output during debugging sessions
Installation
npm install devtools-debugger-mcp
Configuration
Add the server to your MCP settings configuration:
{
"devtools-debugger-mcp": {
"command": "node",
"args": ["path/to/devtools-debugger-mcp/dist/index.js"]
}
}
Alternatively, if installed globally, you can use the CLI binary:
{
"devtools-debugger-mcp": {
"command": "devtools-debugger-mcp"
}
}
Node.js Debugging
This MCP server can debug Node.js programs by launching your script with the built‑in inspector (--inspect-brk=0) and speaking the Chrome DevTools Protocol (CDP).
How it works
start_node_debugspawnsnode --inspect-brk=0 your-script.js, waits for the inspector WebSocket, attaches, and returns the initial pause (first line) with apauseIdand top call frame.- You can then set breakpoints (by file path or URL regex), choose pause-on-exceptions, and resume/step. At each pause, tools can inspect scopes, evaluate expressions, and read console output captured since the last step/resume.
- When the process exits, the server cleans up the CDP session and resets its state.
Quickstart (from an MCP-enabled client)
- Start a debug session
{ "tool": "start_node_debug", "params": { "scriptPath": "/absolute/path/to/app.js" } }
- Set a breakpoint (file path + 1-based line)
{ "tool": "set_breakpoint", "params": { "filePath": "/absolute/path/to/app.js", "line": 42 } }
- Run to next pause (optionally include console/stack)
{ "tool": "resume_execution", "params": { "includeConsole": true, "includeStack": true } }
- Inspect at a pause
{ "tool": "inspect_scopes", "params": { "maxProps": 15 } }
{ "tool": "evaluate_expression", "params": { "expr": "user.name" } }
- Step
{ "tool": "step_over" }
{ "tool": "step_into" }
{ "tool": "step_out" }
- Finish
{ "tool": "stop_debug_session" }
Node.js tool reference (summary)
start_node_debug({ scriptPath, format? })— Launches Node with inspector and returns initial pause.set_breakpoint({ filePath, line })— Breakpoint by file path (1-based line).set_breakpoint_condition({ filePath?, urlRegex?, line, column?, condition, format? })— Conditional breakpoint or by URL regex.add_logpoint({ filePath?, urlRegex?, line, column?, message, format? })— Logpoint via conditional breakpoint that logs and returnsfalse.set_exception_breakpoints({ state })—none | uncaught | all.blackbox_scripts({ patterns })— Ignore frames from matching script URLs.list_scripts()/get_script_source({ scriptId? | url? })— Discover and fetch script sources.continue_to_location({ filePath, line, column? })— Run until a specific source location.restart_frame({ frameIndex, pauseId?, format? })— Re-run the selected frame.resume_execution({ includeScopes?, includeStack?, includeConsole?, format? })— Continue to next pause or exit.step_over|step_into|step_out({ includeScopes?, includeStack?, includeConsole?, format? })— Stepping with optional context in the result.evaluate_expression({ expr, pauseId?, frameIndex?, returnByValue?, format? })— Evaluate in a paused frame; defaults to top frame.inspect_scopes({ maxProps?, pauseId?, frameIndex?, includeThisPreview?, format? })— Locals/closures andthissummary.get_object_properties({ objectId, maxProps?, format? })— Drill into object previews.list_call_stack({ depth?, pauseId?, includeThis?, format? })— Top N frames summary.get_pause_info({ pauseId?, format? })— Pause reason/location summary.read_console({ format? })— Console messages since the last step/resume.stop_debug_session()— Kill process and detach.
Notes
- File paths are converted to
file://URLs internally for CDP compatibility. lineis 1-based; CDP is 0-based internally.- The server buffers console output between pauses; fetch via
includeConsoleon step/resume or withread_console. - Use
set_output_format({ format: 'text' | 'json' | 'both' })to set default response formatting.
Available Tools
This MCP server provides the following Node.js debugging tools. All tools support optional format parameter ('text' or 'json') to control response formatting.
Session Management
start_node_debug- Launch a Node.js script with debugging enabledstop_debug_session- Terminate the debugging session and clean up
Breakpoint Management
set_breakpoint- Set a breakpoint at a specific file and lineset_breakpoint_condition- Set a conditional breakpoint or breakpoint by URL regexadd_logpoint- Add a logpoint that logs messages when hitset_exception_breakpoints- Configure pause-on-exception behavior
Execution Control
resume_execution- Continue execution to the next breakpoint or completionstep_over- Step over the current linestep_into- Step into function callsstep_out- Step out of the current functioncontinue_to_location- Run until reaching a specific locationrestart_frame- Restart execution from a specific call frame
Inspection and Analysis
inspect_scopes- Examine local variables, closures, andthiscontextevaluate_expression- Evaluate JavaScript expressions in the current contextget_object_properties- Drill down into object propertieslist_call_stack- View the current call stackget_pause_info- Get information about the current pause state
Utilities
list_scripts- List all loaded scriptsget_script_source- Retrieve source code for scriptsblackbox_scripts- Configure scripts to skip during debuggingread_console- Read console output captured during debugging
For detailed usage examples and parameter descriptions, see the "Node.js Debugging" section above.
License
MIT
Node.js Debugger MCP questions
How do I add Node.js Debugger MCP to Claude Code?
Run claude mcp add devtools-debugger-mcp -- npx -y devtools-debugger-mcp in your terminal. Add --scope user to make it available in every project.
How do I add Node.js Debugger MCP to Cursor?
Open ~/.cursor/mcp.json and add the server under mcpServers, using the Cursor config shown in the install section above.
What tools does Node.js Debugger MCP provide?
It exposes 21 tools, including start_node_debug, stop_debug_session, set_breakpoint, set_breakpoint_condition, add_logpoint.
How does the server debug Node.js programs?
It launches your script using the built-in inspector flag and communicates via the Chrome DevTools Protocol.
How can I see console output during a debug session?
The server captures console output, which you can review using the read_console tool or by including it in step/resume commands.
Can I set conditional breakpoints?
Yes, you can set conditional breakpoints or breakpoints based on URL regex.