Skip to main content
Glama

SSH MCP Server

by vilasone455

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MACHINES_PATHYesPath to your machines.json configuration file

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
get_available_connections

List every SSH-capable machine this server knows about (but is NOT yet connected).

create_connection

Open an SSH session to the given machine and track it in global state so subsequent tool calls can reuse it.

get_connections

Return every STILL-OPEN SSH session in global state.

execute_command

Run a shell command in an existing SSH session and return stdout/stderr/exitCode.

secure_execute_command

Run a read‑only shell command (i.e., one that does not mutate state) in an existing SSH session and return stdout/stderr/exitCode.

close_connection

Terminate an SSH session and remove it from global state.

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/vilasone455/ssh-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server