home / mcp / chatmcp mcp server router
mcprouter for remote mcp servers
Configuration
View docs{
"mcpServers": {
"chatmcp-mcp-server-router": {
"command": "npx",
"args": [
"-y",
"mcprouter"
],
"env": {
"SERVER_KEY": "YOUR_SERVER_KEY"
}
}
}
}You run a lightweight MCP server proxy that routes commands to remote MCP servers. It lets you securely connect to a remote MCP host using a server key and use your local MCP client as if you were talking directly to that remote server. This makes it easy to centralize access and manage multiple remote MCP endpoints from a single client configuration.
You connect your MCP client to the remote server by providing the exclusive server key you generate from the hosting host. Once configured, your MCP client communicates through the proxy as if it were talking directly to the remote server. Use this setup to access upstream MCP services from your preferred MCP client without exposing direct connections.
Prerequisites you need on your machine before installing stay consistent with typical Node.js project requirements. You should have Node.js and npm installed to build and run the MCP server proxy.
# Install dependencies
npm install
# Build the MCP server proxy
npm run build
# Optional: run in watch mode during development for auto-rebuild
npm run watchTo configure the MCP client to use the proxy, you provide a server configuration that points to the proxy runtime and include your exclusive server key. The following example shows how to set up the proxy in your MCP client configuration.
{
"mcpServers": {
"mcprouter": {
"command": "npx",
"args": ["-y", "mcprouter"],
"env": {
"SERVER_KEY": "YOUR_SERVER_KEY"
}
}
}
}