Nestjsmcp MCP Server

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

Local serverstdioTypeScript

What is the Nestjsmcp MCP Server?

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

Configuration and credentials

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

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

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
nestjs_generate_interceptorGenerate logging, transform, cache, or timeout interceptors
nestjs_generate_pipeGenerate validation or transform pipes
nestjs_generate_filterGenerate exception filters
nestjs_generate_middlewareGenerate custom middleware
nestjs_scaffold_projectGenerate a complete NestJS project with customizable options
nestjs_generate_unit_testGenerate unit tests for services
nestjs_generate_controller_testGenerate controller unit tests
nestjs_generate_e2e_testGenerate end-to-end tests
nestjs_generate_test_factoryGenerate test data factories
nestjs_generate_mock_repositoryGenerate mock repository for testing
nestjs_generate_test_helpersGenerate common test utilities
nestjs_security_auditComprehensive security audit of your codebase
nestjs_security_checklistGet security best practices checklist
nestjs_generate_secure_mainGenerate security-hardened main.ts
nestjs_generate_dockerfileGenerate optimized multi-stage Dockerfile
nestjs_generate_docker_composeGenerate Docker Compose configuration
nestjs_generate_github_actionsGenerate GitHub Actions CI/CD pipeline
nestjs_generate_gitlab_ciGenerate GitLab CI/CD pipeline
nestjs_generate_kubernetesGenerate Kubernetes deployment manifests
nestjs_generate_pm2_configGenerate PM2 ecosystem configuration
nestjs_generate_nginx_configGenerate Nginx reverse proxy configuration
nestjs_generate_systemd_serviceGenerate systemd service file
nestjs_generate_env_filesGenerate environment configuration files
nestjs_explain_conceptDetailed explanation of NestJS concepts
nestjs_explain_decoratorExplain specific decorators with examples
nestjs_explain_cliExplain NestJS CLI commands
nestjs_list_schematicsList all available NestJS schematics
nestjs_list_decoratorsList decorators by category
nestjs_best_practicesGet best practices by category
nestjs_recommended_packagesGet recommended packages by use case
nestjs_search_docsSearch through NestJS documentation
nestjs_request_lifecycleUnderstand the request lifecycle
nestjs_dependency_injectionLearn about dependency injection
nestjs_get_common_errorsGet solutions for common errors
nestjs_analyze_codeAnalyze code for issues and anti-patterns
nestjs_suggest_improvementsGet improvement suggestions
nestjs_validate_structureValidate project structure

How to install the Nestjsmcp MCP Server

{
  "mcpServers": {
    "nestjs": {
      "command": "node",
      "args": [
        "/absolute/path/to/nestjs-mcp/dist/index.js"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

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

MCP Server for NestJS - Provides tools, resources, and prompts for NestJS development Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.