Skip to main content
Glama
SSH MCP Server
by termau

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SSH_CONNECTIONSNoLegacy environment variable for defining SSH connections via a JSON string array of connection objects.
BINARYLANE_API_TOKENNoOptional API token for auto-discovery of active BinaryLane VPS servers.

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
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_connectionsA

List all configured SSH connections.

Returns the name, host, port, and username for each connection. Connections are configured via the SSH_CONNECTIONS environment variable.

Example usage: Before running commands, list connections to see what's available.

test_connectionA

Test connectivity to an SSH server.

Attempts to establish an SSH connection and reports success/failure with latency.

Parameters:

  • connection: Name of the connection to test (from list_connections)

Example usage: Verify a server is reachable before running commands.

run_commandA

Execute a command on a remote server via SSH.

Runs a shell command and returns stdout, stderr, and exit code.

Parameters:

  • connection: Name of the connection (from list_connections)

  • command: The shell command to execute

  • timeout: Command timeout in milliseconds (default: 30000)

Example usage: run_command("web1", "uptime") Example usage: run_command("db1", "systemctl status mysql", 60000)

Returns:

  • stdout: Command standard output

  • stderr: Command standard error

  • code: Exit code (0 = success)

read_remote_fileA

Read the contents of a file on a remote server.

Parameters:

  • connection: Name of the connection (from list_connections)

  • path: Absolute path to the file on the remote server

Example usage: read_remote_file("web1", "/etc/nginx/nginx.conf")

Returns the file contents as text.

list_remote_directoryB

List contents of a directory on a remote server.

Parameters:

  • connection: Name of the connection (from list_connections)

  • path: Absolute path to the directory on the remote server

Example usage: list_remote_directory("web1", "/var/log")

Returns a list of files/directories with name, type, size, and modification time.

upload_fileB

Upload a local file to a remote server via SFTP.

Parameters:

  • connection: Name of the connection (from list_connections)

  • local_path: Path to the local file

  • remote_path: Destination path on the remote server

Example usage: upload_file("web1", "/tmp/config.txt", "/etc/myapp/config.txt")

download_fileA

Download a file from a remote server via SFTP.

Parameters:

  • connection: Name of the connection (from list_connections)

  • remote_path: Path to the file on the remote server

  • local_path: Destination path on the local machine

Example usage: download_file("web1", "/var/log/nginx/error.log", "/tmp/error.log")

add_connectionA

Add or update a manual SSH connection. Persisted to config file across restarts.

Parameters:

  • name: Unique name for this connection (required)

  • host: Server hostname or IP address (required)

  • port: SSH port (default: 22)

  • username: SSH username (required)

  • privateKeyPath: Path to SSH private key (supports ~ expansion)

  • password: SSH password (if not using key auth)

Example: add_connection("staging", "10.0.0.5", 22, "deploy", "~/.ssh/deploy_key")

remove_connectionA

Remove a manual SSH connection from the config file.

Only removes connections added via add_connection (source: config). Auto-discovered BinaryLane connections cannot be removed this way.

Parameters:

  • name: Name of the connection to remove

refresh_connectionsA

Re-discover BinaryLane servers and reload all connections.

Refreshes the connection list by:

  1. Re-reading the config file

  2. Re-discovering BinaryLane servers (if enabled)

  3. Re-reading SSH_CONNECTIONS env var

  4. Merging all sources (config > env > auto-discovered)

Use after creating/deleting BinaryLane servers to update the connection list.

get_configA

Show the current SSH MCP configuration.

Returns the config file contents with sensitive values (tokens, passwords) redacted. Shows BinaryLane auto-discovery settings and all manual connections.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4/5.0

Scored across 11 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: connection listing/testing/management, command execution, configuration inspection, and remote file operations. The only mild overlap is among list_connections, get_config, and refresh_connections, but their descriptions clearly separate listing, config inspection, and re-discovery.

Naming Consistency5/5

All tool names use a consistent snake_case verb_noun pattern, such as list_connections, run_command, read_remote_file, and upload_file. There are no mixed conventions or vague standalone verbs.

Tool Count5/5

Eleven tools is well within a reasonable range for an SSH management server and each tool maps to a distinct operational need. The set is neither bloated nor too thin for the domain.

Completeness4/5

The surface covers connection management, command execution, and core file operations including read, list, upload, and download. Minor gaps exist for direct remote file deletion, directory creation, or renaming, though run_command can serve as a workaround.

Maintenance

ActivityInactive
ResponsivenessOutdated data