MCP HubMCP Hub
chatmcp

mcprouter

by: chatmcp

api router for MCP Servers

158created 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 Configuration File

    cp .env.example.toml .env.toml
    

    Edit .env.toml as needed.

  2. Start Proxy Server

    go run main.go proxy
    
  3. 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

  1. Edit Configuration File

    cp .env.example.toml .env.toml
    

    Edit .env.toml as needed.

  2. Start API Server

    go run main.go api
    
  3. 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.