a year ago
developer-toolsAn MCP (Model Context Protocol) local router that serves as an aggregation proxy for MCP servers.
Overview
what is MCP Local Router?
MCP Local Router is a local router that serves as an aggregation proxy for Model Context Protocol (MCP) servers, allowing multiple upstream MCP servers to be connected and their functionalities aggregated into a single interface for downstream clients.
how to use MCP Local Router?
To use MCP Local Router, you need to run it with a configuration file that specifies the upstream MCP servers and their configurations. The command to run it is:
cargo run -- --config mcp-config.json
key features of MCP Local Router?
- Supports specifying a configuration file via command line arguments.
- Configures multiple upstream MCP servers.
- Supports stdio transport for communication.
- Allows injecting environment variables into stdio transport.
use cases of MCP Local Router?
- Aggregating functionalities from multiple MCP servers into a single interface.
- Simplifying the management of multiple upstream servers for downstream clients.
- Facilitating the development of applications that rely on multiple MCP services.
FAQ from MCP Local Router?
- What is the configuration file format?
The configuration file is in JSON format and specifies the upstream MCP servers and their respective commands and arguments.
- What dependencies are required to run MCP Local Router?
It requires Rust 2021 Edition, tokio async runtime, and various MCP-related libraries.
- How can I build and install MCP Local Router?
You can build it using the command
cargo build --releaseand run it with the specified configuration file.