
一个安全、就绪的模型上下文协议(MCP)服务器,赋能AI助手通过SSH管理远程基础设施。
概览
一台安全、就绪的服务器,赋能AI助手通过SSH管理远程基础设施。 它弥合了大型语言模型(LLM)与基础设施之间的桥梁。它使像 、 、 这样的 AI 助手能够安全执行命令、通过 SFTP 传输文件,并管理端口转发隧道。将你的 AI 变成一个能够排查、部署和监控服务器且设有严格安全界限的能力者。 - : 让你的 AI 助手检查 Docker 容器状态,读取 Kubernetes Pod 日志,或重启 systemd 服务。- : 快速分析日志文件,检查磁盘使用情况,并利用自然语言调查网络问题。- : 安全读取配置文件、更新脚本或通过 SFTP 获取日志,无需离开聊天界面。- : 通过一个提示串联多个命令和工具,完成复杂维护任务。
概述(AI 翻译)
一个安全、具备生产准备的**建模上下文协议(MCP)**服务器,赋能AI助手通过SSH管理远程基础设施。
SSH MCP 服务器搭建了大型语言模型(LLM)与基础设施之间的桥梁。它使像 Claude Desktop、Cursor 和 GitHub Copilot 等 AI 助手能够安全执行命令,通过 SFTP 传输文件,并管理端口转发隧道。将你的 AI 变成一个能力强大的 DevOps 助手,能够排查、部署并监控服务器,并设有严格的安全边界。
目录
- 为什么要使用 SSH MCP 服务器?
- 兼容性
- 特色
- 安装
- 快速入门
- 配置
- 可用工具
- 安全
- 示例
- 许可证
为什么要用SSH MCP服务器?
- DevOps 自动化:让你的 AI 助手检查 Docker 容器状态,读取 Kubernetes 播客日志,或重启 systemd 服务。
- 基础设施调试:快速分析日志文件,检查磁盘使用情况,并利用自然语言调查网络问题。
- 安全文件管理:安全读取配置文件、更新脚本或通过SFTP获取日志,无需离开聊天界面。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
SSH MCP Server for AI Assistants - Secure Remote Server Management
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.
Table of Contents
- Why use SSH MCP Server?
- Compatibility
- Features
- Installation
- Quick Start
- Configuration
- Available Tools
- Security
- Examples
- License
Why use SSH MCP Server?
- DevOps Automation: Let your AI assistant check Docker container status, read Kubernetes pod logs, or restart systemd services.
- Infrastructure Debugging: Quickly analyze log files, check disk usage, and investigate network issues using natural language.
- Secure File Management: Safely read configuration files, update scripts, or retrieve logs via SFTP without leaving your chat interface.
- Complex Workflows: Chain multiple commands and tools to perform complex maintenance tasks with a single prompt.
Compatibility
This MCP server is designed to work with any client supporting the Model Context Protocol, including:
- Anthropic Claude Desktop
- Cursor Editor
- GitHub Copilot
Features
- 🔐 Secure SSH Command Execution - Run shell commands on remote servers with strict validation and timeouts.
- 🛡️ Granular Access Control - Whitelist specific commands and arguments to prevent unauthorized actions (e.g., allow
docker psbut blockdocker stop).
安装
npx @uarlouski/ssh-mcp-server@latest --configPath=/path/to/your/ssh-mcp-config.json配置
{
"mcpServers": {
"ssh": {
"command": "npx",
"args": [
"@uarlouski/ssh-mcp-server@latest",
"--configPath=/path/to/your/ssh-mcp-config.json"
]
}
}
}