The Server Manager enables intelligent orchestration of multiple MCP servers, allowing agents to dynamically discover, connect to, and utilize tools from different servers without loading everything upfront.Documentation Index
Fetch the complete documentation index at: https://docs.mcp-use.com/llms.txt
Use this file to discover all available pages before exploring further.
Why Use Server Manager?
When working with multiple MCP servers, you face a challenge: each server can expose dozens of tools, and loading all tools from all servers into your agent’s context can be overwhelming and inefficient. The Server Manager solves this by:- Dynamic loading: Load tools only when needed, not everything upfront
- Intelligent routing: Automatically select the right server for each task
- Context optimization: Keep agent context focused and efficient
- Automatic discovery: Find and connect to the right tools automatically
- Lifecycle management: Handle connections and cleanup automatically
Architecture Overview
Dynamic Tool Loading Process
Getting Started
Enable the Server Manager in your agent:Tool Discovery Flow
The agent uses the management tools to discover and connect to servers:- List available servers: Use
list_mcp_serversto see what servers are configured - Connect to a server: Use
connect_to_mcp_serverto activate a server and load its tools - Use server tools: Once connected, the server’s tools become available to the agent
- Switch servers: Connect to a different server to access its tools
- Disconnect: Use
disconnect_from_mcp_serverto deactivate the current server
Management Tools Deep Dive
Core Server Management
| Tool | Purpose | Example |
|---|---|---|
list_mcp_servers | Discovery of available servers and their tools | ”What servers do I have access to?” |
connect_to_mcp_server | Activate a server and load its tools | ”Connect to the filesystem server” |
get_active_mcp_server | Check current connection status | ”Which server am I currently using?” |
disconnect_from_mcp_server | Deactivate server and remove its tools | ”Disconnect from current server” |
add_mcp_server_from_config | Add a new server dynamically from configuration | ”Add a new server with this configuration” |