MCP Catalogs
HomeMCP-Nest screenshot

MCP-Nest

by rekog-labs·647·Score 54

A NestJS module for creating MCP servers with tools, resources, and prompts using dependency injection.

developer-toolsai-llmops-infra
106
Forks
20
Open issues
2 mo ago
Last commit
2d ago
Indexed

Overview

MCP-Nest is a comprehensive implementation of the Model Context Protocol for NestJS applications. It provides a structured way to expose tools, resources, and prompts through MCP with full integration of NestJS features like dependency injection and guards. The library supports multiple transport protocols including HTTP+SSE, Streamable HTTP, and STDIO, making it versatile for different deployment scenarios. It offers sophisticated features like per-tool authorization, built-in OAuth server support, and dynamic capabilities that can be registered at runtime.

Try asking AI

After installing, here are 3 things you can ask your AI assistant:

you:Building enterprise-grade AI tool servers within existing NestJS applications
you:Creating MCP servers with custom authentication and authorization mechanisms
you:Developing reusable prompt templates and parameterized resources for AI interactions

When to choose this

Choose MCP-Nest when you're already using NestJS for your backend and want to build MCP servers with enterprise-grade authentication and tooling.

When NOT to choose this

Avoid if you're not using TypeScript/NestJS or need a more lightweight solution without authentication complexity.

Tools this server exposes

1 tool extracted from the README
  • greeting-tool({ name: string }) => string

    Returns a greeting with progress updates

Note: The README shows a single example tool (greeting-tool) with its implementation. The framework appears to be for creating custom tools, but this is the only concrete example provided in the main README. Additional tools would likely be defin

Comparable tools

mcp-servermcp-json-rpcnestjs-mcp

Installation

npm install @rekog/mcp-nest @modelcontextprotocol/sdk zod@^4

For optional built-in authorization with TypeORM:

npm install @nestjs/typeorm typeorm

**Claude Desktop Configuration**: Add to claude_desktop_config.json:

{
  "mcpServers": {
    "mcp-nest": {
      "command": "npx",
      "args": ["@rekog/mcp-nest", "stdio"]
    }
  }
}

Compare MCP-Nest with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.