Overview
What is mcprouter?
mcprouter is a proxy server and API server that acts as an OpenRouter for MCP (Model Context Protocol) servers. It provides endpoints that allow MCP clients like Cursor to connect to and interact with MCP servers through a centralized proxy.
How to use mcprouter?
Copy the example configuration file .env.example.toml to .env.toml and edit it as needed, ensuring mcp_server_commands.fetch is set. Start the proxy server with go run main.go proxy, then add the proxy URL http://localhost:8025/sse/fetch to your MCP client. Alternatively, start the API server with go run main.go api and make requests to http://127.0.0.1:8027/v1/list-tools with a Bearer token