drio
Open app

mcprouter

Source

api router for MCP Servers

Catalog onlyCatalog onlySTDIO

Overview

mcprouter is an API router designed specifically for MCP (Minecraft Client Protocol) servers, functioning as an SSE (Server-Sent Events) proxy.

To use mcprouter, follow these steps:

  1. Edit the configuration file by copying the example file: cp .env.toml.example .env.toml and modify it as needed.
  2. Start the HTTP server using the command: go run main.go server.
  3. Add the Proxy URL to your MCP Client, such as Cursor, using the URL: http://localhost:8025/sse/github.
  • Acts as an SSE proxy for MCP servers. - Easy configuration through a .env.toml file. - Simple setup process with clear instructions.
  1. Integrating real-time data streams into Minecraft servers.
  2. Facilitating communication between Minecraft clients and servers.
  3. Enhancing server capabilities with custom API routing.

Add to your AI client

Use these steps to connect mcprouter in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "mcprouter-chatmcp": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcprouter-chatmcp"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "mcprouter-chatmcp": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcprouter-chatmcp"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mcprouter-chatmcp": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcprouter-chatmcp"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "mcprouter-chatmcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcprouter-chatmcp"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcprouter-chatmcp": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcprouter-chatmcp"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcprouter-chatmcp": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcprouter-chatmcp"
      ]
    }
  }
}

FAQ

What is the purpose of mcprouter?

mcprouter serves as an API router for MCP servers, enabling efficient data handling and communication.

Is mcprouter easy to set up?

Yes! mcprouter provides a straightforward setup process with clear instructions.

What programming language is mcprouter written in?

mcprouter is developed in Go.