https://github.com/chatmcp/mcprouter
api router for MCP Servers
https://github.com/chatmcp/mcprouter
chatmcp mcp mcprouter mcpservers
Last synced: about 1 year ago
JSON representation
api router for MCP Servers
- Host: GitHub
- URL: https://github.com/chatmcp/mcprouter
- Owner: chatmcp
- License: other
- Created: 2025-03-13T14:57:50.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-01T10:08:28.000Z (about 1 year ago)
- Last Synced: 2025-04-02T08:04:59.629Z (about 1 year ago)
- Topics: chatmcp, mcp, mcprouter, mcpservers
- Language: Go
- Homepage: https://mcp.so
- Size: 114 KB
- Stars: 187
- Watchers: 3
- Forks: 32
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-mcp - chatmcp/mcprouter - mcprouter is an API router and proxy server designed to facilitate efficient communication and interaction with Model Context Protocol (MCP) servers, enabling clients to route and access MCP services through proxying and API requests. (MCP Utilities & Tools / Gateways)
- StarryDivineSky - chatmcp/mcprouter
- awesome-mcp-servers - **mcprouter** - api router for MCP Servers `go` `chatmcp` `mcp` `mcprouter` `mcpservers` `go install chatmcp/mcprouter@latest` (⚙️ DevOps)
- awesome-ccamel - chatmcp/mcprouter - api router for MCP Servers (Go)
README
# mcprouter
OpenRouter for MCP Servers

## Start Proxy Server
1. edit config file
```shell
cp .env.example.toml .env.toml
```
edit `.env.toml` as needed.
2. start proxy server
```shell
go run main.go proxy
```
3. add Proxy URL to MCP Client like Cursor
`http://localhost:8025/sse/fetch`
make sure you have set `mcp_server_commands.fetch` in `.env.toml`
## Start API Server
1. edit config file
```shell
cp .env.example.toml .env.toml
```
edit `.env.toml` as needed.
2. start api server
```shell
go run main.go api
```
3. request api with curl
```shell
curl -X POST http://127.0.0.1:8027/v1/list-tools \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer fetch'
```
make sure you have set `mcp_server_commands.fetch` in `.env.toml`