MCP.so
登录

Nest MCP Sse

@HxinY499

基本信息

分类

其他

传输方式

stdio

作者

HxinY499

关于 Nest MCP Sse

基于nest快速开发sse mcp server

Nest MCP Sse 配置

暂无标准配置

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

代码仓库

Nest MCP Sse 工具

工具列表暂未提供

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

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

概览

What is nest-mcp-sse?

nest-mcp-sse is a dynamic NestJS module that lets you quickly build SSE-based MCP servers. It handles Transport lifecycle and McpServer instantiation so you can focus on MCP tool development, without wrapping the official SDK’s native methods.

How to use nest-mcp-sse?

Install the package alongside @modelcontextprotocol/sdk and zod. Import McpModule in your NestJS module and configure it with register, forRoot or forFeature. After registration, you can inject McpServerService to get a native McpServer instance (via getServer) and register tools with the SDK’s original API. SSE and message endpoints are automatically created.

Key features of nest-mcp-sse

  • Quickly create MCP servers in NestJS applications
  • Manage multiple MCP Server instances
  • Automatic SSE connection lifecycle handling
  • Does not wrap native McpServer SDK methods
  • Supports custom SSE and message endpoint names

Use cases of nest-mcp-sse

  • Exposing MCP tools via SSE in an existing NestJS app
  • Running multiple MCP server instances within one NestJS application
  • Rapid prototyping of MCP tools without managing low-level Transport details

常见问题

1

How is nest-mcp-sse different from using the MCP SDK directly?

It only manages McpServer instances and SSE Transport — it does not wrap any native SDK methods, so you use the original SDK API unchanged.

2

What are the runtime requirements?

Node.js, a NestJS project, and the peer dependencies `@modelcontextprotocol/sdk` and `zod`.

3

How is data stored or transmitted?

The server communicates via SSE (Server-Sent Events) over HTTP. No external database is required.

4

How do I access the SSE and message endpoints?

Endpoints are `/{controllerBaseUrl}/{serverId}/sse` and `/{controllerBaseUrl}/{serverId}/messages`. Their names can be customized with `sseEndpoint` and `messagesEndpoint` options.

5

How does authentication work?

The README does not mention built-in authentication. You can add NestJS guards to the generated endpoints for authorization.

评论

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