drio
Open app

mcp-server-hub

Source

An attempt to create a singleton MCP server hub that is usable by Cline/Roo Code

Catalog onlyCatalog onlySTDIO

Overview

The mcp-server-hub is a project aimed at creating a singleton MCP server hub that can be utilized by Cline/Roo Code, facilitating efficient server management and communication.

To use the mcp-server-hub, clone the repository from GitHub, set up the environment as per the instructions in the README, and integrate it with your Cline/Roo Code applications.

  • Singleton architecture for centralized server management - Compatibility with Cline/Roo Code - Easy integration and setup process
  1. Managing multiple server instances efficiently.
  2. Facilitating communication between different components of Cline/Roo Code applications.
  3. Providing a centralized hub for server-related operations.

Add to your AI client

Use these steps to connect mcp-server-hub 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": {
    "mcp-server-hub-ksze": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-hub-ksze"
      ]
    }
  }
}

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": {
    "mcp-server-hub-ksze": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-hub-ksze"
      ]
    }
  }
}

Claude Code

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

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-server-hub-ksze": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-hub-ksze"
      ]
    }
  }
}

VS Code (Copilot)

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

.vscode/mcp.json

{
  "servers": {
    "mcp-server-hub-ksze": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-hub-ksze"
      ]
    }
  }
}

Windsurf

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

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-server-hub-ksze": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-hub-ksze"
      ]
    }
  }
}

Cline

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

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-server-hub-ksze": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-hub-ksze"
      ]
    }
  }
}

FAQ

What is a singleton server hub?

A singleton server hub ensures that only one instance of the server is running, which helps in managing resources effectively.

Is mcp-server-hub compatible with other programming languages?

Currently, it is designed specifically for Cline/Roo Code, but adaptations may be possible.

Where can I find the documentation?

Documentation is available in the GitHub repository under the 'docs' folder.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1401,"uuid":"35daa76d-32b2-4039-aea9-b1e8eb4d3519","name":"mcp-server-hub","title":"mcp-server-hub","description":"An attempt to create a singleton MCP server hub that is usable by Cline/Roo Code","avatar_url":"https://avatars.githubusercontent.com/u/381556?v=4","created_at":"$D2025-02-20T15:37:23.708Z","updated_at":"$D2025-02-23T07:20:29.619Z","status":"created","author_name":"ksze","author_avatar_url":"https://avatars.githubusercontent.com/u/381556?v=4","tags":"mcp-server-hub,singleton,server-hub","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/ksze/mcp-server-hub","target":"_self","content":"# mcp-server-hub\nAn attempt to create a singleton MCP server hub that is usable by Cline/Roo Code","summary":"$29","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]