MCP server for JavaScript and TypeScript debugging via the Chrome DevTools Protocol

MCP server for JavaScript and TypeScript debugging via the Chrome DevTools Protocol

mcp-js-debugger•byjohngrimes

An MCP server that connects AI assistants to CDP-compatible debuggers so they can set breakpoints, step through execution, inspect call stacks, and evaluate expressions in JavaScript and TypeScript applications.

License: Apache-2.0•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Connects to any CDP-compatible debugger, including Node.js, Chrome, and Edge, via a WebSocket URL.
  • •Sets, lists, and removes breakpoints, and supports stepping over, into, and out of code.
  • •Inspects call stacks and scope variables, and evaluates expressions in any stack frame.
  • •Provides full source map support so call stacks and breakpoints reflect original sources of transpiled code.

BEST FOR

  • •AI assistants debugging Node.js applications by setting breakpoints and inspecting runtime state.
  • •Debugging transpiled TypeScript or bundled JavaScript using original source locations.
  • •Investigating exceptions and variable values during a paused debugging session.

ABOUT MCP-JS-DEBUGGER

MCP server for JavaScript and TypeScript debugging via the Chrome DevTools Protocol is cataloged as an MCP server attributed to johngrimes. An MCP server that connects AI assistants to CDP-compatible debuggers so they can set breakpoints, step through execution, inspect call stacks, and evaluate expressions in JavaScript and TypeScript applications. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Apache-2.0. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP server for JavaScript and TypeScript debugging via the Chrome DevTools Protocol are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which debug targets can it connect to?

It can connect to any CDP-compatible debugger, such as Node.js, Chrome, or Edge.

How does it handle debugging transpiled code?

It automatically loads source maps, so call stacks show original source locations, breakpoints can be set on original source files, and original source can be returned.

Upstream README

View this exact version on GitHub

README.md · 86d3f1a9a192 · Fetched 2026-11-13 13:25:49 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

MCP JS Debugger

An MCP (Model Context Protocol) server that exposes Chrome DevTools Protocol debugging capabilities, enabling AI assistants to debug JavaScript and TypeScript applications.

Features

  • Connect to any CDP-compatible debugger (Node.js, Chrome, Edge)
  • Set, list, and remove breakpoints
  • Step through code (over, into, out)
  • Inspect call stacks with source map support
  • Evaluate expressions in any stack frame
  • View and modify variables
  • Pause on exceptions
  • Full source map support for debugging transpiled code

Installation

npm install
npm run build

Claude Code integration

Add to your Claude Code configuration:

claude mcp add mcp-js-debugger -- npx mcp-js-debugger

Or add to .mcp.json:

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

Usage

Starting a debug target

Start your Node.js application with the inspector:

# Pause on first line (recommended for setting initial breakpoints)
node --inspect-brk=9229 your-script.js

# Or start without pausing
node --inspect=9229 your-script.js

Available tools

ToolDescription
connect_debuggerConnect to a CDP endpoint via WebSocket URL
disconnect_debuggerDisconnect from a debugging session
set_breakpointSet a breakpoint by URL and line number
remove_breakpointRemove a breakpoint by ID
list_breakpointsList all breakpoints in a session
resume_executionResume execution after pause
step_overStep over the current statement
step_intoStep into a function call
step_outStep out of the current function
pause_executionPause running execution
get_call_stackGet the current call stack with source locations
evaluate_expressionEvaluate a JavaScript expression
get_scope_variablesGet variables in a scope
set_variable_valueModify a variable's value
set_pause_on_exceptionsConfigure exception handling
get_original_locationMap generated to original source location
get_script_sourceGet script source code
list_scriptsList loaded scripts

Example workflow

  1. Start your application with --inspect-brk:

    node --inspect-brk=9229 app.js
    
  2. Get the WebSocket URL:

    curl http://localhost:9229/json
    
  3. Connect the debugger:

    connect_debugger(websocket_url: "ws://localhost:9229/<id>")
    
  4. Set breakpoints:

    set_breakpoint(session_id: "...", url: "file:///path/to/app.js", line_number: 10)
    
  5. Resume execution to hit the breakpoint:

    resume_execution(session_id: "...")
    
  6. Inspect state when paused:

    get_call_stack(session_id: "...")
    get_scope_variables(session_id: "...", call_frame_id: "...", scope_index: 0)
    evaluate_expression(session_id: "...", expression: "myVariable")
    
  7. Continue debugging:

    step_over(session_id: "...")
    resume_execution(session_id: "...")
    

Source map support

The server automatically loads source maps for transpiled code (TypeScript, bundled JavaScript, etc.). When source maps are available:

  • Call stacks show original source locations
  • Breakpoints can be set on original source files
  • get_original_location maps generated positions to original source
  • get_script_source can return original source content

Development

# Build
npm run build

# Run tests
npm test

# Run tests with coverage
npm run test:coverage

# Watch mode for development
npm run dev

Architecture

  • cdp-client.ts - Low-level Chrome DevTools Protocol client wrapper
  • session-manager.ts - Manages multiple debugging sessions
  • source-map-manager.ts - Handles source map loading and position mapping
  • server.ts - MCP server implementation with tool handlers
  • types.ts - TypeScript type definitions

Requirements

  • Node.js 18.0.0 or later
  • A CDP-compatible debug target (Node.js, Chrome, Edge, etc.)

Licence

Apache-2.0

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP server for JavaScript and TypeScript debugging via the Chrome DevTools Protocol from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-js-debugger)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools