Nest icon

Nest

Createdrekog-labs

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

About

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.

Key Features

  • 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

Use Cases

  • 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.
Craft Better Prompts with AnyPrompt