概要
What is mcprouter?
mcprouter is a proxy that connects to remote MCP (Model Context Protocol) servers. It is designed for users who want to host MCP servers on MCP.so and access them through a local proxy in any MCP client.
How to use mcprouter?
Obtain a server key from MCP.so by selecting a hosting server and clicking Connect. Then configure your MCP client (e.g., Claude Desktop) with the command npx -y mcprouter and the environment variable SERVER_KEY set to your key. Alternatively, build the server from source using npm run build and point to the built index.js.
Key features of mcprouter
- Acts as a proxy for remote MCP servers.
- Uses a server key generated from MCP.so.
- Runs via npx without permanent installation.
- Works with any MCP client, including Claude Desktop.
- Supports debugging with the MCP Inspector.
Use cases of mcprouter
- Connect to a remote MCP server hosted on MCP.so.
- Access MCP tools without running servers locally.
- Develop and test a proxy setup using the built-in inspector.
FAQ from mcprouter
What is the purpose of mcprouter?
It proxies connections to remote MCP servers, allowing clients to interact with them as if they were local.
How do I get a server key?
Go to MCP.so, select a hosting server, and click Connect to generate your exclusive server_key.
What environment variable is required?
The SERVER_KEY environment variable must contain the server key obtained from MCP.so.
How can I debug mcprouter?
After building the server, run npm run inspector to launch the MCP Inspector, which provides a URL for debugging tools.