Sponsored by Deepsite.site

Node Debugger

Created By
qckfx6 months ago
Content

Node.js Debugger MCP Server

An MCP server that provides Node.js debugging capabilities with process management for AI agents.

Node.js Debugger Server MCP server

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

  1. Build the server:

    npm install
    npm run build
    
  2. For Project-Specific Use: The .mcp.json file is already configured in this project

  3. 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
    
  4. For Global Use: Copy the .mcp.json to 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 debugging
  • kill_process - Terminate processes by PID
  • list_processes - Show all managed processes

Debugging

  • attach_debugger - Connect to debug port
  • set_breakpoint - Set breakpoints with optional conditions
    • Important: Use full file:// URLs for reliable breakpoint hits
    • Example: file:///Users/you/project/script.js
  • step_debug - Step through code (next/step/continue/out)
  • pause_execution - Manually pause a running process
  • evaluate_expression - Evaluate expressions in debug context

Resources

  • debug://session - Current debug session state
  • debug://processes - List of managed processes

Example Usage

  1. Start a Node.js process:

    Use the start_node_process tool with script: "example-app.js"
    
  2. Attach debugger:

    Use attach_debugger tool with the port returned from step 1
    
  3. 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-brk flag 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

Server Config

{
  "mcpServers": {
    "debugger-mcp": {
      "type": "stdio",
      "command": "node",
      "args": [
        "build/index.js"
      ],
      "env": {
        "NODE_ENV": "production"
      }
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Serper MCP ServerA Serper MCP Server
DeepChatYour AI Partner on Desktop
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
CursorThe AI Code Editor
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Tavily Mcp
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Playwright McpPlaywright MCP server
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
WindsurfThe new purpose-built IDE to harness magic
Amap Maps高德地图官方 MCP Server
ChatWiseThe second fastest AI chatbot™
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code