MCP HubMCP Hub
chatmcp

mcprouter

by: chatmcp

api router for MCP Servers

234created 13/03/2025
Visit
API
router

📌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

  1. Edit config file
cp .env.example.toml .env.toml

Edit .env.toml as needed.

  1. Start proxy server
go run main.go proxy
  1. 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
cp .env.example.toml .env.toml

Edit .env.toml as needed.

  1. Start API server
go run main.go api
  1. 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'

Make sure you have set mcp_server_commands.fetch in .env.toml.