mcp-ssh-tool
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LOG_LEVEL | No | Logging level for the server (error, warn, info, debug). | |
| KNOWN_HOSTS_PATH | No | Custom path to the known_hosts file for host key verification. | |
| SSH_DEFAULT_KEY_DIR | No | Custom directory to search for SSH keys. | |
| STRICT_HOST_KEY_CHECKING | No | Enable strict host key checking. Set to 'true' and optionally provide KNOWN_HOSTS_PATH to enforce verification. |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| ssh_open_sessionC | Opens a new SSH session with authentication |
| ssh_close_sessionC | Closes an SSH session |
| proc_execC | Executes a command on the remote system |
| proc_sudoC | Executes a command with sudo privileges |
| fs_readC | Reads a file from the remote system |
| fs_writeC | Writes data to a file on the remote system |
| fs_statC | Gets file or directory statistics |
| fs_listC | Lists directory contents |
| fs_mkdirpC | Creates directories recursively |
| fs_rmrfC | Removes files or directories recursively |
| fs_renameC | Renames or moves a file/directory |
| ensure_packageC | Ensures a package is installed or removed |
| ensure_serviceC | Ensures a service is in the desired state |
| ensure_lines_in_fileC | Ensures specific lines are present or absent in a file |
| patch_applyC | Applies a patch to a file |
| os_detectC | Detects operating system and environment information |
| ssh_list_sessionsB | Lists all active SSH sessions with their details |
| ssh_pingB | Checks if an SSH session is still alive and responsive |
| ssh_list_configured_hostsA | Lists all hosts configured in ~/.ssh/config |
| ssh_resolve_hostB | Resolves a host alias from ~/.ssh/config to connection parameters |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/oaslananka/mcp-ssh-tool'
If you have feedback or need assistance with the MCP directory API, please join our Discord server