# Node.js Debugger MCP server

> Enables AI assistants to debug Node.js applications using the Chrome DevTools Protocol with breakpoints, stepping, and variable inspection.

- Repository: https://github.com/ScriptedAlchemy/devtools-debugger-mcp
- Page: https://hostedmcp.org/servers/scriptedalchemy/devtools-debugger-mcp
- Transport: stdio
- Stars: 350
- License: MIT

## Install

### Claude Code

```sh
claude mcp add devtools-debugger-mcp -- npx -y devtools-debugger-mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "devtools-debugger-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "devtools-debugger-mcp"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "devtools-debugger-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "devtools-debugger-mcp"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"devtools-debugger-mcp","type":"stdio","command":"npx","args":["-y","devtools-debugger-mcp"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "devtools-debugger-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "devtools-debugger-mcp"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add devtools-debugger-mcp -- npx -y devtools-debugger-mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.devtools-debugger-mcp]
command = "npx"
args = ["-y", "devtools-debugger-mcp"]
```

### Gemini CLI

```sh
gemini mcp add -s user devtools-debugger-mcp npx -- -y devtools-debugger-mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "devtools-debugger-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "devtools-debugger-mcp"
      ]
    }
  }
}
```

## Tools (21)

- `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`
- `inspect_scopes`
- `evaluate_expression`
- `get_object_properties`
- `list_call_stack`
- `get_pause_info`
- `list_scripts`
- `get_script_source`
- `blackbox_scripts`
- `read_console`

## FAQ

### 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.
