MCP SSH Gateway
An MCP server providing SSH terminals for AI agents. It features stateful shells that preserve context between calls, immediate exit code reporting, and support for router CLIs like Keenetic. It handles interactive prompts and long outputs efficiently without relying on sleep-based polling.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
Checks and signals
Each line is separate evidence, not a trust score.
- Popularity 3 GitHub stars
What you can do with it
- Execute commands on remote SSH hosts and retrieve exit codes
- Maintain stateful shell sessions for variables and virtualenvs
- Interact with router CLIs such as Keenetic
- Handle interactive prompts like passwords or confirmations
Source and maintenance
- Last repository push
- Latest release
- v7.0.0
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
mcp-ssh-gateway 7.0.0
{
"version": "7.0.0",
"transport": "stdio",
"identifier": "mcp-ssh-gateway",
"registryType": "pypi",
"environmentVariables": [
{
"name": "SSH_SERVERS_CONFIG",
"description": "Path to the JSON file with SSH server targets, or an inline JSON string. Overridden by --servers-config."
},
{
"name": "SSH_MCP_CACHE_DIR",
"description": "Where logs and known_hosts are kept. Default: the user cache directory."
},
{
"name": "SSH_READ_ONLY",
"description": "Set to true/1 to force the global read-only guardrail."
},
{
"name": "SSH_COMMAND_BLACKLIST",
"description": "Comma-separated global prohibited command patterns."
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · repository · passed · metadata changed · updated
- · backfill · recorded · Pre-expansion baseline; unobserved rich metadata remains unknown
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"mcp-ssh-gateway": {
"command": "uvx",
"args": [
"mcp-ssh-gateway==7.0.0"
],
"env": {
"SSH_SERVERS_CONFIG": "<YOUR_SSH_SERVERS_CONFIG>",
"SSH_MCP_CACHE_DIR": "<YOUR_SSH_MCP_CACHE_DIR>",
"SSH_READ_ONLY": "<YOUR_SSH_READ_ONLY>",
"SSH_COMMAND_BLACKLIST": "<YOUR_SSH_COMMAND_BLACKLIST>"
}
}
}
}Cline
{
"mcpServers": {
"mcp-ssh-gateway": {
"command": "uvx",
"args": [
"mcp-ssh-gateway==7.0.0"
],
"env": {
"SSH_SERVERS_CONFIG": "<YOUR_SSH_SERVERS_CONFIG>",
"SSH_MCP_CACHE_DIR": "<YOUR_SSH_MCP_CACHE_DIR>",
"SSH_READ_ONLY": "<YOUR_SSH_READ_ONLY>",
"SSH_COMMAND_BLACKLIST": "<YOUR_SSH_COMMAND_BLACKLIST>"
}
}
}
}VS Code
{
"servers": {
"mcp-ssh-gateway": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-ssh-gateway==7.0.0"
],
"env": {
"SSH_SERVERS_CONFIG": "<YOUR_SSH_SERVERS_CONFIG>",
"SSH_MCP_CACHE_DIR": "<YOUR_SSH_MCP_CACHE_DIR>",
"SSH_READ_ONLY": "<YOUR_SSH_READ_ONLY>",
"SSH_COMMAND_BLACKLIST": "<YOUR_SSH_COMMAND_BLACKLIST>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"mcp-ssh-gateway": {
"command": "uvx",
"args": [
"mcp-ssh-gateway==7.0.0"
],
"env": {
"SSH_SERVERS_CONFIG": "<YOUR_SSH_SERVERS_CONFIG>",
"SSH_MCP_CACHE_DIR": "<YOUR_SSH_MCP_CACHE_DIR>",
"SSH_READ_ONLY": "<YOUR_SSH_READ_ONLY>",
"SSH_COMMAND_BLACKLIST": "<YOUR_SSH_COMMAND_BLACKLIST>"
}
}
}
}Let your agent find its tools
Find servers like MCP SSH Gateway from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.