NestJS MCP
Createdbamada
Simplifies building Model Context Protocol (MCP) servers within NestJS applications using decorators.
About
nestjs-mcp provides seamless integration for building Model Context Protocol (MCP) servers within NestJS applications. Utilizing method decorators such as `@McpResource`, `@McpTool`, and `@McpPrompt`, the module simplifies the process of exposing resources, tools, and prompts to MCP clients. It supports various transport layers, including STDIO and HTTP/SSE, making it easy to create MCP-compliant servers with minimal configuration and boilerplate.
Key Features
- Seamless MCP integration within NestJS.
- Decorator-based resource, tool, and prompt definition.
- Automatic discovery of decorated methods.
- Built-in STDIO and HTTP/SSE transport support.
- Zod schema validation for tool parameters and prompt arguments.
- 1 GitHub stars
Use Cases
- Building CLI tools that communicate via Model Context Protocol.
- Creating HTTP-based MCP servers for AI-powered applications.
- Exposing application configuration and data to MCP clients.