
Node.js Debugger MCP
Enables AI assistants to debug Node.js applications using Chrome DevTools Protocol. Provides comprehensive debugging capabilities including breakpoints, stepping, variable inspection, expression evaluation, and console monitoring.
README
Node.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,
this
preview, 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_debug
spawnsnode --inspect-brk=0 your-script.js
, waits for the inspector WebSocket, attaches, and returns the initial pause (first line) with apauseId
and 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 andthis
summary.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. line
is 1-based; CDP is 0-based internally.- The server buffers console output between pauses; fetch via
includeConsole
on 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, andthis
contextevaluate_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
推荐服务器

Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。