Skip to main content
Glama

MCP NodeJS Debugger

by workbackai

Depurador MCP Node.js

Un servidor MCP que brinda a Cursor o Claude Code acceso a Node.js en tiempo de ejecución para ayudarlo a depurar: @hyperdrive-eng/mcp-nodejs-debugger .

Manifestación

Cursor

https://github.com/user-attachments/assets/c193a17e-b0e6-4c51-82aa-7f3f0de17e1a

Claude Code

https://github.com/user-attachments/assets/adb7321b-3a6a-459b-a5c9-df365710d4d8

Inicio rápido

Cursor

  1. Agregar al cursor ( ~/.cursor/mcp.json )imagen
    + { + "mcpServers": { + "nodejs-debugger": { + "command": "npx", + "args": ["@hyperdrive-eng/mcp-nodejs-debugger"] + } + } + }
  2. Ejecute un servidor Node.js en modo de depuración (es decir, con --inspect flat)
    node --inspect {file.js}
  3. Pídale a Cursor que depure su servidor Node.js en tiempo de ejecuciónimagen

Claude Code

  1. Añadir a Claude Code
    claude mcp add nodejs-debugger npx @hyperdrive-eng/mcp-nodejs-debugger
  2. Iniciar Claude Code
    claude ╭───────────────────────────────────────────────────────╮ │ ✻ Welcome to Claude Code research preview! │ │ │ │ /help for help │ │ │ │ Found 1 MCP server (use /mcp for status) │ ╰───────────────────────────────────────────────────────╯
  3. Ejecute un servidor Node.js en modo de depuración (es decir, con --inspect flat)
    # In another terminal node --inspect {file.js}
  4. Pídale a Claude Code que depure su servidor Node.js en tiempo de ejecución
    > I'm getting a runtime error in Node.js {YOUR_RUNTIME_ERROR} Please help me debug this error at runtime using the nodejs-debugger mcp.

Uso

Claude Code

  1. Añadir a Claude Code
    claude mcp add nodejs-debugger npx mcp-nodejs-debugger
  2. Verificar la conexión
    > /mcp ⎿ MCP Server Status • nodejs-debugger: connected
  3. Eliminar de Claude Code
    claude remove nodejs-debugger

Cursor

  1. Agregar al cursor ( ~/.cursor/mcp.json )
    + { + "mcpServers": { + "nodejs-debugger": { + "command": "npx", + "args": ["@hyperdrive-eng/mcp-nodejs-debugger"] + } + } + }
  2. Verificar conexión:imagen
  3. Eliminar del cursor ( ~/.cursor/mcp.json ):
    - { - "mcpServers": { - "nodejs-debugger": { - "command": "npx", - "args": ["@hyperdrive-eng/mcp-nodejs-debugger"] - } - } - }

Ejemplo

Cursor

  1. Ejecute esta sencilla aplicación Node.js: github.com/mdn/express-locallibrary-tutorial :
    node --inspect ./bin/www
  2. Pedirle a Cursor que establezca un punto de interrupciónimagenimagen
  3. Crea un libro en localhost:3000/catalog/book/createimagen
  4. Observar el estado de ejecución de la captura del cursorimagen

