MCP.so
登录

NestJS MCP Server Module

@rekog-labs

基本信息

分类

其他

许可证

MIT

传输方式

stdio

作者

rekog-labs

关于 NestJS MCP Server Module

A NestJS module to effortlessly create Model Context Protocol (MCP) servers for exposing AI tools, resources, and prompts.

NestJS MCP Server Module 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

NestJS MCP Server Module 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is NestJS MCP Server Module?

A NestJS module that exposes tools, resources, and prompts for AI from your NestJS applications using the Model Context Protocol (MCP). It lets you define MCP components in a NestJS-native way with full dependency injection support.

How to use NestJS MCP Server Module?

Install the package and its peer dependencies via npm, import McpModule.forRoot() in your NestJS module, then define tools using the @Tool decorator with Zod-based parameter validation and automatic discovery.

Features of NestJS MCP Server Module

  • Expose NestJS methods as MCP tools with automatic discovery and Zod validation
  • Multi-transport support: HTTP+SSE, Streamable HTTP, and STDIO
  • Serve static and dynamic content through MCP resource and resource template systems
  • Define reusable prompt templates for AI interactions
  • Guard-based authentication with OAuth and built-in or external authorization servers
  • Interactive tool calls with user input elicitation and full HTTP request access

Use cases of NestJS MCP Server Module

  • Build enterprise-ready MCP servers from existing NestJS codebases
  • Expose NestJS service methods as AI-callable tools with automatic validation
  • Serve static or parameterized resources (e.g., files, API data) through MCP
  • Define reusable prompt templates for consistent AI interactions

常见问题

1

What dependencies are required?

`@rekog/mcp-nest`, `@modelcontextprotocol/sdk`, and `zod@^4`. For the built-in authorization server with a database store, also install `@nestjs/typeorm` and `typeorm`.

2

What transport protocols are supported?

HTTP+SSE, Streamable HTTP, and STDIO. Server examples for each are provided in the documentation.

3

How does authentication work?

The module provides guard-based authentication with OAuth support, using either a built-in authorization server (beta) or an external authorization server like Keycloak or Auth0.

4

Where can I find examples and documentation?

Full guides are in the `docs/` directory, and working examples live in the `playground/` directory of the repository.

评论

其他 分类下的更多 MCP 服务器