mcp-multi-server
Verified Safeby apisani1
Overview
Orchestrates multiple Model Context Protocol (MCP) servers, aggregating their capabilities (tools, resources, prompts) for unified access and intelligent routing, particularly useful for AI agents.
Installation
poetry run python3 -m examples.client.chat_clientEnvironment Variables
- OPENAI_API_KEY
Security Notes
The 'eval' function is used in 'tests/conftest.py' within a mock for a 'calculate' tool. This is in test code, not directly in the production client library, and its purpose is for mocking a tool invocation. While 'eval' can be highly dangerous if used with untrusted input in production, its isolated use in testing does not directly expose the 'mcp-multi-server' client library to runtime 'eval' vulnerabilities. A key aspect of this library is its reliance on 'mcp_servers.json' to define commands for starting external MCP server processes. This design implies a trust relationship: the user (or system administrator) is responsible for ensuring that the commands specified in 'mcp_servers.json' are safe and trustworthy, as the MultiServerClient will execute them. Maliciously crafted server configurations could lead to arbitrary code execution outside the scope of the library itself.
Similar Servers
mcpo
Exposes Model Context Protocol (MCP) tools as OpenAPI-compatible HTTP servers.
mcp-context-forge
Converts web content (HTML, PDF, DOCX, etc.) and local files from a URL into high-quality Markdown format. It supports multiple conversion engines, content optimization, batch processing, and image handling.
mcphub
An orchestration hub that aggregates, manages, and routes Model Context Protocol (MCP) servers and their tools, providing a centralized interface, user management, OAuth 2.0 authorization server capabilities, and AI-powered tool discovery and routing.
mcp-rubber-duck
An MCP (Model Context Protocol) server that acts as a bridge to query multiple OpenAI-compatible LLMs, enabling multi-agent AI workflows and providing an AI 'rubber duck' debugging panel.