mcprouter
by: chatmcp
api router for MCP Servers
📌Overview
Purpose: To provide an open router framework for managing MCP (Multi-Channel Protocol) servers.
Overview: MCPRouter is a proxy and API server solution designed for MCP servers, enabling efficient communication and data retrieval through structured command management and easy configuration. It simplifies the setup and integration of proxying functionalities within the MCP ecosystem.
Key Features:
-
Proxy Server: Initiates a proxy server to handle requests and communication between MCP clients and servers, facilitating smooth data flow and interaction.
-
API Server: Launches an API server to manage command requests, allowing users to perform operations such as tool listing through structured API calls, enhancing user accessibility and control.
mcprouter
OpenRouter for MCP Servers
Start Proxy Server
-
Edit Configuration File
cp .env.example.toml .env.toml
Edit
.env.toml
as needed. -
Start Proxy Server
go run main.go proxy
-
Add Proxy URL to MCP Client (e.g., Cursor)
http://localhost:8025/sse/fetch
Ensure
mcp_server_commands.fetch
is set in.env.toml
.
Start API Server
-
Edit Configuration File
cp .env.example.toml .env.toml
Edit
.env.toml
as needed. -
Start API Server
go run main.go api
-
Request API with CURL
curl -X POST http://127.0.0.1:8027/v1/list-tools \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer fetch'
Ensure
mcp_server_commands.fetch
is set in.env.toml
.