MCP server for SSH remote server management with SSH agent authentication support.

stdioofficialapplication

Package Details

Transportstdio
Runtimenpx

Runtime Arguments

Positional
Position 0
-y

Environment Variables

SSH_HOST
Required

Hostname or IP address of the SSH server.

SSH_USERNAME
Required

Username for SSH authentication.

SSH_PORT
Default:22

SSH port number.

SSH_AUTH_SOCK

Path to SSH agent socket for agent-based authentication.

SSH_PRIVATE_KEY_PATH

Path to private key file for direct key authentication.

SSH_PASSPHRASE
Secret

Passphrase for encrypted private key.

SSH_TIMEOUT
Default:30000

Connection timeout in milliseconds.

SSH_COMMAND_TIMEOUT
Default:60000

Default command activity timeout in milliseconds.

ENABLED_TOOLGROUPS

Comma-separated list of tool groups to enable (readonly, write, admin).

SKIP_HEALTH_CHECKS
Default:false

Skip SSH connection health check on startup.

HEALTH_CHECK_TIMEOUT
Default:10000

Health check timeout in milliseconds.