MCP Router
The MCP Router server provides service discovery and proxy operations for MCP (Model Control Protocol) services. It offers three core capabilities:
• Search for MCP Servers - Find registered servers using vector-based similarity search with the search_mcp_server tool
• Register New MCP Servers - Add servers to the discovery service using add_mcp_server, specifying name, description, endpoint, and available tools
• Execute Tools on Remote Servers - Proxy tool execution on any registered MCP server via exec_mcp_tool by providing server name, tool name, and parameters
The server acts as a central discovery point and execution proxy, fully complying with the MCP protocol specification while abstracting direct interactions with remote MCP servers.
Provides service discovery and proxy capabilities using Alibaba Cloud's DashScope and DashVector services for vector-based similarity search and intelligent management of registered MCP services
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Router search for MCP servers that can analyze CSV files"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Router
MCP Router is a service discovery and proxy for MCP (Model Control Protocol) services. It allows you to register, discover, and execute tools on remote MCP servers.
Features
Service Discovery: Register and search for MCP services using vector-based similarity search
Tool Execution Proxy: Execute tools on remote MCP servers through the router
MCP Compliance: Fully compliant with the MCP protocol specification
Related MCP server: one-mcp
Architecture
The MCP Router consists of two core modules:
MCP Data Plane: The frontend that interacts with MCP clients, providing service discovery, registration, and tool execution proxying
MCP Discovery Service: The backend that uses Alibaba Cloud's vector database and embedding models for intelligent search and management of registered MCP services
Prerequisites
Python 3.11 or higher
Access to Alibaba Cloud DashScope and DashVector services
API keys for DashScope and DashVector
Installation
Clone the repository:
git clone <repository-url> cd mcp-routerInstall dependencies using uv:
uv add pydantic httpx dashscope dashvector python-dotenvSet up environment variables in
.env:DASHSCOPE_API_KEY=your_dashscope_api_key DASHVECTOR_API_KEY=your_dashvector_api_key DASHVECTOR_ENDPOINT=your_dashvector_endpoint COLLECTION_NAME=mcp_services_collection EMBEDDING_DIMENSION=1024
Usage
Run the MCP Router server:
uv run python mcp_router.pyTools
The MCP Router provides three tools:
search_mcp_server: Search for registered MCP servers based on a query
add_mcp_server: Register a new MCP server with the discovery service
exec_mcp_tool: Execute a tool on a target MCP server
Development
Code Structure
mcp_router.py: Main MCP server implementation (Data Plane)discovery_service.py: Discovery service implementation (Discovery Service)config.py: Configuration management
Available Tools
3 toolsadd_mcp_serverC
Register a new MCP server with the discovery service.
Args:
server_name: Unique name of the server
server_description: Description of the server
server_endpoint: Endpoint URL of the server
tools: List of tools provided by the server
Inputs: server_name (required), server_description (required), server_endpoint (required), tools (required). Returns: result
exec_mcp_toolC
Execute a tool on a target MCP server.
Args:
target_server_name: Name of the target server
target_tool_name: Name of the tool to execute
parameters: Parameters for the tool
Inputs: target_server_name (required), target_tool_name (required), parameters (required). Returns: result
search_mcp_serverC
Search for registered MCP servers based on a query.
Args:
query: Search query
top_k: Number of top results to return (default: 3)
Inputs: query (required), top_k. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose with no overlap: add_mcp_server registers servers, exec_mcp_tool executes tools on servers, and search_mcp_server searches for servers. The descriptions reinforce these distinct roles, making misselection unlikely.
All tool names follow a consistent verb_noun pattern with snake_case: add_mcp_server, exec_mcp_tool, and search_mcp_server. This predictable naming scheme enhances readability and usability for agents.
With only 3 tools, the server feels thin for a router's scope, which typically involves more operations like listing, updating, or removing servers. While the core functions are present, the count is borderline for comprehensive routing capabilities.
The tool set covers basic registration, execution, and search, but lacks operations for updating or deleting servers, which are common in lifecycle management. This creates notable gaps that agents might need to work around for full server management.
Maintenance
Related MCP Connectors
Capability registry for the agentic economy. Semantic search over verified MCP server listings.
The Remote MCP server acts as a standardized bridge between LLM applications (like Claude, ChatGPT, and Cursor) and external services, enabling AI agents to access external tools and resources. Its primary capability is providing a centralized search tool to discover other MCP servers and their respective tools. Unlike local implementations, it runs remotely with OAuth authentication and permission controls for security.
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Search, vet & assemble MCP servers from your agent: verified tools, risk labels, and trust scores.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceProvides a unified MCP interface that proxies requests to multiple backend servers including memory/knowledge graph and vector database services. Enables seamless access to distributed MCP tools through a single endpoint with automatic routing, health monitoring, and retry logic.-
- AlicenseNot gradedqualityDmaintenanceA lightweight MCP server that enables intelligent tool management and semantic search for APIs using sentence-transformers. It supports both REST and MCP interfaces across dual transport modes, allowing users to upload, manage, and query API tools with natural language.1MIT
- AlicenseNot gradedqualityBmaintenanceAI-first MCP server discovery tool that enables agents to search, inspect, and install MCP servers from multiple registries.16AGPL 3.0
- AlicenseAqualityDmaintenanceAggregates and routes multiple MCP servers with intelligent tool recommendation and batch parallel execution, enabling unified access and efficient tool usage.220 npm4MIT
Appeared in Searches
- An MCP router server that dynamically exposes and routes tool calls to multiple MCP servers based on semantic search
- A semantic search router for dynamically discovering and routing MCP tool definitions
- NCP server aggregators for managing and querying dependent NCP servers
- MCP client for discovering and mapping active MCP servers
- An MCP server that connects to all MCP servers in Glama