MCP SSH Manager provides 37 tools organized into 6 functional groups. You can enable or disable tool groups to customize your experience and reduce context usage in Claude Code.
- Reduce Context Usage: By default, all 37 tools consume ~43.5k tokens in Claude Code. Minimal mode uses only ~3.5k tokens (92% reduction)
- Fewer Approval Prompts: Only enabled tools require approval in Claude Code
- Faster Loading: Less tools mean faster MCP server startup
- Cleaner Interface: Only see the tools you actually use
ssh-manager tools listssh-manager tools configureChoose from three modes:
- All tools (37 tools) - Full feature set, recommended for most users
- Minimal (5 tools) - Only core operations, maximum efficiency
- Custom - Pick which groups to enable
# Enable a group
ssh-manager tools enable monitoring
# Disable a group
ssh-manager tools disable backupssh-manager tools resetssh-manager tools export-claudeThis generates configuration for Claude Code to auto-approve your enabled tools.
Essential SSH operations for basic functionality:
ssh_list_servers- List all configured SSH serversssh_execute- Execute commands on remote serversssh_upload- Upload files to remote serversssh_download- Download files from remote serversssh_sync- Bidirectional file synchronization with rsync
When to use: Always enabled. These are the minimum tools needed for SSH operations.
Persistent SSH session management:
ssh_session_start- Start a persistent SSH sessionssh_session_send- Send command to an existing sessionssh_session_list- List all active sessionsssh_session_close- Close a persistent session
When to use: Enable if you need to maintain state across multiple commands or run interactive sessions.
System health checks and monitoring:
ssh_health_check- Comprehensive server health check (CPU, RAM, disk, network)ssh_service_status- Check status of services (nginx, mysql, docker, etc.)ssh_process_manager- List, monitor, or kill processesssh_monitor- Real-time system resource monitoringssh_tail- Tail log files in real-timessh_alert_setup- Configure health monitoring alerts and thresholds
When to use: Enable for server administration, DevOps work, or troubleshooting.
Automated backup and restore:
ssh_backup_create- Create database or file backupsssh_backup_list- List all available backupsssh_backup_restore- Restore from previous backupsssh_backup_schedule- Schedule automatic backups using cron
Supports: MySQL, PostgreSQL, MongoDB, files
When to use: Enable for database administration or when managing production servers.
Database operations:
ssh_db_dump- Create database dumpsssh_db_import- Import SQL dumps or restore databasesssh_db_list- List databases or tables/collectionsssh_db_query- Execute read-only SELECT queries
Supports: MySQL, PostgreSQL, MongoDB
When to use: Enable for database administration or data migration tasks.
Advanced features for power users:
ssh_deploy- Smart deployment with automatic permission handlingssh_execute_sudo- Execute commands with sudo privilegesssh_alias- Manage server aliases (shortcuts)ssh_command_alias- Manage command aliasesssh_hooks- Automation hooks systemssh_profile- Profile managementssh_connection_status- Connection management and poolingssh_tunnel_create- Create SSH tunnels (local/remote/SOCKS)ssh_tunnel_list- List active tunnelsssh_tunnel_close- Close SSH tunnelsssh_key_manage- SSH host key managementssh_execute_group- Execute commands on server groupsssh_group_manage- Manage server groupsssh_history- View command history
When to use: Enable for advanced automation, deployment workflows, or managing multiple servers.
{
"mode": "all",
"groups": {
"core": { "enabled": true },
"sessions": { "enabled": true },
"monitoring": { "enabled": true },
"backup": { "enabled": true },
"database": { "enabled": true },
"advanced": { "enabled": true }
}
}- Enabled tools: 37/37
- Context usage: ~43.5k tokens
- Best for: Users who need all features
{
"mode": "minimal",
"groups": {
"core": { "enabled": true },
"sessions": { "enabled": false },
"monitoring": { "enabled": false },
"backup": { "enabled": false },
"database": { "enabled": false },
"advanced": { "enabled": false }
}
}- Enabled tools: 5/37
- Context usage: ~3.5k tokens
- Context savings: 92% reduction (~40k tokens saved)
- Best for: Simple SSH operations, file transfers, basic command execution
{
"mode": "custom",
"groups": {
"core": { "enabled": true },
"sessions": { "enabled": true },
"monitoring": { "enabled": true },
"backup": { "enabled": false },
"database": { "enabled": false },
"advanced": { "enabled": false }
}
}- Enabled tools: Custom (5-37 tools)
- Context usage: Varies based on selection
- Best for: Tailoring to specific workflows
- User-global:
~/.ssh-manager/tools-config.json
{
"version": "1.0",
"mode": "minimal|all|custom",
"groups": {
"core": { "enabled": true },
"sessions": { "enabled": false },
"monitoring": { "enabled": false },
"backup": { "enabled": false },
"database": { "enabled": false },
"advanced": { "enabled": false }
},
"tools": {
"ssh_session_start": true // Individual tool override
},
"_comment": "Tool configuration for MCP SSH Manager"
}You can override group settings for specific tools:
{
"mode": "minimal",
"groups": {
"sessions": { "enabled": false }
},
"tools": {
"ssh_session_start": true // Enable this tool despite group being disabled
}
}Need: Upload files, run build commands, restart services
Recommended: Minimal mode + monitoring
ssh-manager tools configure # Choose "2) Minimal"
ssh-manager tools enable monitoringResult: 11 tools (5 core + 6 monitoring) = ~7k tokens
Need: Full server management, monitoring, backups
Recommended: All tools mode
ssh-manager tools configure # Choose "1) All tools"Result: 37 tools = ~43.5k tokens
Need: Database operations, backups, monitoring
Recommended: Custom mode
ssh-manager tools configure # Choose "3) Custom"
# Enable: monitoring, backup, databaseResult: 19 tools (5 core + 6 monitoring + 4 backup + 4 database) = ~15k tokens
Need: Minimal attack surface, only essential tools
Recommended: Minimal mode only
ssh-manager tools configure # Choose "2) Minimal"Result: 5 tools = ~3.5k tokens (minimum possible)
After configuring your tools, export the auto-approval configuration:
ssh-manager tools export-claudeThis generates a JSON snippet like:
{
"autoApprove": {
"tools": [
"mcp__ssh-manager__ssh_list_servers",
"mcp__ssh-manager__ssh_execute",
"mcp__ssh-manager__ssh_upload",
"mcp__ssh-manager__ssh_download",
"mcp__ssh-manager__ssh_sync"
]
}
}- Open
~/.config/claude-code/claude_code_config.json - Add or merge the
autoApprovesection - Save and restart Claude Code
Example complete config:
{
"mcpServers": {
"ssh-manager": {
"command": "node",
"args": ["/absolute/path/to/mcp-ssh-manager/src/index.js"]
}
},
"autoApprove": {
"tools": [
"mcp__ssh-manager__ssh_list_servers",
"mcp__ssh-manager__ssh_execute",
"mcp__ssh-manager__ssh_upload",
"mcp__ssh-manager__ssh_download",
"mcp__ssh-manager__ssh_sync"
]
}
}Cause: MCP server is still running with old configuration
Solution: Restart Claude Code or run claude mcp restart
Cause: No configuration file exists yet
Solution: Run ssh-manager tools configure to create one
Cause: Core tools are required for basic functionality
Solution: Core group cannot be disabled. Consider minimal mode if you want the absolute minimum tools.
Cause: Claude Code caches MCP server configuration
Solution:
- Restart Claude Code
- Or use Claude Code's MCP server management commands
- Verify with
ssh-manager tools list
Begin with minimal mode and enable groups as you discover you need them:
ssh-manager tools configure # Choose minimal
# ... later when you need monitoring ...
ssh-manager tools enable monitoringCheck what's enabled before starting work:
ssh-manager tools listWhile MCP SSH Manager uses a single user-global config, you can:
- Create shell aliases for different profiles
- Manually switch configs for different projects
- Use the CLI to quickly enable/disable groups
Whenever you modify tool configuration, update your Claude Code auto-approval:
ssh-manager tools enable backup
ssh-manager tools export-claude
# Copy the output to claude_code_config.jsonAdd comments to your config file to remember why you enabled specific groups:
{
"_comment": "Custom config for web development projects. Monitoring enabled for debugging deployment issues. Backup disabled as we use external backup solutions."
}A: No. If no configuration file exists, all 37 tools are enabled by default (current behavior).
A: Yes! Use the tools object in the config file for individual overrides.
A: New tools default to enabled unless you've explicitly disabled their group.
A: Currently, tool configuration is user-global. Server-specific tool configs may be added in a future version.
A: Only if you're using the MCP server. Direct use of the Node.js SSH Manager class is unaffected.
A: Minimal mode (5 tools) uses ~3.5k tokens vs all tools (37 tools) at ~43.5k tokens. That's a 92% reduction or ~40k tokens saved.
| Command | Description |
|---|---|
ssh-manager tools list |
Show all tools and their current status |
ssh-manager tools configure |
Interactive configuration wizard |
ssh-manager tools enable <group> |
Enable a tool group |
ssh-manager tools disable <group> |
Disable a tool group |
ssh-manager tools reset |
Reset to defaults (all tools enabled) |
ssh-manager tools show |
Display raw configuration file |
ssh-manager tools export-claude |
Generate Claude Code auto-approval config |
- README.md - Main project documentation
- CLAUDE.md - Instructions for Claude Code AI
- Tool Registry Source - Tool group definitions
- Config Manager Source - Configuration logic