Connect, Route, and Orchestrate Your MCPs
A central MCP server that intelligently routes queries to multiple MCP servers with AI-powered or rule-based routing. No API key required to get started.
Powerful Features
Everything you need to orchestrate multiple MCP servers efficiently
Multi-MCP Connection
Connect to multiple MCP servers simultaneously and leverage all their capabilities in one unified interface.
AI-Powered Routing
Uses LLM to intelligently route queries to the most appropriate MCP and tool. Works with OpenAI or Anthropic.
Intelligent Routing
Analyzes query intent and automatically determines which MCP servers to call for optimal results.
Async Execution
Parallel execution of multiple MCP calls for faster responses and improved performance.
Tool Discovery
Automatically discovers and indexes all available tools from connected MCP servers.
Fallback Support
Automatically falls back to rule-based routing if AI routing fails or is unavailable. No API key required.
How It Works
Simple yet powerful architecture for intelligent query routing
User Query
Your question or command
Master MCP Server
Query Analyzer
Analyzes intent and context
MCP Router
Selects optimal MCP & tool
MCP Router
MCP Coding
MCP Memory
MCP Tools
Unified Response
Aggregated result from multiple MCPs
AI-Powered Routing
- ✓Uses LLM for intelligent decisions
- ✓Supports OpenAI & Anthropic
- ✓Best for complex queries
Rule-Based Routing
- ✓No API key required
- ✓Fast keyword matching
- ✓Works out-of-the-box
Installation
Get started with Master MCP in minutes
Quick Start
1. Clone the Repository
git clone https://github.com/ashcastelinocs124/master-mcp.git
cd master-mcp2. Install Dependencies
pip install -r requirements.txt3. Run the CLI
python src/cli.pyOptional: AI-Powered Routing
Master MCP works out-of-the-box with rule-based routing. For enhanced AI-powered routing, set an API key:
# OpenAI (default)\nexport OPENAI_API_KEY=your_key_here\n\n# Or use Anthropic\nexport ANTHROPIC_API_KEY=your_key_here\nexport MASTER_MCP_AI_PROVIDER=anthropicCursor IDE Integration
Use Master MCP directly in Cursor with the @master-mcp command:
@master-mcp query_mcp "What model should I use?"@master-mcp list_mcps