SSH MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Path to private SSH key | |
| host | Yes | Hostname or IP of the Linux or Windows server | |
| port | No | SSH port (default: 22) | 22 |
| user | Yes | SSH username | |
| timeout | No | Command execution timeout in milliseconds (default: 60000ms = 1 minute) | 60000 |
| maxChars | No | Maximum allowed characters for the command input (default: 1000). Use none or 0 to disable the limit. | 1000 |
| password | No | SSH password (or use key for key-based auth) | |
| suPassword | No | Password for su elevation (when you need a persistent root shell) | |
| disableSudo | No | Flag to disable the sudo-exec tool completely. Useful when sudo access is not needed or not available. | |
| sudoPassword | No | Password for sudo elevation (when executing commands with sudo) |
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
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list-connectionsA | List all configured SSH profiles and their connection status. Use this to discover available hosts before running commands. |
| list-sessionsB | List active sessions for a given SSH profile. |
| open-sessionA | Open a named session on a remote host. Use type="interactive" for stateful shell (CWD/env persists between commands) or type="background" for long-running processes. |
| close-sessionA | Close a named session. A background session's command is signalled on the host (INT, then TERM, then KILL) before its channel is dropped; an interactive session's shell is ended. The response says so if the command could not be signalled or had not stopped in time. |
| read-session-outputA | Read recent output from a background session (e.g., tail -f logs). |
| read-commandA | Execute a READ-ONLY command from an allowlist (ls, cat, grep, find, stat, df, etc.). This tool does NOT modify the system. Prefer this tool for all read operations. |
| run-commandA | Execute an arbitrary shell command on the remote server. May modify the system. Commands classified destructive or privileged go through the approval gate; approvalPolicy on the profile decides whether that is a prompt, an automatic allow, or a refusal. |
| privileged-commandA | Execute a command with sudo elevation. Goes through the approval gate; approvalPolicy on the profile decides whether that is a prompt, an automatic allow, or a refusal. The sudo password is piped via stdin (never visible in process list). |
| signal-processA | Send a signal (INT, TERM, KILL) to a remote process by PID. |
| sftp-uploadA | Upload a file to the remote server via SFTP (secure file transfer, not shell-based). |
| sftp-downloadA | Download a file from the remote server via SFTP. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| connections | List all SSH profiles and their connection status |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/tufantunc/ssh-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server