NestJsMcp
About
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.
Details
- Author
- pirumar
- Categories
- Productivity, Other, AI
Jump to
Setup
Install NestJsMcp in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/pirumar/NestJsMcp
Follow the installation instructions in the repository README, then restart your MCP client.
A comprehensive Model Context Protocol (MCP) server for NestJS development
Supercharge your NestJS development with AI-powered assistance
Features•Installation•Configuration•Tools•Usage•Contributing
NestJS MCP Server is a powerful Model Context Protocol server that provides40+ specialized toolsfor NestJS development. It integrates seamlessly with AI assistants likeClaude 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
Generate production-ready NestJS code with proper decorators, types, and best practices.
Create complete NestJS projects with your preferred database, authentication, and tooling pre-configured.
Generate unit tests, E2E tests, test factories, and mock repositories automatically.
Scan your code for common vulnerabilities (SQL injection, XSS, hardcoded secrets, etc.) with severity ratings.
Generate Docker, Kubernetes, CI/CD pipelines, Nginx configs, and more.
Access NestJS documentation, concepts, and best practices directly through your AI assistant.
- Node.js18.x or higher
- npm9.x or higher
# Clone the repository git clone https://github.com/pirumar/NestJsMcp.git cd nestjs-mcp # Install dependencies npm install # Build the project npm run build # Verify installation npm start
Add to your Claude Desktop configuration file:
macOS:~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:%APPDATA%\Claude\claude_desktop_config.jsonLinux:~/.config/Claude/claude_desktop_config.json
{ "mcpServers": { "nestjs": { "command": "node", "args": ["/absolute/path/to/nestjs-mcp/dist/index.js"] } } }
Add to your Cursor MCP settings (.cursor/mcp.json):
{ "mcpServers": { "nestjs": { "command": "node", "args": ["/absolute/path/to/nestjs-mcp/dist/index.js"] } } }
{ "mcpServers": { "nestjs": { "command": "node", "args": ["/absolute/path/to/nestjs-mcp/dist/index.js"] } } }
Note: Replace/absolute/path/to/nestjs-mcpwith the actual path to your installation.
- 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
- SQL Injection vulnerabilities
- Cross-Site Scripting (XSS)
- Hardcoded secrets and credentials
- Insecure cryptographic practices
- Path traversal vulnerabilities
- Command injection risks
- Sensitive data exposure
- Missing security headers
Access NestJS documentation directly through MCP resources:
"Generate a complete CRUD resource for 'products' with TypeORM entity"
- products.module.ts
- products.controller.ts
- products.service.ts
- product.entity.ts
- create-product.dto.ts
- update-product.dto.ts
"Scaffold a new NestJS project called 'my-api' with PostgreSQL, JWT auth, Swagger, and Docker"
This generates a complete project structure with:
- Database configuration
- Authentication module
- Swagger setup
- Docker & Docker Compose files
- Environment configuration
- Testing setup
"Run a security audit on my NestJS application"
- List of vulnerabilities with severity ratings
- CWE references
- Remediation suggestions
- Overall security score (A-F grade)
"Generate a GitHub Actions workflow for my NestJS project"
- Linting and type checking
- Unit and E2E tests
- Docker build and push
- Deployment stages
"Generate Kubernetes manifests for deploying my NestJS app"
- Deployment with health checks
- Service (ClusterIP/LoadBalancer)
- ConfigMap
- Secret template
- Horizontal Pod Autoscaler
- Ingress configuration
"How do I fix the circular dependency error in NestJS?"
- Common causes
- Step-by-step solutions
- Code examples
nestjs-mcp/ ├── src/ │ ├── index.ts # Main MCP server entry point │ ├── data/ │ │ ├── nestjs-docs.ts # Core NestJS documentation │ │ └── advanced-techniques.ts # Advanced topics & error solutions │ ├── tools/ │ │ ├── index.ts # Tools barrel export │ │ ├── generate.ts # Code generation tools │ │ ├── explain.ts # Documentation tools │ │ ├── analyze.ts # Code analysis tools │ │ ├── scaffold.ts # Project scaffolding │ │ ├── testing.ts # Test generation tools │ │ ├── security.ts # Security audit tools │ │ └── deployment.ts # Deployment config generators │ ├── resources/ │ │ ├── index.ts │ │ └── documentation.ts # MCP resources │ └── prompts/ │ ├── index.ts │ └── templates.ts # Prompt templates ├── dist/ # Compiled JavaScript ├── package.json ├── tsconfig.json └── README.md
The MCP server includes comprehensive documentation and code generation for:
Built-in solutions for common NestJS errors:
- Circular Dependency- Detection and resolution strategies
- Cannot Resolve Dependency- Missing provider troubleshooting
- Invalid Module- Module configuration issues
- Unknown Element- Template and decorator problems
- Timeout Errors- Async operation handling
- Validation Failures- DTO and pipe configuration
- TypeORM Issues- Database connection and query problems
- Authentication Errors- JWT and Passport configuration
Contributions are welcome! Here's how you can help:
# Fork and clone the repository git clone https://github.com/pirumar/NestJsMcp.git cd nestjs-mcp # Install dependencies npm install # Start development mode npm run dev
- Forkthe repository
- Createa feature branch (git checkout -b feature/amazing-feature)
- Commityour changes (git commit -m 'Add amazing feature')
- Pushto the branch (git push origin feature/amazing-feature)
- Opena Pull Request
- Additional code generators
- More security checks
- Extended documentation coverage
- Bug fixes and improvements
- Additional deployment targets
# Ensure the project is built npm run build # Check for TypeScript errors npx tsc --noEmit
- Verify the path inclaude_desktop_config.jsonis absolute
- Restart Claude Desktop after configuration changes
- Check Claude Desktop logs for connection errors
- GraphQL code generation
- Microservices scaffolding
- gRPC integration templates
- Database migration generators
- OpenAPI spec to code generation
- Custom template support
- Plugin architecture
This project is licensed under the MIT License - see theLICENSEfile for details.
- NestJS- The progressive Node.js framework
- Model Context Protocol- The MCP specification
- Anthropic- Claude AI assistant
Built with love for the NestJS community
Persistent memory for any AI assistant. Zero token cost until recall. Stores memories in local SQLite, ranks by 6-factor scoring, returns results 79% smaller than JSON. Works with Claude, ChatGPT, Grok, Cursor, Windsurf, and any MCP client.
After Effects MCP is a full-featured automation bridge that connects AI clients (like VS Code, Claude Desktop, and Claude Code) to Adobe After Effects through MCP, enabling scripted control of compositions, layers, effects, keyframes/graph easing, presets, markers, audio levels, waveform analysis, and effect discovery via a live bridge panel.
Project management your AI can actually run — connect Claude, ChatGPT, Cursor & Codex to one board over MCP.
AIOProductOS spine over MCP — customers, revenue, feedback, work, analytics on one typed record.
The memory layer for AI coding tools. Local-first, semantic, 9 MCP tools with consolidation and project scoping. Works with Claude Code, Cursor, Windsurf & any MCP client.
One MCP server for Claude, ChatGPT & Gemini — wraps your ERPs, CRMs, APIs and knowledge base into a single governed endpoint.
Run your field service business from Claude: answer calls, book and dispatch jobs, build estimates, chase invoices. Built for HVAC, plumbing, electrical, roofing and pest control.
Complete Swiss accounting integration for Bexio via MCP. Works with Claude Desktop, n8n, and any MCP client. 221 tools for invoices, contacts, projects & more.
Persistent memory MCP server for Claude Desktop — remembers context, time, and topics across sessions
An MCP extension for the Claude Desktop application that enables automation and integration.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





