MCP.so
登录

MultiServerMCP

@arrenxxxxx

关于 MultiServerMCP

To resolve the SSE MCP SDK server's lack of multiple connection support.

基本信息

分类

其他

许可证

MIT

运行时

node

传输方式

stdio

发布者

arrenxxxxx

配置

暂无标准配置

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

代码仓库

工具

未检测到工具

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

概览

What is MultiServerMCP?

MultiServerMCP is a multi-connection MCP (Model Context Protocol) server framework based on SSE for long-connection communication. It provides context and functional extension capabilities for AI assistants and is designed for developers building MCP servers that support multiple client connections simultaneously.

How to use MultiServerMCP?

Install via npm install multi-server-mcp (or yarn/pnpm), then create a server instance with new MultiServerMCP({ name, version }), register tools/resources/prompts using .tool(), .resource(), .prompt(), and start with .start({ transportType: 'sse' }). Currently only SSE transport is supported.

Key features of MultiServerMCP

  • Supports multiple client connections to a single server in SSE mode
  • Tool and permission management by URL grouping
  • Built‑in heartbeat mechanism for connection stability
  • Simplified tool registration process with full MCP protocol compatibility
  • Global session management via SessionManager singleton
  • Convenient global functions to retrieve request parameters and client context by sessionId

Use cases of MultiServerMCP

  • Building an MCP server that serves concurrent AI assistant clients with isolated tool access
  • Implementing permission‑based tool groupings where different URL groups grant different capabilities
  • Creating a centralized MCP server that manages resources, tools, and prompts for multiple connected agents
  • Developing long‑running assistant environments that require persistent SSE connections and session context

FAQ from MultiServerMCP

What does MultiServerMCP offer beyond a standard MCP server?

It adds multi‑client support via SSE, URL‑based tool grouping for permission management, a global SessionManager for accessing client context anywhere in the code, and built‑in heartbeat to maintain stable connections.

What are the runtime requirements?

The framework is a Node.js package (TypeScript‑friendly) and requires a runtime that supports the MCP SDK. It is typically used with Node.js 18+ and TypeScript.

What transport modes are supported?

Currently only SSE (Server‑Sent Events) mode is supported. Other transports like stdio are not available.

How can I access client request parameters or session context?

Use the global functions getSseReqQuery(sessionId) to get SSE connection query parameters, or getClientContextBySessionId(sessionId) to retrieve the full client context (including URL groups). These are accessible anywhere after obtaining the sessionId.

Does MultiServerMCP integrate with specific AI platforms?

The README does not specify any particular AI platform integration. It is a generic MCP server framework designed to be used with any MCP‑compatible AI assistant or client.

评论

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