mcp-ssh
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_SSH_CONFIG | No | Path to the hosts configuration file. Defaults to ~/.mcp-ssh/hosts.json. |
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
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| ssh_list_hostsA | Lists the hosts this server can connect to. Other tools take one of these names. |
| ssh_execA | Runs a shell command on a host and returns its exit code, stdout and stderr. The command gets no stdin and no terminal, so it must be non-interactive. Each call starts a fresh shell: use cwd, or chain with &&, instead of relying on an earlier cd. Large output is truncated in the middle; narrow it with grep, head or tail. |
| ssh_read_fileA | Reads a text file from a host over SFTP. Returns at most maxBytes starting at byte offset; the first line of the result says how much of the file was returned. |
| ssh_write_fileA | Creates or replaces a text file on a host over SFTP. The whole file is replaced with content. An existing file keeps its permission bits. The parent directory must exist. |
| ssh_list_dirA | Lists the entries of a directory on a host over SFTP, with type, size and modification time. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 5 tools
Each tool has a clear primary purpose: host listing, command execution, file read, file write, and directory listing. The only overlap is that ssh_exec can perform many of the same file and directory operations as the SFTP tools, but the descriptions make the intended boundaries reasonably clear.
All tools use the same ssh_ prefix and snake_case verb-based naming. The pattern is predictable across list, exec, read, write, and list operations.
Five tools is well-scoped for an SSH/SFTP server and each tool earns its place. There is no redundant or obviously unnecessary tool.
The surface covers host discovery, command execution, file read/write, and directory listing, which supports most core workflows. It lacks explicit SFTP operations such as delete, rename, or mkdir, though ssh_exec can work around those gaps.