NestLens MCP
A bridge that lets MCP clients inspect a running NestLens installation for NestJS requests, queries, exceptions and other debugging information.
Overview
NestLens MCP connects an AI agent to debugging information from a running NestLens installation in a NestJS application. NestLens collects application activity such as requests, database queries, exceptions, logs and background jobs and presents it in a dashboard. The separate nestlens-mcp package exposes that running application to an MCP client. The README describes a two-tool hub: one tool lists what the application exposes and the other invokes the selected capability. The server reads the application’s available endpoints each time, so its documented approach can expose a newly available endpoint without a new bridge release. It is read-only by default; enabling writes requires an explicit allow-write option. Setup therefore has two parts. The application first needs NestLens configured in its root module and running. The MCP package then receives the URL of that NestLens instance. The README provides local command examples for Claude Code and Codex and describes an HTTP mode that runs alongside a development or production installation. A Claude Code plugin bundles the server connection with a debugging skill. The project’s broader monitoring features include access controls and data masking. Those are configurable application features, not evidence that exposing any existing deployment is automatically safe. The quick-start example disables collection in production, while the project also documents options for controlled production use. This server is useful when a debugging agent needs to inspect what an application actually recorded, rather than relying on a pasted error message alone. It depends on the reachable NestLens installation and the information that installation collects. Library integrations also differ: the README says some are detected automatically while Prisma, Bull and other integrations need their own setup.
Getting started
Install and configure NestLens in the NestJS application first, with forRoot in the root module once. The README then runs the separate nestlens-mcp package against the installation URL. It documents local Claude Code/Codex commands, a Claude Code plugin and an HTTP mode for a bridge running next to the application.
Compatibility and requirements
The project documents Express and Fastify support for NestLens. Its MCP guide covers Claude Code, Codex, VS Code, Cursor and Claude Desktop. Client setup and application integrations must be configured separately.
Things to know
A running, reachable NestLens application is required. The bridge is read-only unless the allow-write option is passed. Captured activity may include application data, so check the installation’s access and masking configuration. The homepage and README report different watcher totals; this listing does not assign a fixed total.
Frequently asked questions
Does the MCP package replace NestLens inside the application?
No. The README describes nestlens-mcp as a separate server over a running NestLens installation. The application must expose its NestLens data first.
Can an agent change application data by default?
The README says the bridge is read-only unless the operator passes the allow-write option.
Why does the server expose two hub tools?
One lists the available application capabilities and the other runs one. The README says the list is read from the application each time so new endpoints do not require a bridge release.