Skip to main content
Glama

mcp-mux

CI Python Version PyPI License: MIT

A Model Context Protocol (MCP) multiplexer that intelligently routes to the right tool from hundreds of available options using semantic search.

Why mcp-mux?

Problem: Managing multiple MCP servers means dealing with hundreds of tools, making it hard for LLMs to find the right one.

Solution: mcp-mux acts as an intelligent router that exposes just two tools:

  • search - Find tools using natural language

  • execute - Run the tool you found

This dramatically simplifies tool discovery and improves LLM performance with MCP servers.

Related MCP server: toolrank

Requirements

  • Python 3.10+

  • MCP-compatible client (e.g., Claude Desktop)

Installation

# Using uvx (recommended)
uvx mcp-mux init

# Or install globally
pip install mcp-mux

Quick Start

  1. Initialize configuration:

uvx mcp-mux init
  1. Configure your MCP servers in ~/.mux/config.json:

{
  "mcpServers": {
    "filesystem": {
      "command": "uvx",
      "args": ["mcp-server-filesystem", "/Users/me/projects"]
    },
    "github": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-github"]
    }
  }
}
  1. Add mcp-mux to your MCP client configuration:

{
  "mcpServers": {
    "mux": {
      "command": "uvx",
      "args": ["mcp-mux"]
    }
  }
}

How It Works

Instead of exposing hundreds of tools from multiple servers, mcp-mux exposes just two:

  1. search - Find tools using natural language

  2. execute - Run a specific tool

Configuration

# List available embedding models
uvx mcp-mux model --list

# Switch to a different model
uvx mcp-mux model BAAI/bge-small-en-v1.5

License

MIT

Development Status

This project is in early development. Features may change.

Available Tools

2 tools
executeB

Execute a tool on a specific MCP server.

Use this after finding the right tool with the search function. Provide the server name, tool name, and any required arguments.

Inputs: tool (required), server (required), arguments.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 2 tools

    Disambiguation5/5

    search and execute have clearly distinct sequential roles: discovery versus invocation. There is no overlap in purpose, and the descriptions reinforce the intended workflow.

    Naming Consistency5/5

    Both tool names follow a consistent single-verb imperative pattern. The convention is predictable and easy for an agent to follow.

    Tool Count3/5

    The two-tool surface is intentionally minimal for a gateway server, but it is thinner than the typical 3–15 tool range. Each tool earns its place, though the surface feels borderline thin.

    Completeness4/5

    The set covers the core lifecycle of discovering a tool and executing it. However, there is no explicit way to list servers/tools or inspect schemas directly, which are minor gaps agents must work around via search.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Provides a single MCP endpoint that dynamically discovers, routes, policy-checks, and executes hundreds of MCP tools from any agent, with optional LLM-based routing.
      1
      Apache 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Serves MCP clients two tools, search_tools and call_tool, that index hundreds of MCP servers or OpenAPI specs and retrieve only the few tool definitions a request needs, cutting prompt context while raising tool-selection accuracy.
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Exposes hundreds of MCP tools through just four (browse, search, load schemas, and call), so models pay only for the tool definitions they need instead of every schema on every turn. Every call is validated and guarded, with unknown-argument rejection, placeholder detection, timeouts, an audit log, and error hints.
      Apache 2.0
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables organizations to administer remote MCP servers with function-level allow lists and credential modes, then let developers bundle permitted tools behind a single unified endpoint offering just two functions—search and execute—so agents dynamically discover and invoke only authorized tools with every call auditable.
      -