Nest icon

Nest

158

Exposes AI tools, resources, and prompts from NestJS applications using the Model Context Protocol.

关于

MCP-Nest is a NestJS module designed to simplify the creation of Model Context Protocol (MCP) servers. It allows developers to effortlessly expose AI tools, resources, and prompts from their NestJS applications. By leveraging NestJS's dependency injection and familiar patterns, MCP-Nest facilitates the building of complex, enterprise-ready MCP servers. It supports various transport types, including Streamable HTTP, HTTP+SSE, and STDIO, and offers features like automatic discovery, Zod-based validation, progress notifications, and guard-based authentication.

主要功能

  • Supports Streamable HTTP, HTTP+SSE, and STDIO transports.
  • Automatically discovers and registers tools, resources, and prompts.
  • Provides Zod-based tool call validation.
  • Offers progress notifications.
  • Enables guard-based authentication for MCP endpoints.
  • 158 GitHub stars

使用案例

  • Exposing AI models as tools via MCP for use in AI workflows.
  • Creating resources that provide context for AI models.
  • Building custom prompts that can be dynamically accessed and executed.