MCP.so
登录

MCP Local Router

@kaichen

关于 MCP Local Router

An MCP (Model Context Protocol) local router that serves as an aggregation proxy for MCP servers.

基本信息

分类

其他

运行时

rust

传输方式

stdio

发布者

kaichen

配置

暂无标准配置

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

代码仓库

工具

未检测到工具

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

概览

What is MCP Local Router?

MCP Local Router is an aggregation proxy for MCP (Model Context Protocol) servers. It connects to multiple upstream MCP servers and combines their functionalities into a single interface for downstream clients.

How to use MCP Local Router?

Run the router with a JSON configuration file and specify the transport: cargo run -- --config mcp-config.json --transport stdio or --transport sse. The configuration file defines each upstream server with command, args, and env fields. For SSE transport, the router exposes aggregated (/sse) and per‑upstream (/sse/{serverName}) endpoints.

Key features of MCP Local Router

  • Supports configuration file specified via command‑line argument.
  • Configures multiple upstream MCP servers from one JSON file.
  • Supports stdio transport with optional environment variable injection.
  • Supports SSE transport with aggregated /sse and per‑upstream /sse/{serverName} endpoints.
  • All SSE connections share a single POST /message?sessionId=… channel.

Use cases of MCP Local Router

  • Aggregate several MCP servers (e.g., filesystem, database) into a single service.
  • Route a client to a specific upstream server using the per‑upstream SSE path.
  • Test or develop multiple MCP servers together without separate client wiring.
  • Inject different environment variables per upstream server for credential isolation.

FAQ from MCP Local Router

What does MCP Local Router do?

It acts as a local proxy that aggregates multiple upstream MCP servers, presenting their combined tools and resources to a client through a single transport endpoint.

What transports are supported?

It supports stdio transport and SSE (Server‑Sent Events) transport. The SSE mode provides both an aggregated stream and individual per‑server streams.

What are the runtime dependencies?

The project is built with Rust 2021 Edition, uses the tokio async runtime, and the rmcp library for MCP protocol handling.

How is the configuration file structured?

The configuration file is JSON with a top‑level "mcpServers" object. Each key is the server name, and the value contains command (the executable), args (command arguments array), and env (environment variable map).

How do I build the router?

Clone the repository and run cargo build --release. The binary will be placed in target/release/.

评论

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