Nestjsmcp MCP Server

MCP Server for NestJS - Provides tools, resources, and prompts for NestJS development

Local serverstdioTypeScript

What is the Nestjsmcp MCP server?

Nestjsmcp MCP server exists for a simple reason — assistants are far more useful when they can act on Nestjsmcp directly instead of describing what you should do. MCP Server for NestJS - Provides tools, resources, and prompts for NestJS development.

What you get

NestJS MCP Server is a powerful Model Context Protocol server that provides 40+ specialized tools for NestJS development. It integrates seamlessly with AI assistants like Claude Desktop, Cursor, Claude Code CLI, and any MCP-compatible client.

  • Accelerate Development — Generate boilerplate code, controllers, services, and complete CRUD resources in seconds
  • Best Practices Built-in — All generated code follows NestJS best practices and conventions
  • Security First — Built-in security audit tools to identify vulnerabilities in your code
  • Complete Ecosystem — From scaffolding to deployment, covers the entire development lifecycle
  • AI-Powered Learning — Instant explanations of NestJS concepts, decorators, and patterns

Setting it up

The server ships on npm as tsc, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

What the assistant can call

Once Nestjsmcp is connected, these are the calls the assistant has available:

  • Database — PostgreSQL, MySQL, MongoDB, SQLite
  • Authentication — JWT-based auth with Passport
  • Documentation — Swagger/OpenAPI integration
  • Containerization — Docker & Docker Compose
  • Testing — Jest configuration with coverage
  • WebSockets — Socket.io integration
  • Cross — Site Scripting (XSS)
  • nestjs_generate_controller — Generate controllers with optional CRUD operations
  • nestjs_generate_service — Generate services with repository integration
  • nestjs_generate_module — Generate modules with providers and imports
  • nestjs_generate_resource — Generate complete CRUD resources (module, controller, service, entity, DTOs)
  • nestjs_generate_dto — Generate DTOs with class-validator decorators

Configuration and credentials

  • Node.js 18.x or higher - npm 9.x or higher

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Nestjsmcp.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the nestjsmcp mcp server does with a few real requests.

Choosing this one

This sits in the database access group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Nestjsmcp's toolset — Database, Authentication, Documentation and 11 more — is a fair guide to whether it matches your workflow. It is maintained by pirumar; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Nestjsmcp's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Available tools

ToolWhat it does
DatabasePostgreSQL, MySQL, MongoDB, SQLite
AuthenticationJWT-based auth with Passport
DocumentationSwagger/OpenAPI integration
ContainerizationDocker & Docker Compose
TestingJest configuration with coverage
WebSocketsSocket.io integration
CrossSite Scripting (XSS)
nestjs_generate_controllerGenerate controllers with optional CRUD operations
nestjs_generate_serviceGenerate services with repository integration
nestjs_generate_moduleGenerate modules with providers and imports
nestjs_generate_resourceGenerate complete CRUD resources (module, controller, service, entity, DTOs)
nestjs_generate_dtoGenerate DTOs with class-validator decorators
nestjs_generate_entityGenerate TypeORM/Mongoose entities
nestjs_generate_guardGenerate auth, roles, or custom guards

How to install the Nestjsmcp MCP server

{
  "mcpServers": {
    "nestjsmcp": {
      "command": "npx",
      "args": ["-y", "tsc"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • Node.js 18.x or higher - npm 9.x or higher

Example prompts to try

  • Use Nestjsmcp to Database.
  • Use Nestjsmcp to Authentication.
  • Use Nestjsmcp to Documentation.

Frequently asked questions

It connects Nestjsmcp to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (Database, Authentication, Documentation, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Nestjsmcp directly.