proxy for remote mcp servers.
proxy for remote mcp servers.
1. Get Remote MCP Server Key
go to MCP.so, select a hosting server,
click Connect to generate your exclusive server_key.
2. Configure MCP Server in any MCP Client
take Claude Desktop for example:
``json`
{
"mcpServers": {
"fetch": {
"command": "npx",
"args": ["-y", "mcprouter"],
"env": {
"SERVER_KEY": "xxx"
}
}
}
}
Install dependencies:
`bash`
npm install
Build the server:
`bash`
npm run build
For development with auto-rebuild:
`bash`
npm run watch
To use with Claude Desktop, add the server config:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%/Claude/claude_desktop_config.json
On Windows:
`json`
{
"mcpServers": {
"mcprouter": {
"command": "/path/to/mcprouter/build/index.js"
}
}
}
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
`bash``
npm run inspector
The Inspector will provide a URL to access debugging tools in your browser.