NestJS DevTools MCP
Provides real-time observation of a running NestJS application's runtime state, including logs, registered routes, request history, and configuration.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
nestjs-devtools-mcp
Model Context Protocol (MCP) server for NestJS applications. Exposes runtime logs, routes, request history, errors, and configuration to MCP-compatible AI clients over STDIO.
Architecture
AI Client (Cursor / Claude / etc.)
│
│ MCP (STDIO)
▼
nestjs-devtools-mcp (Bridge)
│
│ HTTP (localhost)
▼
NestJS App (Preload Hook)The bridge communicates with the AI client via STDIO and queries the running NestJS application over localhost HTTP.
Related MCP server: Logseq MCP Server
Setup
1. Configure MCP Client
Add the following configuration to your AI client (Cursor, Claude Desktop, Windsurf, Cline, etc.):
{
"mcpServers": {
"nestjs-devtools": {
"command": "npx",
"args": ["-y", "nestjs-devtools-mcp@latest"]
}
}
}Where to add this:
Cursor: In
~/.cursor/mcp.json(global) or.cursor/mcp.json(project-level)Claude Desktop: In
claude_desktop_config.json:macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Claude Code CLI (alternative to manual JSON editing):
claude mcp add nestjs-devtools -- npx -y nestjs-devtools-mcp@latest
2. Enable in Your NestJS Project
Open a terminal, navigate (cd) into your NestJS project folder (the folder containing package.json), and run:
cd /path/to/my-nestjs-app
npx nestjs-devtools-mcp initThis appends NODE_OPTIONS="--require nestjs-devtools-mcp/register" to .env.local and adds .env.local to .gitignore. No TypeScript source files are modified.
Alternatively, run on demand without creating any configuration files:
npx nestjs-devtools-mcp run -- npm run start:dev3. Start the Application
In your NestJS project folder, start the development server as usual:
npm run start:devThe preload hook attaches during startup, enables log buffering, and exposes local inspection endpoints on localhost.
4. Query via AI Client
Your AI client can now query runtime state using the available MCP tools.
Example queries:
List registered routes, HTTP methods, and controllers.
Retrieve recent runtime errors or unhandled rejections.
Inspect failed HTTP requests, status codes, and latencies.
Check current environment variables and configuration.
Tools
Tool | Description |
| Scans localhost ports for running NestJS instances. |
| Lists registered HTTP routes, controllers, methods, and handler names. |
| Retrieves buffered runtime logs with level and correlation ID filtering. |
| Returns recent runtime errors, bootstrap failures, and 5xx responses with stack traces. |
| Returns recent HTTP requests with duration, status code, method, and correlation ID. |
| Reads configuration from |
Security
Localhost only: Endpoints check
socket.remoteAddressand reject non-localhost requests.Disabled in production: The preload hook does not activate when
NODE_ENV=production.Secret masking: Values matching credential patterns (passwords, tokens, database URLs, auth headers, private keys) are replaced with
***MASKED***.
Development
pnpm install
pnpm build
pnpm test
pnpm ciLicense
MIT © HaoNgo232
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Production telemetry for NestJS apps: traces, errors, regressions, jobs and alerts.
Data + AI observability — monitor and troubleshoot production-grade agents and the context they use.
Query application logs, traces, and metrics from your AI coding assistant via Foam's MCP server.
AI agent observability for production traces, natural-language insights, and improvement loops.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents and automation tools to manage TODO tasks through full CRUD operations. Built with NestJS and supports both SSE and Stdio transports for seamless integration with Claude Desktop, ChatGPT, and n8n.2,105 npmMIT
- AlicenseNot gradedqualityDmaintenanceA NestJS-based server that enables AI agents to interact with Logseq graphs through its HTTP API for managing notes, journals, and blocks. It features specialized tools for project development tracking, including progress logs, technical decisions, and workflow prompts.55 npmMIT
- AlicenseNot gradedqualityDmaintenanceA static-analysis knowledge base for TypeScript/NestJS codebases, served to AI agents over MCP for understanding code without hallucination and excessive token usage.MIT
- FlicenseNot gradedqualityDmaintenanceTransforms a NestJS REST API into an MCP server for AI agents to manage tasks securely via standardized tools.-