Node.js Debugger

v1.0.0Coding Agentsstable

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.

node-js-debugger-mcpmcpai-integration
Share:
342
Stars
0
Downloads
0
Weekly
0/5

What is Node.js Debugger?

Node.js Debugger is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to enables ai assistants to debug node.js applications using chrome devtools protocol. provides comprehensive debugging capabilities including breakpoints, stepping, variable inspection, expression evalu...

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.

This server falls under the Coding Agents category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Enables AI assistants to debug Node.js applications using Ch

Use Cases

Debug Node.js apps via Chrome DevTools.
Set breakpoints and step through code.
Inspect variables and expressions.
ScriptedAlchemy

Maintainer

LicenseMIT License
Languagejavascript
Versionv1.0.0
UpdatedMay 19, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx node-js-debugger-mcp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Node.js Debugger

Node.js Debugger MCP brings the full power of Chrome DevTools Protocol into your AI assistant, allowing Claude and other MCP clients to interactively debug Node.js applications. It exposes tools for starting debug sessions, setting breakpoints (including conditional and log points), stepping through code, inspecting scope variables, evaluating expressions, examining call stacks, and reading console output. This enables AI-assisted debugging workflows where you describe a bug and the AI steps through your code to find it.

Prerequisites

  • Node.js 14 or higher installed (the application being debugged and the MCP server)
  • npm or npx available on your system PATH
  • An MCP-compatible client such as Claude Desktop or Cursor
  • A Node.js application to debug
1

Install the devtools-debugger-mcp package

Install the Node.js Debugger MCP package globally or use it via npx. Installing globally makes it easier to reference in your MCP client configuration.

npm install -g devtools-debugger-mcp
2

Configure your MCP client to use the debugger

Add the debugger MCP server to your MCP client configuration. Use the node command pointing to the installed package's dist/index.js, or use npx directly.

{
  "mcpServers": {
    "nodejs-debugger": {
      "command": "npx",
      "args": ["node-js-debugger-mcp"]
    }
  }
}
3

Start your Node.js application in debug mode

Launch your Node.js application with the --inspect or --inspect-brk flag to expose the Chrome DevTools Protocol endpoint that the MCP server will connect to.

node --inspect-brk your-app.js
# or for a running app on a specific port:
node --inspect=9229 your-app.js
4

Start a debug session via your AI assistant

Ask your AI assistant to start a debug session. The start_node_debug tool connects to the running Node.js process via the DevTools Protocol WebSocket endpoint.

5

Set breakpoints and step through code

Instruct your AI to set breakpoints at specific files and line numbers using set_breakpoint, then use resume_execution, step_over, step_into, and step_out to navigate through the code. Use inspect_scopes to examine variable values.

Node.js Debugger Examples

Client configuration (Claude Desktop)

Full claude_desktop_config.json entry for Node.js Debugger MCP.

{
  "mcpServers": {
    "nodejs-debugger": {
      "command": "npx",
      "args": ["node-js-debugger-mcp"]
    }
  }
}

Prompts to try

Example prompts that work well once the Node.js Debugger MCP is connected to Claude Desktop.

- "Start a debug session on the Node.js process running on port 9229"
- "Set a breakpoint at line 42 of src/handlers/auth.js and resume execution"
- "Step through the processPayment function and show me all variable values"
- "Set a conditional breakpoint at line 88 that only breaks when user.role === 'admin'"
- "Show me the current call stack and evaluate the expression 'req.body'"
- "Read the console output from the last 20 log entries"

Troubleshooting Node.js Debugger

Cannot connect to Node.js debug session — connection refused

Make sure your Node.js app was started with the --inspect or --inspect-brk flag. The default debug port is 9229. Verify the process is running with 'ps aux | grep node' and check that port 9229 is not blocked by a firewall.

Breakpoints are not being hit during execution

If your app is TypeScript or transpiled, ensure source maps are enabled (sourceMap: true in tsconfig.json). The debugger supports source maps but needs them to be generated to map transpiled line numbers back to source.

Debug session disconnects unexpectedly

Node.js debug sessions can time out if the process is idle. Use restart_frame to reconnect, or restart the debug session with start_node_debug. Also ensure only one debugger client is connected at a time.

Frequently Asked Questions about Node.js Debugger

What is Node.js Debugger?

Node.js Debugger is a Model Context Protocol (MCP) server that 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. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Node.js Debugger?

Follow the installation instructions on the Node.js Debugger GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Node.js Debugger?

Node.js Debugger works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Node.js Debugger free to use?

Yes, Node.js Debugger is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Coding Agents MCP Servers

Explore all coding agents servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "node-js-debugger-mcp": { "command": "npx", "args": ["-y", "node-js-debugger-mcp"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Node.js Debugger?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides