NestJS MCP Server v1.0.0
We're excited to announce the first release of NestJS MCP Server - a comprehensive Model Context Protocol server that supercharges NestJS development with AI-powered assistance.
Highlights
- 40+ Specialized Tools for NestJS development
- Complete Project Scaffolding with database, auth, and deployment options
- Security Auditing with vulnerability detection and severity ratings
- CI/CD & Deployment configurations for Docker, Kubernetes, GitHub Actions, and more
- Comprehensive Documentation with instant access to NestJS concepts and best practices
Features
Code Generation
Generate production-ready NestJS components with proper decorators, types, and best practices:
- Controllers, Services, Modules
- Complete CRUD Resources
- DTOs with validation
- TypeORM/Mongoose Entities
- Guards, Interceptors, Pipes, Filters, Middleware
Project Scaffolding
Create complete NestJS projects with:
- Database integration (PostgreSQL, MySQL, MongoDB, SQLite)
- JWT Authentication with Passport
- Swagger/OpenAPI documentation
- Docker & Docker Compose
- Jest testing configuration
- WebSocket support
Testing Tools
- Unit test generation for services
- Controller test generation
- E2E test generation
- Test factories and mock repositories
- Common test utilities
Security Auditing
- SQL Injection detection
- XSS vulnerability scanning
- Hardcoded secrets detection
- Insecure cryptography checks
- Path traversal detection
- Command injection detection
- Security score grading (A-F)
Deployment Tools
- Dockerfile (multi-stage optimized)
- Docker Compose
- GitHub Actions CI/CD
- GitLab CI/CD
- Kubernetes manifests (Deployment, Service, ConfigMap, Secret, HPA, Ingress)
- PM2 configuration
- Nginx reverse proxy
- Systemd service files
- Environment file templates
Documentation & Learning
- Concept explanations
- Decorator documentation
- CLI command reference
- Best practices by category
- Common error solutions
- Request lifecycle explanation
- Dependency injection guide
Installation
# Clone the repository
git clone https://github.com/yourusername/nestjs-mcp.git
cd nestjs-mcp
# Install dependencies
npm install
# Build
npm run build
# Start
npm start
Configuration
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"nestjs": {
"command": "node",
"args": ["/path/to/nestjs-mcp/dist/index.js"]
}
}
}
Cursor IDE
Add to .cursor/mcp.json:
{
"mcpServers": {
"nestjs": {
"command": "node",
"args": ["/path/to/nestjs-mcp/dist/index.js"]
}
}
}
---
Requirements
- Node.js 18.x or higher
- npm 9.x or higher
---
Documentation
See the README.md for complete documentation including:
- All available tools and their usage
- MCP resources
- Usage examples
- Project structure
- Troubleshooting guide
---
What's Next
Planned for future releases:
- GraphQL code generation
- Microservices scaffolding
- gRPC integration templates
- Database migration generators
- OpenAPI spec to code generation
- Custom template support
---
License
MIT License