MCP Router allows you to manage MCP servers across multiple AI applications from a single interface.
claude mcp add mcp-router --scope user -e "MCPR_TOKEN=your_token_here" -- npx -y @mcp_router/cli@latest connect| Parameter | Value | Description |
|---|---|---|
mcp-router |
Server name | The name to identify this MCP server in Claude Code |
--scope user |
Scope | Adds to user-level config (~/.claude.json) so it's available across all projects |
-e "MCPR_TOKEN=..." |
Environment variable | Your MCP Router authentication token |
-- |
Separator | Separates Claude CLI options from the command to run |
npx -y @mcp_router/cli@latest connect |
Command | The actual command to start the MCP Router CLI |
This adds the following to your ~/.claude.json:
{
"mcpServers": {
"mcp-router": {
"command": "npx",
"args": [
"-y",
"@mcp_router/cli@latest",
"connect"
],
"env": {
"MCPR_TOKEN": "your_token_here"
}
}
}
}- Install and run MCP Router from https://github.com/mcp-router/mcp-router
- Generate a token from the MCP Router UI
- Replace
your_token_herewith your actual token
--scope local(default): Project-level config (.mcp.jsonin current directory)--scope user: User-level config (~/.claude.json)--scope project: Project config in.claude/settings.json
This gist was generated by Claude Code. Please verify the information and consult the official MCP Router documentation for the most up-to-date instructions.