home / mcp / chatmcp mcp server router

Chatmcp MCP Server Router

mcprouter for remote mcp servers

Installation
Add the following to your MCP client configuration file.

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.

How to use

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.

How to install

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 watch

Configuration and usage example

To 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"
      }
    }
  }
}