Node.js Debugger MCP Server
The Node.js Debugger MCP Server provides comprehensive tools for managing and debugging Node.js applications, particularly for AI agents:
Process Management: Start Node.js scripts with debugging enabled, list active processes, and terminate them by PID
Debugger Attachment: Connect to running Node.js processes via debug ports
Execution Control: Set breakpoints (using
file://URLs for reliability), pause execution, and control program flow (step into/out/over functions)Runtime Inspection: Evaluate JavaScript expressions within the current debugging context
Provides debugging capabilities for Node.js applications, including process management, breakpoint setting, code stepping, expression evaluation, and connection to Node.js Inspector API
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Node.js Debugger MCP Server start debugging my app.js and set a breakpoint at line 10"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Node.js Debugger MCP Server
An MCP server that provides Node.js debugging capabilities with process management for AI agents.
Features
Process Management: Start/stop Node.js processes with debugging enabled
Debugging Tools: Set breakpoints, step through code, evaluate expressions
Inspector Integration: Connect to Node.js Inspector API
AI Agent Friendly: Designed for long-running debugging sessions
Related MCP server: MCP Debugger
Installation
Build the server:
npm install npm run buildFor Project-Specific Use: The
.mcp.jsonfile is already configured in this projectFor User-Wide Use: Add to your global Claude Code configuration:
claude mcp add --scope user debugger-mcp node /absolute/path/to/debugger-mcp/build/index.jsFor Global Use: Copy the
.mcp.jsonto your projects or add to global config
Usage with Claude Code
Once configured, you'll have access to these tools in Claude Code:
Process Management
start_node_process- Launch Node.js scripts with debuggingkill_process- Terminate processes by PIDlist_processes- Show all managed processes
Debugging
attach_debugger- Connect to debug portset_breakpoint- Set breakpoints with optional conditionsImportant: Use full
file://URLs for reliable breakpoint hitsExample:
file:///Users/you/project/script.js
step_debug- Step through code (next/step/continue/out)pause_execution- Manually pause a running processevaluate_expression- Evaluate expressions in debug context
Resources
debug://session- Current debug session statedebug://processes- List of managed processes
Example Usage
Start a Node.js process:
Use the start_node_process tool with script: "example-app.js"Attach debugger:
Use attach_debugger tool with the port returned from step 1Set breakpoints and debug:
# Set a breakpoint using full file URL Use set_breakpoint tool with: - file: "file:///absolute/path/to/example-app.js" - line: 5 # Control execution Use step_debug tool with action: "continue"
Key Features
Automatic Pause on Start: Uses
--inspect-brkflag to pause at first lineFull Chrome DevTools Protocol: Real debugging, not simulation
Reliable Breakpoints: Use
file://URLs for consistent breakpoint hitsProcess Management: Track and manage multiple debugging sessions
Testing
Test with the included example app:
node --inspect=9229 example-app.jsThen use the MCP tools to debug it!
Debug the MCP Server
npm run inspectorAvailable Tools
8 toolsattach_debuggerC
Attach debugger to a running Node.js process
Inputs: port (required).
evaluate_expressionC
Evaluate an expression in the current debug context
Inputs: expression (required).
kill_processC
Kill a managed Node.js process
Inputs: pid (required).
list_processesB
List all managed Node.js processes
Inputs: no named parameters.
pause_executionB
Pause execution of the debugged process
Inputs: no named parameters.
set_breakpointA
Set a breakpoint in the debugged process. Use full file:// URLs for reliable breakpoint hits.
Inputs: file (required), line (required), condition.
start_node_processC
Start a Node.js process with debugging enabled
Inputs: script (required), args, cwd.
step_debugC
Step through code execution
Inputs: action (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool has a clearly distinct purpose within the Node.js debugging domain, with no overlapping functionality. For example, attach_debugger, start_node_process, and list_processes handle different aspects of process management, while pause_execution, step_debug, and set_breakpoint target specific debugging actions without ambiguity.
All tool names follow a consistent verb_noun pattern using snake_case, such as attach_debugger, evaluate_expression, and pause_execution. This uniformity makes the tool set predictable and easy to understand, with no deviations in naming conventions across the eight tools.
With 8 tools, the server is well-scoped for Node.js debugging, covering essential operations like process management, execution control, and expression evaluation. Each tool earns its place by addressing a specific need in the debugging workflow, avoiding both bloat and gaps in functionality.
The tool set provides comprehensive coverage for core Node.js debugging tasks, including process lifecycle (start, list, kill), execution control (pause, step), and debugging setup (attach, set breakpoint). A minor gap exists in missing tools for removing breakpoints or inspecting variables, but agents can still perform most debugging workflows effectively.
Maintenance
Related MCP Connectors
Live browser debugging for AI assistants — DOM, console, network via MCP.
Build, run, inspect, and continue AgentScript workflows on connected Super Chrome and Mac clients.
Create, schedule, and run JavaScript jobs, manage files, and inspect runs from your AI agent.
Remote MCP server exposing your Node Command fleet (files, shell, processes, browser) to AI hosts.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables 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.6,026 npm351MIT
- AlicenseAqualityAmaintenanceEnables AI agents to perform step-through debugging of Python, JavaScript/Node.js, and Rust programs using the Debug Adapter Protocol, with support for breakpoints, variable inspection, and stack traces.29194MIT
- AlicenseBqualityDmaintenanceMCP server for debugging Node.js programs through the V8 Inspector Protocol, allowing AI agents to set breakpoints, inspect variables, and step through code.118 npm5MIT
- FlicenseNot gradedqualityDmaintenanceA Node.js debugger for AI agents that enables setting breakpoints, stepping through code, and inspecting variables via the Chrome DevTools Protocol.2-