MCP NodeJS Debugger
MCP Node.js 디버거
디버깅을 돕기 위해 Cursor 또는 Claude Code가 런타임에 Node.js에 액세스할 수 있도록 하는 MCP 서버: @hyperdrive-eng/mcp-nodejs-debugger .
데모
커서
https://github.com/user-attachments/assets/c193a17e-b0e6-4c51-82aa-7f3f0de17e1a
클로드 코드
https://github.com/user-attachments/assets/adb7321b-3a6a-459b-a5c9-df365710d4d8
Related MCP server: Node.js Debugger MCP
빠른 시작
커서
커서에 추가(
~/.cursor/mcp.json)지엑스피1
디버그 모드 에서 Node.js 서버를 실행합니다(예:
--inspectflat 사용)node --inspect {file.js}런타임에 Node.js 서버를 디버깅하도록 Cursor에 요청합니다.
클로드 코드
클로드 코드에 추가
claude mcp add nodejs-debugger npx @hyperdrive-eng/mcp-nodejs-debugger클로드 코드 시작
claude ╭───────────────────────────────────────────────────────╮ │ ✻ Welcome to Claude Code research preview! │ │ │ │ /help for help │ │ │ │ Found 1 MCP server (use /mcp for status) │ ╰───────────────────────────────────────────────────────╯디버그 모드 에서 Node.js 서버를 실행합니다(예:
--inspectflat 사용)# In another terminal node --inspect {file.js}Claude Code에게 런타임에 Node.js 서버를 디버깅하도록 요청하세요.
> 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.
용법
클로드 코드
클로드 코드에 추가
claude mcp add nodejs-debugger npx mcp-nodejs-debugger연결 확인
> /mcp ⎿ MCP Server Status • nodejs-debugger: connectedClaude Code에서 제거
claude remove nodejs-debugger
커서
커서에 추가(
~/.cursor/mcp.json)+ { + "mcpServers": { + "nodejs-debugger": { + "command": "npx", + "args": ["@hyperdrive-eng/mcp-nodejs-debugger"] + } + } + }연결 확인:
커서에서 제거(
~/.cursor/mcp.json):- { - "mcpServers": { - "nodejs-debugger": { - "command": "npx", - "args": ["@hyperdrive-eng/mcp-nodejs-debugger"] - } - } - }
예
커서
이 간단한 Node.js 앱을 실행해 보세요: github.com/mdn/express-locallibrary-tutorial :
node --inspect ./bin/www커서에 중단점을 설정하도록 요청합니다.
localhost:3000/catalog/book/create에서 책을 만드세요커서 캡처 런타임 상태를 확인하세요
클로드 코드
버그가 있는 Node.js 서버는 다음과 같습니다.
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 }Claude Code는 런타임에 Node.js 서버를 디버깅합니다.
> 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?
Available Tools
13 toolscontinueC
Continues code execution
Inputs: no named parameters.
delete_breakpointC
Deletes a specified breakpoint
Inputs: breakpointId (required).
evaluateC
Evaluates a JavaScript expression in the current context
Inputs: expression (required).
get_console_outputC
Gets the most recent console output from the debugged process
Inputs: limit.
get_locationA
Gets the current execution location when paused
Inputs: no named parameters.
inspect_variablesC
Inspects variables in current scope
Inputs: scope.
list_breakpointsA
Lists all active breakpoints
Inputs: no named parameters.
nodejs_inspectC
Executes JavaScript code in the debugged process
Inputs: js_code (required).
retry_connectC
Manually triggers a reconnection attempt to the Node.js debugger
Inputs: port.
set_breakpointC
Sets a breakpoint at specified line and file
Inputs: file (required), line (required).
step_intoC
Steps into function calls
Inputs: no named parameters.
step_outB
Steps out of current function
Inputs: no named parameters.
step_overA
Steps over to the next line of code
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Most tools have distinct purposes, but 'evaluate' and 'nodejs_inspect' both execute code, causing potential confusion. The stepping and breakpoint tools are clearly differentiated.
Naming mixes conventions: 'continue' is a verb alone, 'nodejs_inspect' is noun_verb, and 'retry_connect' is verb_verb. Most others follow verb_noun, but inconsistency lowers clarity.
13 tools cover essential debugging actions—breakpoints, stepping, inspection, evaluation, and connection—without being excessive or sparse for the domain.
Core debugging workflows are covered, but missing features like call stack inspection, watch variables, and conditional/exception breakpoints create minor gaps.
Maintenance
Related MCP Connectors
Live browser debugging for AI assistants — DOM, console, network via MCP.
Build, debug and break hosted mock APIs from Claude: endpoints, stateful CRUD data, OpenAPI import, response variants and fault injection.
Remote MCP server exposing your Node Command fleet (files, shell, processes, browser) to AI hosts.
Build, run, inspect, and continue AgentScript workflows on connected Super Chrome and Mac clients.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides Node.js debugging capabilities with process management for AI agents, allowing them to start/stop Node.js processes, set breakpoints, step through code, and evaluate expressions.816MIT
- AlicenseNot gradedqualityDmaintenanceEnables 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.6,026 npm351MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI-driven Python debugging with debugpy, allowing Claude Code to control breakpoints, stepping, variable inspection, and expression evaluation.1MIT
- FlicenseAqualityCmaintenanceEnables coding agents to debug Node.js programs via MCP tools, using Chrome DevTools Protocol for launching, attaching, breakpoints, stepping, variables, and console access.212-