A NestJS module to effortlessly create Model Context Protocol (MCP) servers for exposing AI tools, resources, and prompts.
Overview
What is MCP-Nest?
MCP-Nest is a NestJS module designed to simplify the creation of Model Context Protocol (MCP) servers, enabling developers to expose AI tools, resources, and prompts seamlessly from their NestJS applications.
How to use MCP-Nest?
To use MCP-Nest, install the module via npm, import it into your NestJS application, and define your tools and resources using decorators provided by the module.
Key features of MCP-Nest?
- 🚀 Support for multiple transport types including Streamable HTTP, HTTP+SSE, and STDIO.
- 🔍 Automatic discovery and registration of tools, resources, and prompts.
- 💯 Zod-based validation for tool calls.
- 📊 Progress notifications for long-running operations.
- 🔒 Guard-based authentication for securing endpoints.
Use cases of MCP-Nest?
- Building enterprise-ready AI tool servers.
- Exposing various AI resources and prompts for client applications.
- Implementing real-time updates and progress notifications in applications.
FAQ from MCP-Nest?
- Can MCP-Nest be used with any NestJS application?
Yes! MCP-Nest is designed to integrate seamlessly with any NestJS application.
- Is MCP-Nest free to use?
Yes! MCP-Nest is open-source and free to use under the MIT license.
- What transport types does MCP-Nest support?
MCP-Nest supports Streamable HTTP, HTTP+SSE, and STDIO transport types.