mcp install
Install MCP servers from the 1MCP registry with automatic dependency resolution and version management. The install command provides both interactive installation and direct server installation by name.
Note: This is the recommended way to add MCP servers to your configuration. For manual configuration, see the add command.
Synopsis
Launch interactive installation wizard:
npx -y @1mcp/agent mcp installInstall a server by name from the registry:
npx -y @1mcp/agent mcp install <server-name>Install with specific version:
npx -y @1mcp/agent mcp install <server-name>@<version>Preview installation without making changes:
npx -y @1mcp/agent mcp install <server-name> --dry-runForce reinstallation:
npx -y @1mcp/agent mcp install <server-name> --forceArguments
<server-name>(optional)- Server name or name@version to install. Can include full registry ID (e.g.,
io.github.user/filesystem). - Required: No
- Server name or name@version to install. Can include full registry ID (e.g.,
Global Options
This command supports all global options:
--config, -c <path>- Specify configuration file path--config-dir, -d <path>- Path to the config directory
Command-Specific Options
--interactive, -i- Launch interactive installation wizard. This is the default when no server name is provided.
--force- Force installation even if the server already exists. Overwrites existing configuration.
--dry-run- Show what would be installed without making any changes to your configuration.
--verbose, -v- Display detailed installation information.
Examples
Basic Server Installation
Install the latest version of the filesystem server:
npx -y @1mcp/agent mcp install filesystemInstall a specific version:
npx -y @1mcp/agent mcp install [email protected]Interactive Installation
Launch the interactive installation wizard to browse and install servers:
npx -y @1mcp/agent mcp installOr explicitly request interactive mode:
npx -y @1mcp/agent mcp install --interactiveThe interactive mode will guide you through:
- Server Discovery - Browse available servers by category
- Version Selection - Choose compatible versions
- Configuration - Set server-specific options
- Installation - Confirm and install with dependencies
Installation Preview
Preview what would be installed without making changes:
npx -y @1mcp/agent mcp install filesystem --dry-run
# Output:
# 📦 Installation Preview: filesystem@latest
# Server: filesystem - File system access and management
# Use without --dry-run to perform actual installationForce Reinstallation
Replace an existing server configuration:
npx -y @1mcp/agent mcp install filesystem --forceVerbose Installation
See detailed installation process including dependency resolution:
npx -y @1mcp/agent mcp install airtable --verbose
# Output:
# 🔍 Resolving dependencies for [email protected]...
# ✓ Dependency check complete
# 📥 Downloading server metadata...
# ✓ Validating server configuration
# ⚙️ Generating configuration...
# ✓ Server installed successfully as 'airtable'Interactive Workflow
When using --interactive or running without arguments, the install command launches a guided wizard that helps you:
- Search for servers by name or browse categories
- Select a server and review its capabilities
- Choose a version (stable vs latest)
- Configure server-specific parameters
- Confirm installation
Registry Features
- Server Discovery: Search and browse available MCP servers
- Version Management: Install specific versions with compatibility checking
- Dependency Resolution: Automatically handle required dependencies
- Security Validation: Verify server integrity and authenticity
Configuration Output
Installed servers are added to your mcp.json configuration with registry metadata:
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/home/user"],
"tags": ["filesystem", "files", "local"],
"_registry": {
"name": "filesystem",
"version": "1.2.0",
"installedAt": "2024-01-15T10:30:00Z",
"source": "1mcp-registry"
}
}
}
}Error Handling
The install command provides helpful error messages for common scenarios:
# Server not found
npx -y @1mcp/agent mcp install nonexistent-server
# Error: Server 'nonexistent-server' not found in registry
# Suggestions: filesystem, git, database, search
# Version not available
npx -y @1mcp/agent mcp install [email protected]
# Error: Version 99.99.99 not available for 'filesystem'
# Available versions: 1.2.0, 1.1.0, 1.0.0
# Already installed
npx -y @1mcp/agent mcp install filesystem
# Error: Server 'filesystem' already installed
# Use --force to reinstall or mcp update to upgradeSee Also
- Registry Search - Search the registry for available servers
- mcp uninstall - Remove installed servers
- mcp update - Update installed servers
- Server Management Guide - Complete server management overview
- Registry Commands - Full registry command documentation
