MCP Aggregator

MCP Aggregator

combine-mcp•bynazar256

An MCP server that bridges MCP clients and multiple backend MCP servers, exposing them through a single combined interface.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Combines multiple backend MCP servers behind one stdio MCP server interface for clients.
  • •Prefixes backend tool names with the server name and sanitizes dashes to underscores.
  • •Supports per-server tool filtering via an allowed list.

BEST FOR

  • •Maintaining a single shared MCP configuration with centralized secret management across multiple MCP-capable clients.
  • •Staying within Cursor's tool limit by exposing only selected tools from each backend server.

ABOUT COMBINE-MCP

MCP Aggregator is cataloged as an MCP server attributed to nazar256. An MCP server that bridges MCP clients and multiple backend MCP servers, exposing them through a single combined interface. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP Aggregator are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Why combine MCP servers into one?

It was built to work around Cursor's limitation of only being able to use 2 MCP servers at a time.

Does the aggregator behave as an MCP client too?

Yes, it acts both as an MCP server when talking to clients and as an MCP client when talking to backend MCP servers.

上游原版 README

在 GitHub 查看同一版本原文

README.md · b09ac363a1fd · 采集于 2026-11-13 09:45:57 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

MCP Aggregator

An MCP (Model Context Protocol) aggregator that allows you to combine multiple MCP servers into a single interface. The code is mostly AI-generated.

Why combine MCP servers into one?

The primary reason for this app was to work around Cursor's limitation of only being able to use 2 MCP servers at a time. No matter which, in my case when I added 3rd MCP server, it was breaking the ability to use one of other two.

Overview

The MCP Aggregator acts as a bridge between Cursor (or any other MCP client) and multiple MCP servers. It functions both as an MCP server (when talking to Cursor) and as an MCP client (when talking to backend MCP servers).

Key features:

  • Provides a stdio interface for Cursor and other MCP clients
  • Connects to multiple backend MCP servers
  • Prefixes methods from backend servers (e.g., "shortcut_search_stories" for "search_stories" method from a "shortcut" MCP)
  • Automatically sanitizes tool names by replacing dashes with underscores for Cursor compatibility
  • Configurable via environment variables and JSON config file
  • Debug logging with configurable levels

Installation

You can install the latest version of combine-mcp using our installation script:

# Download and run the installation script
curl -fsSL https://raw.githubusercontent.com/nazar256/combine-mcp/main/install.sh | bash

# Or install a specific version
curl -fsSL https://raw.githubusercontent.com/nazar256/combine-mcp/main/install.sh | bash -s -- -v v1.0.0

The script will:

  • Detect your operating system and architecture
  • Download the appropriate pre-compiled binary
  • Verify the checksum
  • Install it to a suitable location in your PATH
  • Make it executable

Using go install (alternative)

# Install directly from GitHub (binary will be placed in $GOPATH/bin)
go install github.com/nazar256/combine-mcp/cmd/combine-mcp@latest

# Ensure $GOPATH/bin is in your PATH
# For example, add this to your .bashrc or .zshrc:
# export PATH=$PATH:$(go env GOPATH)/bin

Using Docker (alternative)

You can run combine-mcp directly using Docker without installing it locally:

# Run the latest version
docker run --rm -v ~/.config/mcp:/config ghcr.io/nazar256/combine-mcp:latest

# Run a specific version
docker run --rm -v ~/.config/mcp:/config ghcr.io/nazar256/combine-mcp:v1.0.0

# Set environment variables
docker run --rm -v ~/.config/mcp:/config -e MCP_CONFIG=/config/config.json -e MCP_LOG_LEVEL=debug ghcr.io/nazar256/combine-mcp:latest

To use it with Cursor, you'd need to configure the MCP server to use Docker:

{
  "mcpServers": {
    "aggregator": {
      "command": "docker",
      "args": ["run", "--rm", "-v", "~/.config/mcp:/config", "ghcr.io/nazar256/combine-mcp:latest"],
      "env": {
        "MCP_CONFIG": "/config/config.json"
      }
    }
  }
}

Using the Makefile

The project includes a Makefile for common tasks:

# Build the binary
make build

