The mcprouter repository provides a proxy and API server for MCP (Managed Configuration Protocol) servers, enabling interaction with MCP clients like Cursor by routing requests and managing configurations through a defined API.
OpenRouter for MCP Servers
This project, mcprouter
, acts as an OpenRouter for MCP (Model Configuration Protocol) servers. It provides a proxy and API server to facilitate communication with MCP servers, enhancing flexibility and control.
.env.example.toml
to .env.toml
and modifying the latter with your desired settings.cp .env.example.toml .env.toml
go run main.go proxy
http://localhost:8025/sse/fetch
. Ensure that mcp_server_commands.fetch
is correctly configured in your .env.toml
file..env.example.toml
to .env.toml
and modifying the latter with your desired settings.cp .env.example.toml .env.toml
go run main.go api
curl
commands, such as:curl -X POST http://127.0.0.1:8027/v1/list-tools \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer fetch'
Verify that mcp_server_commands.fetch
is appropriately set in .env.toml
.
chatmcp/mcprouter
March 13, 2025
March 28, 2025
Go