nestjs_generate_controllerLABSCO SUMMARY
Boilerplate arrives shaped like the rest of the project.
A controller and the service behind it are the pair every new NestJS endpoint starts from, and both come back with decorators and types already correct. What you type is a description of the endpoint rather than the scaffolding around it.
What it is
An MCP server for NestJS development, working with Claude Desktop, Cursor, the Claude Code CLI and other MCP clients. Its generators produce controller and service code with the decorators, types and structure NestJS expects.
What you get
- A NestJS controller generated with its decorators and route handlers in place
- A service generated to sit behind it
- Generated code that follows NestJS conventions rather than needing to be reshaped afterwards
Requirements
Node.js 18.x or higher and npm 9.x or higher. Clone the repository, install and build, then point your client at it.
Setup effort
Build from source — git clone https://github.com/pirumar/NestJsMcp.git
USE CASES
Standing up a new endpoint
Generate the controller and the service together so the route and the logic behind it arrive consistent with each other.
Adding the logic layer behind an existing route
Generate the service alone when the controller is already there, and wire it in — the decorators and injection shape are already right.
Keeping a new module consistent with the old ones
Generate rather than copy-paste from a neighbouring module, so the new files do not inherit whatever was stale in the one you copied.
44 tools
Listed in project docs. Your client may show a different list.
nestjs_generate_servicenestjs_generate_modulenestjs_generate_resourcenestjs_generate_dtonestjs_generate_entitynestjs_generate_guardnestjs_generate_interceptornestjs_generate_pipenestjs_generate_filternestjs_generate_middlewarenestjs_scaffold_projectnestjs_generate_unit_testnestjs_generate_controller_testnestjs_generate_e2e_testnestjs_generate_test_factorynestjs_generate_mock_repositorynestjs_generate_test_helpersnestjs_security_auditnestjs_security_checklistnestjs_generate_secure_mainnestjs_generate_dockerfilenestjs_generate_docker_composenestjs_generate_github_actionsnestjs_generate_gitlab_cinestjs_generate_kubernetesnestjs_generate_pm2_confignestjs_generate_nginx_confignestjs_generate_systemd_servicenestjs_generate_env_filesnestjs_explain_conceptnestjs_explain_decoratornestjs_explain_clinestjs_list_schematicsnestjs_list_decoratorsnestjs_best_practicesnestjs_recommended_packagesnestjs_search_docsnestjs_request_lifecyclenestjs_dependency_injectionnestjs_get_common_errorsnestjs_analyze_codenestjs_suggest_improvementsnestjs_validate_structureBEFORE YOU INSTALL
What to know first
Tools you get
44 tools named in the project's documentation.
Requires
Node.js 18 or later
Where it runs
All 3 documented clients run the server on your machine.
INSTALLATION
Connect your client
You clone and build this one yourself.
Server setup
# Clone the repository
git clone https://github.com/pirumar/NestJsMcp.git
cd NestJsMcp
# Install dependencies
npm install
# Build the project
npm run build
# Verify installation
npm startMCP Clients
Claude Desktop, Cursor, Claude Code
{
"mcpServers": {
"nestjs": {
"command": "node",
"args": [
"<YOUR_PATH_TO_NEST_JS_MCP>/dist/index.js"
]
}
}
}