MCP Server NestJS Module Library
@adrian-d-hidalgo
About MCP Server NestJS Module Library
No overview available yet
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"nestjs-mcp-server": {
"command": "npx",
"args": [
"@modelcontextprotocol/inspector"
]
}
}
}Tools
No tools detected
Fetch the live tool list by running this server in a temporary sandbox using the button above.
Overview
What is MCP Server NestJS Module Library?
MCP Server NestJS Module Library is a modular library for building Model Context Protocol (MCP) servers using NestJS. It provides decorators, modules, and integration patterns to expose MCP resources, tools, and prompts in a scalable, maintainable way. It wraps the official @modelcontextprotocol/sdk and stays compatible with its types and specification.
How to use MCP Server NestJS Module Library?
Install the package along with peer dependencies (@nestjs-mcp/server, @modelcontextprotocol/sdk, zod). Register the MCP server globally with McpModule.forRoot or McpModule.forRootAsync in your root module, providing a name and version. Define capabilities using @Resolver, @Tool, @Resource, and @Prompt decorators. Use McpModule.forFeature in feature modules to organize large servers.
Key features of MCP Server NestJS Module Library
- Decorators for MCP resources, tools, and prompts.
- Global registration via
McpModule.forRootandforRootAsync. - Feature module registration with
McpModule.forFeature. - Guard support at global, resolver, and method levels.
- Session management and configurable transport options (SSE, stdio).
- Wraps the official
@modelcontextprotocol/sdkfor compatibility.
Use cases of MCP Server NestJS Module Library
- Expose database records as read‑only MCP resources.
- Provide AI‑callable tools for external actions or computations.
- Organize a large MCP server into separate feature modules.
- Build a maintainable, testable MCP server within a NestJS application.
FAQ from MCP Server NestJS Module Library
What is MCP?
The Model Context Protocol (MCP) is an open protocol for connecting LLMs to external data, tools, and prompts.
What are the runtime dependencies?
You need @nestjs-mcp/server, @modelcontextprotocol/sdk, and zod installed.
How do I configure the server name and version?
Pass name and version (and optionally instructions, capabilities, logging, transports, and protocolOptions) to McpModule.forRoot.
Can I use guards with MCP capabilities?
Yes. Guards can be applied globally, at the resolver (class) level, or at the method level. MCP execution context is available via McpExecutionContext.
What transport options are available?
The library supports SSE and stdio transports. You can disable SSE by setting transports: { sse: { enabled: false } } in the module options.
Frequently asked questions
What is MCP?
The Model Context Protocol (MCP) is an open protocol for connecting LLMs to external data, tools, and prompts.
What are the runtime dependencies?
You need `@nestjs-mcp/server`, `@modelcontextprotocol/sdk`, and `zod` installed.
How do I configure the server name and version?
Pass `name` and `version` (and optionally `instructions`, `capabilities`, `logging`, `transports`, and `protocolOptions`) to `McpModule.forRoot`.
Can I use guards with MCP capabilities?
Yes. Guards can be applied globally, at the resolver (class) level, or at the method level. MCP execution context is available via `McpExecutionContext`.
What transport options are available?
The library supports SSE and stdio transports. You can disable SSE by setting `transports: { sse: { enabled: false } }` in the module options.
Basic information
More Developer Tools MCP servers

Kaiva Bridge
Kaiva Bridge turns any Postgres database or OpenAPI spec into a secure, hosted MCP server — per-tool access control, every call audited. Dependency Trust gives coding agents the senior-engineer check before adding a dep
Vibgrate MCP
VibgrateQuery your team's drift, vulnerability, and migration data from any AI assistant. Vibgrate MCP connects Cursor, Claude, ChatGPT, Windsurf, or VS Code to Vibgrate Cloud: 51 tools for DriftScores, CVEs and EOL runtimes, up

CircleCI MCP Server
CircleCIManage CI/CD pipelines, debug failed builds, and optimize test suites directly from your AI agents - no terminal required. The CircleCI MCP Server is a remote server hosted by CircleCI that connects AI tools and agents

Moxie Docs
Jackalope-DevAutomated codebase documentation for GitHub: searchable docs, MCP context for AI agents, doc drift detection, and Friday Cleanup PRs.

Routebase
RoutebaseRoutebase keeps your API's design, docs, contract tests, mocks and monitoring in one living OpenAPI spec so they can't drift apart. Agents work on that same source of truth, under your team's permissions.
Comments