Claude Code

  1. Aquí hay un servidor Node.js con errores:
    node --inspect index.js Debugger listening on ws://127.0.0.1:9229/2862f5a2-8618-4516-8429-1248b397e9b4 ####################### ## THE RUNTIME ERROR ## ####################### MongooseServerSelectionError: Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying to access the database from an IP that isn't whitelisted. Make sure your current IP address is on your Atlas cluster's IP whitelist: https://www.mongodb.com/docs/atlas/security-whitelist/ at _handleConnectionErrors (/Users/arthur/Documents/thirdparties/mdn/express-locallibrary-tutorial/node_modules/mongoose/lib/connection.js:1110:11) at NativeConnection.openUri (/Users/arthur/Documents/thirdparties/mdn/express-locallibrary-tutorial/node_modules/mongoose/lib/connection.js:1041:11) at async main (/Users/arthur/Documents/thirdparties/mdn/express-locallibrary-tutorial/app.js:35:3) { reason: TopologyDescription { type: 'ReplicaSetNoPrimary', servers: Map(3) { 'ac-8e6hgk7-shard-00-01.cojoign.mongodb.net:27017' => [ServerDescription], 'ac-8e6hgk7-shard-00-02.cojoign.mongodb.net:27017' => [ServerDescription], 'ac-8e6hgk7-shard-00-00.cojoign.mongodb.net:27017' => [ServerDescription] }, stale: false, compatible: true, heartbeatFrequencyMS: 10000, localThresholdMS: 15, setName: 'atlas-5syy8t-shard-0', maxElectionId: null, maxSetVersion: null, commonWireVersion: 0, logicalSessionTimeoutMinutes: null }, code: undefined }
  2. Claude Code depura el servidor Node.js en tiempo de ejecución:
    > I'm getting a runtime error connecting to mongoose. Please help me debug by checking the value of the mongodb configs at runtime using the nodejs-debugger mcp. ⏺ I'll help you debug the mongoose connection issue using the Node.js debugger. Let's first understand where the MongoDB connection is configured. ⏺ Search(pattern: "**/*.js")… ⎿  Found 100 files ⏺ Let's set a breakpoint at the mongoose connection point and continue: ⏺ nodejs-debugger:set_breakpoint (MCP)(file: … "/Users/arthur/Documents/thirdparties/mdn/express-locallibrary-tutorial/app.js", line: 35)   ⎿  Breakpoint set successfully. ID: 2:34:0:file:///Users/arthur/Documents/thirdparties/mdn/express-locallibrary-tutorial/app\.js ⏺ Let's list all our breakpoints: ⏺ nodejs-debugger:list_breakpoints (MCP)   ⎿  [ { "file": "/Users/arthur/Documents/thirdparties/mdn/express-locallibrary-tutorial/app.js", "line": 35, "id": "2:34:0:file:///Users/arthur/Documents/thirdparties/mdn/express-locallibrary-tutorial/app\\.js" } ] ⏺ Let's try to execute a specific piece of code to check the connection variables: ⏺ nodejs-debugger:nodejs_inspect (MCP)(js_code: "// Get the mongoose module and inspect connection\nconst mongoose = … require('mongoose');\nconsole.log('Current mongoose version:', mongoose.version);\nconsole.log('Current mongoose connection state:', mongoose.connection.readyState);\n// Log connection string safely (without password)\nconst connectionString = process.env.MONGODB_URI || \n \"mongodb+srv://cooluser:coolpassword@cluster0.cojoign.mongodb.net/local_library?retryWr ites=true&w=majority&appName=Cluster0\";\nconsole.log('Connection string (masked):', connectionString.replace(/(?<=mongodb\\+srv:\\/\\/\\w+:)(.+?)(?=@)/, '*****'));")   ⎿  Console output: [log] Current mongoose version: 8.9.5 [log] Current mongoose connection state: 0 [log] Connection string (masked): mongodb+srv://cooluser:coolpassword@cluster0.cojoign.mongodb.net/local_library?retryWri tes=true&w=majority&appName=Cluster0 ⏺ The runtime error you're seeing in your application is related to MongoDB Atlas connection issues. Based on your error message, the problem is: 1. You're using placeholder credentials ("cooluser:coolpassword") To fix this, you have two options: 1. Use a local MongoDB instance by changing line 29-30 in app.js to: const dev_db_url = "mongodb://127.0.0.1:27017/local_library"; 2. Or correctly set up MongoDB Atlas: - Log into Atlas at https://cloud.mongodb.com - Go to Network Access and add your current IP to whitelist - Create proper database credentials - Update the connection string with real credentials Which option would you like to proceed with?
-
security - not tested
F
license - not found
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

Permite a Claude depurar directamente un servidor NodeJS estableciendo puntos de interrupción, inspeccionando variables y recorriendo el código.

  1. Manifestación
    1. Cursor
    2. Claude Code
  2. Inicio rápido
    1. Cursor
    2. Claude Code
  3. Uso
    1. Claude Code
    2. Cursor
  4. Ejemplo
    1. Cursor
    2. Claude Code

Related MCP Servers

  • -
    security
    F
    license
    -
    quality
    A Node.js server that integrates with pytest to facilitate the ModelContextProtocol (MCP) service tools, enabling test execution recording and environment tracking.
    Last updated -
    JavaScript
  • A
    security
    F
    license
    A
    quality
    A server that enables Claude Desktop users to access the Claude API directly, allowing them to bypass Professional Plan limitations and use advanced features like custom system prompts and conversation management.
    Last updated -
    1
    5
    Python
    • Apple
  • -
    security
    F
    license
    -
    quality
    Node.js server implementing Model Context Protocol for filesystem operations, allowing Claude to read, write, and manipulate files and directories in specified locations.
    Last updated -
    39,735
    JavaScript
  • A
    security
    F
    license
    A
    quality
    Provides a secure, isolated JavaScript execution environment with configurable time and memory limits for safely running code from Claude.
    Last updated -
    1
    5
    JavaScript
    • Apple

View all related MCP servers

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/workbackai/mcp-nodejs-debugger'

If you have feedback or need assistance with the MCP directory API, please join our Discord server