Skip to main content
Glama
ssh-mcp-server

ssh-mcp-server

by B143KC47

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
timeoutNoDefault command timeout in ms (default: 60000). Flag: --timeout <ms>.
max-outputNoMaximum output characters per stream (default: 10000). Flag: --max-output <chars>.
user-configNoCustom user config path (default: ~/.config/mcp-ssh/config). Flag: --user-config <path>.
idle-timeoutNoConnection idle timeout in ms (default: 600000). Flag: --idle-timeout <ms>.
project-rootNoProject root directory (for project-level ssh.config). Flag: --project-root <path>.
max-connectionsNoMaximum concurrent SSH connections (default: 5). Flag: --max-connections <n>.
strict-host-keyNoEnable strict host key checking. Flag: --strict-host-key (use --no-strict-host-key to disable; disabled by default).
SSH_PASSWORD_<HOST>NoPassword 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

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
ssh-hostsList of all configured SSH hosts

TDQS

A3.8/5.0

Scored across 6 tools

Disambiguation5/5

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.

Naming Consistency5/5

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.

Tool Count5/5

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.

Completeness4/5

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.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues