Node Debugger
qckfx/node-debugger-mcp · 16 stars · JavaScript · MIT
MCP server
Install
The repo has no one-line install. Follow its README.
Files
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
Installation
-
Build the server:
npm install npm run build
-
For Project-Specific Use: The
.mcp.jsonfile is already configured in this project -
For 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.js
-
For 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 conditions- Important: Use full
file://URLs for reliable breakpoint hits - Example:
file:///Users/you/project/script.js
- Important: Use full
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 1 -
Set 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 line - Full Chrome DevTools Protocol: Real debugging, not simulation
- Reliable Breakpoints: Use
file://URLs for consistent breakpoint hits - Process Management: Track and manage multiple debugging sessions
Testing
Test with the included example app:
node --inspect=9229 example-app.js
Then use the MCP tools to debug it!
Debug the MCP Server
npm run inspector
Facts
- Kind
- MCP server
- Group
- Uncategorized
- Stars
- 16
- License
- MIT
- Language
- JavaScript
- Last push
- 2025-06-19
- Forks
- 3
- 1REAio.github.morluto/reaReverse engineer anything from your terminal or agent with one CLI and MCP server.125.3k
- 2com.browser-use/browser-usecom.browser-use/browser-useControl a real Chrome browser to complete any task: fill forms, extract data, book flights.117.7k
- 3World Monitorapp.worldmonitor/mcpLive markets, conflicts, country risk, chokepoints, energy, and China decision signals. 93 tools.88.3k
- 4Scrapling MCP Serverd4vinci/scrapling🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scraplingdev86.9k
- 5Everythingmodelcontextprotocol/serversThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test server for builders of MCP clients. It implements prompts, tools, resources, sampling, and more to showcase MCP capabilities.85.8k
- 6Fetchmodelcontextprotocol/serversA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.85.8k