Best for
- NestJS developers wanting to integrate AI tools seamlessly into existing backends
- Teams needing secure, scalable, and testable MCP servers
- Projects requiring fine-grained authorization and observability within a microservice architecture
This server is ideal for developers wanting to turn their NestJS codebase into an MCP server. It offers strong integration within the NestJS ecosystem with native microservice support for tools, resources, and prompts. However, it requires NestJS experience and may not be suitable for non-NestJS projects.
MCP Nest is a NestJS module to effortlessly expose tools, resources, and prompts for AI from your NestJS applications using the Model Context Protocol (MCP). It runs as a CustomTransportStrategy for NestJS microservices, making tools/resources/prompts real @MessagePattern handlers, so guards, pipes, interceptors, and exception filters apply natively. It supports Streamable HTTP and STDIO transports and serves both the 2025-era protocol and the stateless 2026-07-28 revision concurrently. Leverage NestJS dependency injection to define tools, resources, and prompts via decorators, with features like dynamic capabilities, resource templates, prompts, guard-based authentication, built-in or external authorization servers (OAuth), and server mutation.
In your NestJS project, run npm install @rekog/mcp-nest @modelcontextprotocol/server @modelcontextprotocol/core @modelcontextprotocol/node zod@^4. Optionally, for the built-in authorization server, install @rekog/mcp-nest-auth; for TypeORM store, install @nestjs/typeorm and typeorm. Then follow the README quick start guide using McpStrategy and @McpController decorator.