ssh-mcp-server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | Default command timeout in ms (default: 60000). Flag: --timeout <ms>. | |
| max-output | No | Maximum output characters per stream (default: 10000). Flag: --max-output <chars>. | |
| user-config | No | Custom user config path (default: ~/.config/mcp-ssh/config). Flag: --user-config <path>. | |
| idle-timeout | No | Connection idle timeout in ms (default: 600000). Flag: --idle-timeout <ms>. | |
| project-root | No | Project root directory (for project-level ssh.config). Flag: --project-root <path>. | |
| max-connections | No | Maximum concurrent SSH connections (default: 5). Flag: --max-connections <n>. | |
| strict-host-key | No | Enable strict host key checking. Flag: --strict-host-key (use --no-strict-host-key to disable; disabled by default). | |
| SSH_PASSWORD_<HOST> | No | Password for a host when password authentication is used. For host `my-server`, set SSH_PASSWORD_MY_SERVER=secret. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| ssh_list_hostsA | List all available SSH hosts from merged configuration (project + user level) |
| ssh_execB | Execute a command on a remote SSH host. The host must be defined in the SSH configuration. |
| ssh_init_configB | Initialize an SSH configuration file (project-level or user-level) |
| ssh_get_configB | Get the full SSH configuration for a specific host (merged from project + user level) |
| ssh_test_connectionB | Test SSH connectivity to a configured host |
| ssh_disconnectA | Disconnect SSH session(s). Specify a host to disconnect one, or omit to disconnect all. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| ssh-hosts | List of all configured SSH hosts |
TDQS
Scored across 6 tools
Each tool maps to a distinct operation: listing hosts, executing commands, initializing config, reading config, testing connectivity, and disconnecting. There is no overlap between ssh_exec and ssh_test_connection since one runs commands and the other verifies reachability. An agent can select the right tool from the names alone.
All six tools use the same ssh_ prefix followed by a clear verb_noun or verb pattern (list_hosts, exec, init_config, get_config, test_connection, disconnect). The convention is uniform and predictable across the entire surface.
Six tools is well-scoped for an SSH configuration and execution server, with each tool earning its place. There is no redundant or filler tool, and the set stays comfortably within the ideal 3-15 range.
The core lifecycle is covered: initialize config, read config, list hosts, test connectivity, execute commands, and disconnect. Minor gaps exist around modifying existing host entries (add/update/remove host) and file transfer operations, but agents can work around these by editing config or using ssh_exec.