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:
- Edit the configuration file by copying the example file:
cp .env.toml.example .env.tomland modify it as needed. - Start the HTTP server using the command:
go run main.go server. - 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.tomlfile. - Simple setup process with clear instructions.
- Integrating real-time data streams into Minecraft servers.
- Facilitating communication between Minecraft clients and servers.
- 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.