
A Model Context Protocol server built on Huawei Cloud services that enables AI assistants to operate Huawei Cloud resources within conversational workflows, supporting ECS, OBS, GaussDB, and other cloud products.

A Model Context Protocol server that lets AI assistants manage remote infrastructure over SSH through command execution, SFTP file operations, and port forwarding.
SSH MCP Server is cataloged as an MCP server attributed to uarlouski. A Model Context Protocol server that lets AI assistants manage remote infrastructure over SSH through command execution, SFTP file operations, and port forwarding. It is categorized under cloud devops. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Apache 2.0. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for SSH MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
When allowedCommands is set, only listed base commands can be executed, and complex commands with pipes, chains, and substitutions are validated to block bypass attempts.
Yes, it can import server configurations from an existing SSH config file, optionally filtering by host patterns with wildcards.
README.md · 77eb744382f0 · 采集于 2026-11-13 12:46:35 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
A secure, production-ready Model Context Protocol (MCP) server that empowers AI assistants to manage remote infrastructure via SSH.
The SSH MCP Server bridges the gap between Large Language Models (LLMs) and your infrastructure. It enables AI assistants like Claude Desktop, Cursor, and GitHub Copilot to securely execute commands, transfer files via SFTP, and manage port forwarding tunnels. Turn your AI into a capable DevOps assistant that can troubleshoot, deploy, and monitor your servers with strict security boundaries.
This MCP server is designed to work with any client supporting the Model Context Protocol, including:
docker ps but block docker stop).~/.ssh/config file.The recommended way to use this package is as an MCP server with AI assistants like GitHub Copilot.
Prerequisites:
Using npx (recommended):
No installation required! Add to your MCP client configuration:
{
"mcpServers": {
"ssh": {
"command": "npx",
"args": [
"@uarlouski/ssh-mcp-server@latest",
"--configPath=/path/to/your/ssh-mcp-config.json"
]
}
}
}
Global installation:
npm install -g @uarlouski/ssh-mcp-server
Then configure with:
{
"mcpServers": {
"ssh": {
"command": "ssh-mcp-server",
"args": ["--configPath=/path/to/your/ssh-mcp-config.json"]
}
}
}
If you don't already have SSH keys for your servers:
ssh-keygen -t ed25519 -f ~/.ssh/deploy_key -C "deploy@example.com"
ssh-copy-id -i ~/.ssh/deploy_key.pub user@your-server.com
Create a ssh-mcp-config.json file:
{
"allowedCommands": ["ls", "cat", "grep", "docker", "kubectl"],
"servers": {
"my-server": {
"host": "example.com",
"username": "deploy",
"privateKeyPath": "~/.ssh/deploy_key"
}
}
}
Add the server to your MCP client (e.g., GitHub Copilot):
{
"mcpServers": {
"ssh": {
"command": "npx",
"args": [
"@uarlouski/ssh-mcp-server@latest",
"--configPath=/Users/yourname/ssh-mcp-config.json"
]
}
}
}
Restart your AI assistant to load the new server configuration.
The configuration file supports the following options:
{
"allowedCommands": ["ls", "pwd", "cat", "grep", "docker", "kubectl"],
"servers": {
"server-name": {
"host": "hostname-or-ip",
"port": 22,
"username": "username",
"privateKeyPath": "~/.ssh/private_key"
}
},
"portForwardingServices": {
"service-name": {
"connectionName": "server-name",
"localPort": 8080,
"remoteHost": "localhost",
"remotePort": 80,
"description": "Optional description"
}
},
"commandTemplates": {
"k8s-pod-logs": {
"command": "kubectl logs -n {{namespace}} {{pod}} --tail={{lines:100}}",
"description": "Fetch Kubernetes pod logs with configurable tail size"
},
"app-deploy": {
"command": "cd /var/www/{{app}} && git pull origin {{branch:main}} && npm install && pm2 restart {{app}}",
"description": "Deploy application with git pull, npm install, and pm2 restart"
},
"docker-stats": "docker stats {{container:--all}} --no-stream --format 'table {{.Name}}\\t{{.CPUPerc}}'"
},
"commandTimeout": 30000,
"maxConnections": 10
}
allowedCommands (optional)Array of base command names that are permitted for execution.
|), chains (&&, ||, ;), and substitutions ($())ls | rm -rf /Example:
"allowedCommands": ["ls", "cat", "grep", "docker", "kubectl", "systemctl"]
servers (required)Named SSH server configurations. Each server must have:
host (required): Hostname or IP addressusername (required): SSH usernameprivateKeyPath (required): Path to SSH private key (supports ~ expansion)port (optional): SSH port (default: 22)Example:
"servers": {
"staging-api": {
"host": "api-staging-01.example.com",
"username": "deploy",
"privateKeyPath": "~/.ssh/staging_deploy_key"
},
"staging-db": {
"host": "db-staging-master.example.com",
"port": 2222,
"username": "dbadmin",
"privateKeyPath": "~/.ssh/db_admin_key"
}
}
sshConfigImport (optional)Import server configurations from your existing SSH config file (e.g. ~/.ssh/config). This feature allows you to reuse your existing SSH configurations without duplicating them in the MCP config file.
Benefits:
Configuration:
path (string, optional): Path to SSH config file (default: ~/.ssh/config)hosts (array of strings, optional): Host patterns to import (e.g., ["prod-*", "staging-*"])
* (matches any characters), ? (matches single character)*)Note: Simply defining sshConfigImport in your config enables SSH config import. To disable it, remove the sshConfigImport field entirely.
Example - Import specific hosts with pattern matching:
{
"sshConfigImport": {
"path": "/custom/path/to/ssh_config",
"hosts": ["prod-*", "staging-*"]
}
}
Notes:
HostName, User, IdentityFile) are importedHost *) apply their settings to specific hosts but aren't imported as standalone servershosts pattern filter to avoid conflicts, or rename servers in one of the configurations.portForwardingServices (optional)Pre-configured named port forwarding services for common use cases.
connectionName (required): Name of the server from servers configremoteHost (required): Remote host to forward toremotePort (required): Remote port to forward tolocalPort (optional): Local port to bind to (random if omitted)description (optional): Human-readable descriptionExample:
"portForwardingServices": {
"pg-staging-database": {
"connectionName": "staging-db",
"remoteHost": "db-internal-01.example.com",
"remotePort": 5432,
"description": "PostgreSQL database access"
}
}
commandTemplates (optional)Reusable parameterized command templates with variable substitution.
Templates can be defined in two formats:
"template-name": "command with {{variables}}""template-name": { "command": "...", "description": "..." }Variable syntax:
{{variable}} - Required variable{{variable:default}} - Optional variable with default value{{.field}} - Preserved for Docker/Go templates (not substituted)Example:
"commandTemplates": {
"k8s-pod-logs": {
"command": "kubectl logs -n {{namespace}} {{pod}} --tail={{lines:100}}",
"description": "Fetch Kubernetes pod logs with configurable tail size"
},
"app-deploy": {
"command": "cd /var/www/{{app}} && git pull origin {{branch:main}} && npm install && pm2 restart {{app}}",
"description": "Deploy application"
},
"docker-stats": "docker stats {{container:--all}} --no-stream --format 'table {{.Name}}\\t{{.CPUPerc}}'",
"nginx-reload": "sudo nginx -t && sudo systemctl reload nginx"
}
Usage with AI:
"Get logs from the api-7d8f9 pod in the staging namespace"
The AI will recognize this matches the k8s-pod-logs template and execute it with the appropriate variables.
commandTimeout (optional)Command execution timeout in milliseconds. Default: 30000 (30 seconds).
maxConnections (optional)Maximum number of concurrent SSH connections. Default: 5.
auditLog (optional)Configure audit logging for SSH sessions.
enabled (boolean, optional): Enable audit logging (default: false)folder (string, optional): Path to store audit logs (defaults to current directory)Example:
"auditLog": {
"enabled": true,
"folder": "~/ssh-audit-logs"
}
See config.example.json for a complete configuration example.
ssh_execute_commandExecute commands on remote servers.
Parameters:
connectionName (string, required): Name of the server from your configcommand (string, required): Command to executecommandTimeout (number, optional): Command execution timeout in milliseconds (overrides global commandTimeout)Example:
{
"connectionName": "staging-api",
"command": "docker ps -a"
}
Response:
{
"stdout": "CONTAINER ID IMAGE COMMAND ...",
"stderr": "",
"exitCode": 0,
"timedOut": false
}
ssh_list_serversList all available SSH servers configured in your config file.
Parameters: None
Example:
{}
Response:
{
"success": true,
"servers": [
{
"name": "production-api",
"host": "api-prod-01.example.com",
"port": 22,
"username": "deploy"
},
{
"name": "staging-db",
"host": "db-staging.example.com",
"port": 2222,
"username": "admin"
}
],
"count": 2
}
This tool helps AI assistants discover what servers are available for SSH operations without needing to see the full configuration file.
ssh_port_forwardSet up SSH port forwarding to access remote services.
Parameters:
connectionName (string, required): Name of the server from your configremoteHost (string, required): Remote host to forward toremotePort (number, required): Remote port to forward tolocalPort (number, optional): Local port to bind to (random if omitted)Example with specific local port:
{
"connectionName": "staging-db",
"localPort": 8080,
"remoteHost": "internal-db.cluster.local",
"remotePort": 5432
}
Example with automatic port assignment:
{
"connectionName": "staging-db",
"remoteHost": "internal-db.cluster.local",
"remotePort": 5432
}
Response:
{
"id": "a1b2c3d4",
"localPort": 8080,
"remoteHost": "internal-db.cluster.local",
"remotePort": 5432,
"status": "active"
}
ssh_close_port_forwardClose an active port forward.
Parameters:
id (string, required): Unique ID of the active port forward to closeExample:
{
"id": "a1b2c3d4"
}
ssh_restart_port_forwardRestart an active port forward using its unique ID.
Parameters:
id (string, required): Unique ID of the active port forward to restartExample:
{
"id": "a1b2c3d4"
}
ssh_list_port_forwardsList all active port forwards across all connections.
Parameters: None
Response:
{
"forwards": [
{
"id": "a1b2c3d4",
"sshConnection": "admin@db-staging.example.com:2222",
"tunnel": "localhost:8080 -> internal-db.cluster.local:5432",
"status": "active"
}
]
}
ssh_port_forward_serviceStart a pre-configured named port forwarding service from your config.
Parameters:
serviceName (string, required): Name of the service from portForwardingServices configExample:
{
"serviceName": "pg-staging-database"
}
This is equivalent to calling ssh_port_forward with the pre-configured parameters (the returned result will include the generated unique id).
ssh_upload_fileUpload a file from local system to remote server via SFTP.
Parameters:
connectionName (string, required): Name of the server from your configlocalPath (string, required): Local file path to uploadremotePath (string, required): Remote destination pathpermissions (string, optional): File permissions in octal format (e.g., "0644", "0755")Example:
{
"connectionName": "app-server",
"localPath": "~/configs/app.json",
"remotePath": "/var/www/app/config.json",
"permissions": "0644"
}
Response:
{
"success": true,
"bytesTransferred": 1024,
"message": "Successfully uploaded ~/configs/app.json to /var/www/app/config.json",
"localPath": "~/configs/app.json",
"remotePath": "/var/www/app/config.json"
}
ssh_download_fileDownload a file from remote server to local system via SFTP.
Parameters:
connectionName (string, required): Name of the server from your configremotePath (string, required): Remote file path to downloadlocalPath (string, required): Local destination pathExample:
{
"connectionName": "app-server",
"remotePath": "/var/log/app/error.log",
"localPath": "~/downloads/error.log"
}
Response:
{
"success": true,
"bytesTransferred": 2048,
"message": "Successfully downloaded /var/log/app/error.log to ~/downloads/error.log",
"remotePath": "/var/log/app/error.log",
"localPath": "~/downloads/error.log"
}
ssh_list_remote_filesList files in a remote directory via SFTP.
Parameters:
connectionName (string, required): Name of the server from your configremotePath (string, required): Remote directory path to listpattern (string, optional): Glob pattern to filter files (e.g., ".log", ".json")Example:
{
"connectionName": "app-server",
"remotePath": "/var/log/app",
"pattern": ".*\\.log$"
}
Response:
{
"remotePath": "/var/log/app",
"pattern": ".*\\.log$",
"totalCount": 3,
"files": [
{
"name": "error.log",
"size": 10485760,
"modified": "2024-12-04T12:00:00.000Z",
"permissions": "100644",
"isDirectory": false,
"isFile": true
}
]
}
ssh_delete_remote_fileDelete a file on the remote server via SFTP.
Parameters:
connectionName (string, required): Name of the server from your configremotePath (string, required): Remote file path to deleteExample:
{
"connectionName": "app-server",
"remotePath": "/tmp/old-backup.tar.gz"
}
Response:
{
"success": true,
"message": "Successfully deleted /tmp/old-backup.tar.gz",
"remotePath": "/tmp/old-backup.tar.gz"
}
ssh_execute_templateExecute a pre-configured command template with variable substitution.
Parameters:
connectionName (string, required): Name of the server from your configtemplateName (string, required): Name of the command templatevariables (object, optional): Key-value pairs for variable substitutioncommandTimeout (number, optional): Command execution timeout in milliseconds (overrides global commandTimeout)Example:
{
"connectionName": "kubernetes-bastion",
"templateName": "k8s-pod-logs",
"variables": {
"namespace": "staging",
"pod": "api-7d8f9",
"lines": "50"
}
}
Response:
{
"success": true,
"templateName": "k8s-pod-logs",
"expandedCommand": "kubectl logs -n production api-7d8f9 --tail=50",
"variables": {
"namespace": "staging",
"pod": "api-7d8f9",
"lines": "50"
},
"result": {
"stdout": "...",
"stderr": "",
"exitCode": 0,
"timedOut": false
}
}
ssh_list_templatesList all available command templates with their descriptions and variables.
Parameters: None
Example:
{}
Response:
{
"success": true,
"templates": [
{
"name": "k8s-pod-logs",
"command": "kubectl logs -n {{namespace}} {{pod}} --tail={{lines:100}}",
"description": "Fetch Kubernetes pod logs with configurable tail size",
"variables": [
{ "name": "namespace", "required": true },
{ "name": "pod", "required": true },
{ "name": "lines", "required": false, "defaultValue": "100" }
]
}
],
"count": 1
}
Command Validation
allowedCommands is specified|), chains (&&, ||, ;), and command substitutions ($(), backticks)ls | rm -rf / or cat $(whoami)Server Allowlist
ssh-mcp-config.json can be accessedSSH Key Authentication Only
Connection Pooling
maxConnectionsTemplate Validation
allowedCommands validation{{.Field}}) are preserved and not substituted⚠️ Warning: This server provides powerful capabilities. Consider the following:
allowedCommands and expand as neededConfig:
{
"allowedCommands": ["kubectl", "helm", "docker"],
"servers": {
"k8s-bastion": {
"host": "k8s-bastion.example.com",
"username": "k8s-operator",
"privateKeyPath": "~/.ssh/kubernetes_operator_key"
}
}
}
Usage: Ask your AI assistant: "Check the status of pods in the staging namespace"
The assistant will execute:
{
"connectionName": "k8s-bastion",
"command": "kubectl get pods -n staging"
}
Config:
{
"servers": {
"db-bastion": {
"host": "bastion.example.com",
"username": "dbadmin",
"privateKeyPath": "~/.ssh/db_key"
}
},
"portForwardingServices": {
"staging-db": {
"connectionName": "db-bastion",
"localPort": 5432,
"remoteHost": "db-internal.example.com",
"remotePort": 5432,
"description": "Staging PostgreSQL database"
}
}
}
Usage: Ask your AI assistant: "Start the staging database tunnel"
The assistant will execute:
{
"serviceName": "staging-db"
}
Then you can connect locally: psql -h localhost -p 5432 -U dbuser
Config:
{
"allowedCommands": ["docker", "docker-compose"],
"servers": {
"app-server": {
"host": "app-01.example.com",
"username": "deploy",
"privateKeyPath": "~/.ssh/deploy_key"
}
}
}
Usage: Ask your AI assistant: "Restart the nginx container on app-server"
The assistant will execute:
{
"connectionName": "app-server",
"command": "docker restart nginx"
}
Config:
{
"servers": {
"app-server": {
"host": "app-01.example.com",
"username": "deploy",
"privateKeyPath": "~/.ssh/deploy_key"
}
}
}
Usage:
Upload a configuration file:
Ask your AI assistant: "Upload my local config.json to /var/www/app/config.json on app-server with 644 permissions"
The assistant will execute:
{
"connectionName": "app-server",
"localPath": "~/config.json",
"remotePath": "/var/www/app/config.json",
"permissions": "0644"
}
Download logs for analysis:
Ask your AI assistant: "Download the error log from /var/log/app/error.log on app-server"
The assistant will execute:
{
"connectionName": "app-server",
"remotePath": "/var/log/app/error.log",
"localPath": "~/downloads/error.log"
}
List and filter log files:
Ask your AI assistant: "Show me all .log files in /var/log/app on app-server"
The assistant will execute:
{
"connectionName": "app-server",
"remotePath": "/var/log/app",
"pattern": ".*\\.log$"
}
Clean up old backups:
Ask your AI assistant: "Delete the old backup at /tmp/backup-2024-01-01.tar.gz on app-server"
The assistant will execute:
{
"connectionName": "app-server",
"remotePath": "/tmp/backup-2024-01-01.tar.gz"
}
Apache 2.0 - see LICENSE file for details.
Repository: github.com/uarlouski/ssh-mcp-server
Issues: github.com/uarlouski/ssh-mcp-server/issues
npm Package: @uarlouski/ssh-mcp-server
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for SSH MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/ssh-mcp-server-uarlouski)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A Model Context Protocol server built on Huawei Cloud services that enables AI assistants to operate Huawei Cloud resources within conversational workflows, supporting ECS, OBS, GaussDB, and other cloud products.

An MCP server that exposes the Coolify v4.3.1 REST API so AI clients can manage applications, databases, services, servers, deployments, and more.

A deprecated Model Context Protocol server for interacting with Kong Konnect APIs, enabling AI assistants to query and analyze Kong Gateway configurations, traffic, and analytics.