# Run tests
make test

# Clean up build artifacts
make clean

Usage

Configure the aggregator

Basically you can copy existing Cursor MCP config to a location of your choice, let's say ~/.config/mcp/config.json. It should look like this:

Nice feature for Cursor users is filtering tools from MCP servers. You can manage tools to not reach the limit of 40 tools in Cursor and not expose the ones you don't want Cursor to use.

{
  "mcpServers": {
    "shortcut": {
      "command": "npx",
      "args": ["-y", "@shortcut/mcp"],
      "env": {
        "SHORTCUT_API_TOKEN": "your-shortcut-api-token-here"
      },
      "tools": {
        "allowed": ["search-stories", "get-story", "create-story"]
      }
    },
    "github": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-github"],
      "env": {
        "GITHUB_TOKEN": "your-github-token-here"  
      }
    }
  }
}

Configure the aggregator in Cursor

Now in Cursor config you may leave the only one MCP server - aggregator. The config may look like this (assuming you have combine-mcp binary is instlaled your PATH and you have ~/.config/mcp/config.json file):

{
  "mcpServers": {
    "aggregator": {
      "command": "combine-mcp",
      "env": {
        "MCP_CONFIG": "~/.config/mcp/config.json"
      }
    }
  }
}

Environment Variables

  • MCP_CONFIG: Path to the configuration file (required)
  • MCP_LOG_LEVEL: Logging level (error, info, debug, trace) - default: info
  • MCP_LOG_FILE: Path to the log file
  • MCP_PROTOCOL_VERSION: Force a specific protocol version for compatibility
  • MCP_CURSOR_MODE: Enable Cursor-specific compatibility adjustments

Use cases

Unified MCP config for multiple clients

One practical use case is to maintain a single MCP configuration file that is shared across different MCP-capable clients (e.g. Cursor, Windsurf, Gemini-CLI, Codex, Claude Code, GitHub Copilot agents, etc.).

Instead of configuring each client with its own list of MCP servers and duplicating secrets, you:

  • Configure all backend MCP servers (and their secrets) once in the aggregator config.
  • Point each client to the same combine-mcp binary with the same MCP_CONFIG file.
  • Let the aggregator handle prefixing, filtering and normalization of tools for every client.

This has a few benefits:

  • Single source of truth for which MCP servers and tools are available.
  • Centralized secret management – API tokens and other credentials live only in the aggregator config.
  • Consistent behaviour across different IDEs/agents without per-client MCP reconfiguration.
  • Secrets isolation – no need to share secrets with AI agent tools directly.

Tool Name Sanitization

The MCP Aggregator automatically sanitizes tool names by replacing dashes with underscores. This is necessary because Cursor has a known issue where it cannot properly detect or use tools with dashes in their names.

For example:

  • Original tool name: get-user
  • Sanitized tool name: get_user
  • Prefixed tool name (for shortcut server): shortcut_get_user

The sanitization is transparent - when you call a tool using the sanitized name, the aggregator maps it back to the original name when forwarding the request to the backend server.

Tool Filtering

The MCP Aggregator supports optional tool filtering per server. This is useful when you want to:

  • Limit the number of exposed tools to stay within Cursor's tool limit (40 tools maximum)
  • Only expose specific tools from each server
  • Avoid tool name conflicts between servers
  • Improve performance by reducing the number of tools to process

To enable tool filtering, add a tools object to your server configuration with an allowed array listing the tools you want to expose:

{
  "mcpServers": {
    "shortcut": {
      "command": "npx",
      "args": ["-y", "@shortcut/mcp"],
      "env": {
        "SHORTCUT_API_TOKEN": "your-shortcut-api-token-here"
      },
      "tools": {
        "allowed": [
          "search-stories",
          "get-story",
          "create-story",
          "assign-current-user-as-owner"
        ]
      }
    },
    "github": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-github"],
      "env": {
        "GITHUB_TOKEN": "your-github-token-here"
      },
      "tools": {
        "allowed": [
          "create-pr",
          "list-prs",
          "get-pr",
          "merge-pr"
        ]
      }
    }
  }
}

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP Aggregator from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/combine-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools