mcp.discovery.installed_servers¶
Discover and manage installed MCP servers.
This module provides utilities to find, check, and manage MCP servers that are already installed on the system.
Attributes¶
Classes¶
Discover installed MCP servers on the system. |
Functions¶
|
Main entry point for CLI usage. |
Module Contents¶
- class mcp.discovery.installed_servers.MCPServerDiscovery¶
Discover installed MCP servers on the system.
This class provides methods to: - Find npm-installed MCP servers - Check Python-based MCP servers - Locate configuration files - Verify server functionality
Example
>>> discovery = MCPServerDiscovery() >>> installed = discovery.find_all_installed() >>> print(f"Found {len(installed)} installed servers")
- check_server_availability(server_name: str) bool ¶
Check if a specific server is available.
- Parameters:
server_name – Name of the server to check
- Returns:
True if server is installed and available
- export_installed_list(filename: str = 'installed_mcp_servers.json')¶
Export list of installed servers to file.
- Parameters:
filename – Output filename
- find_all_installed() List[Dict] ¶
Find all installed MCP servers.
- Returns:
List of dicts with server information
- find_config_servers() List[Dict] ¶
Find servers from configuration files.
- Returns:
List of configured servers with metadata
- find_npm_servers() List[Dict] ¶
Find npm-installed MCP servers.
- Returns:
List of npm MCP servers with metadata
- find_pip_servers() List[Dict] ¶
Find pip-installed MCP servers.
- Returns:
List of Python MCP servers with metadata
- get_server_info(server_name: str) Dict | None ¶
Get detailed information about an installed server.
- Parameters:
server_name – Name of the server
- Returns:
Dict with server details or None if not found
- config_servers: List[Dict] = []¶
- npm_servers: List[Dict] = []¶
- pip_servers: List[Dict] = []¶
- mcp.discovery.installed_servers.main()¶
Main entry point for CLI usage.
- mcp.discovery.installed_servers.logger¶