Runs remote commands, transfers files, searches logs and audits hosts through the local OpenSSH client.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add ssh-server-hypnosis --env SSH_PROFILES_FILE='<SSH_PROFILES_FILE>' -- npx -y @hypnosis/ssh-mcp-server~/.codex/config.toml
[mcp_servers.ssh-server-hypnosis]
command = "npx"
args = ["-y", "@hypnosis/ssh-mcp-server"]
env = { SSH_PROFILES_FILE = "<SSH_PROFILES_FILE>" }
# codex mcp add ssh-server-hypnosis --env SSH_PROFILES_FILE='<SSH_PROFILES_FILE>' -- npx -y @hypnosis/ssh-mcp-server~/.cursor/mcp.json
{
"mcpServers": {
"ssh-server-hypnosis": {
"command": "npx",
"args": [
"-y",
"@hypnosis/ssh-mcp-server"
],
"env": {
"SSH_PROFILES_FILE": "<SSH_PROFILES_FILE>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"ssh-server-hypnosis": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@hypnosis/ssh-mcp-server"
],
"env": {
"SSH_PROFILES_FILE": "<SSH_PROFILES_FILE>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"ssh-server-hypnosis": {
"command": "npx",
"args": [
"-y",
"@hypnosis/ssh-mcp-server"
],
"env": {
"SSH_PROFILES_FILE": "<SSH_PROFILES_FILE>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"ssh-server-hypnosis": {
"command": "npx",
"args": [
"-y",
"@hypnosis/ssh-mcp-server"
],
"env": {
"SSH_PROFILES_FILE": "<SSH_PROFILES_FILE>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"ssh-server-hypnosis": {
"command": "npx",
"args": [
"-y",
"@hypnosis/ssh-mcp-server"
],
"env": {
"SSH_PROFILES_FILE": "<SSH_PROFILES_FILE>"
}
}
}
}Environment variables
SSH_PROFILES_FILE
Replace the placeholders with your own credentials and keep them out of version control.