Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SSH_BRIDGE_KEY_PATHNoPath to a private key, if you use key auth instead
SSH_BRIDGE_PASSWORDNoPassword used by ssh_connect when no key is configured
SSH_BRIDGE_HTTP_HOSTNoBind address in HTTP mode127.0.0.1
SSH_BRIDGE_HTTP_PORTNoBind port in HTTP mode8000
SSH_BRIDGE_TRANSPORTNostdio (default, local process) or streamable-http (network, for claude.ai web)stdio
SSH_BRIDGE_HTTP_TOKENNoRequired in HTTP mode. Bearer token clients must send; server refuses to start without it in streamable-http mode
SSH_BRIDGE_ALLOWED_HOSTSNoComma-separated allowlist of hosts this server may connect to (recommended once you're not just testing)
SSH_BRIDGE_DENY_PATTERNSNoComma-separated glob patterns of commands to always block (ships with a small default denylist)
SSH_BRIDGE_KEY_PASSPHRASENoPassphrase for that key, if any
SSH_BRIDGE_STRICT_HOST_KEYNoSet to '1' to require the host key already be in known_hosts instead of auto-trusting on first connect
SSH_BRIDGE_MAX_OUTPUT_CHARSNoTruncate command output beyond this length20000

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": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
ssh_connectA

Open an SSH session to a remote host and return a session_id to use with the other ssh_* tools.

Credentials are resolved in this order:

  1. Explicit password / key_path args passed here (avoid when possible)

  2. SSH_BRIDGE_PASSWORD / SSH_BRIDGE_KEY_PATH env vars set on the server

  3. The local SSH agent and default keys (~/.ssh/id_ed25519, etc.)

Prefer leaving password/key_path unset and configuring env vars instead — that way the secret never appears in the conversation.

ssh_execA

Run a shell command on the remote host over an existing session and return its stdout, stderr, and exit code. Output is truncated if very large. Not a persistent shell — each call is a fresh exec_command, so cd and env vars set in one call don't carry to the next (chain with && or use absolute paths / a wrapper script for multi-step sequences).

ssh_read_fileA

Read a text file from the remote host via SFTP.

ssh_write_fileB

Write text content to a file on the remote host via SFTP, overwriting it.

ssh_list_sessionsA

List currently open SSH sessions (host/user/port), by session_id.

ssh_disconnectA

Close an SSH session and free its resources.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

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/CrimsonCosmos/ssh-bridge-mcp'

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