AM

aiondadotcom/mcp-ssh

开发工具官方

本页由 AI 翻译,技术细节请以原文为准。 查看原文

105 stars 19 forks 质量 78 趋势 4MIT

aiondadotcom/mcp-ssh 是一个从 https://github.com/aiondadotcom/mcp-ssh. 导入的 MCP 服务器候选。

概览

aiondadotcom/mcp-ssh 是一个从 https://github.com/aiondadotcom/mcp-ssh. 导入的 MCP 服务器候选。

概述(AI 翻译)

一台用于管理和控制SSH连接的模型上下文协议(MCP)服务器。该服务器与Claude Desktop及其他兼容MCP的客户端无缝集成,提供AI驱动的SSH操作。

概述

该 MCP 服务器通过一个干净、标准化的界面提供 SSH 操作,适用于兼容 MCP 的语言模型如 Claude Desktop。服务器会自动从 ~/.ssh/config 和 [~/.ssh/known_hosts 文件中发现 SSH 主机,并使用原生 SSH 工具执行命令以实现最大可靠性。

快速启动

MCP 捆绑安装(推荐)

安装MCP SSH代理最简单的方式是作为MCP捆绑包:

  1. 从GitHub发布页面下载最新的mcp-ssh-*.mcpb文件
  2. 双击 .mcpb 文件,在 Claude Desktop 中安装

该捆绑包格式之前被称为桌面扩展,使用.dxt 扩展。v1.3.9 在过渡期间发布了这两个文件;后续版本则保留了 .mcpb 仅限。如果你的 Claude Desktop 足够老,可以拒绝 .mcpb 文件, 更新它,或者使用下面的安装方法之一。

  1. SSH工具将自动出现在你与Claude的对话中

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

MCP SSH Agent

A Model Context Protocol (MCP) server for managing and controlling SSH connections. This server integrates seamlessly with Claude Desktop and other MCP-compatible clients to provide AI-powered SSH operations.

Overview

This MCP server provides SSH operations through a clean, standardized interface that can be used by MCP-compatible language models like Claude Desktop. The server automatically discovers SSH hosts from your ~/.ssh/config and ~/.ssh/known_hosts files and executes commands using native SSH tools for maximum reliability.

Quick Start

The easiest way to install MCP SSH Agent is as an MCP Bundle:

  1. Download the latest mcp-ssh-*.mcpb file from the GitHub releases page
  2. Double-click the .mcpb file to install it in Claude Desktop

The bundle format was previously called a Desktop Extension and used the .dxt extension. v1.3.9 shipped both files during the transition; later releases carry .mcpb only. If your Claude Desktop is old enough to reject a .mcpb file, update it or use one of the installation methods below.

  1. The SSH tools will be automatically available in your conversations with Claude

Alternative Installation Methods

Installation via npx

npx @aiondadotcom/mcp-ssh

Manual Claude Desktop Configuration

To use this MCP server with Claude Desktop using manual configuration, add the following to your MCP settings file:

On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json On Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "mcp-ssh": {
      "command": "npx",
      "args": ["@aiondadotcom/mcp-ssh"]
    }
  }
}

After adding this configuration, restart Claude Desktop. The SSH tools will be available for use in your conversations with Claude.

Global Installation

npm install -g @aiondadotcom/mcp-ssh

Local Development

git clone https://github.com/aiondadotcom/mcp-ssh.git
cd mcp-ssh
npm install   # also compiles src/ -> dist/
npm start

The server is TypeScript under src/; npm install builds it. After editing sources run npm run build (or npm test, which reads src/ directly).

Example Usage

The screenshot above shows the MCP SSH Agent in action, demonstrating how it integrates with MCP-compatible clients to provide seamless SSH operations.

Integration with Claude

This screenshot demonstrates the MCP SSH Agent integrated with Claude, showing how the AI assistant can directly manage SSH connections and execute remote commands through the MCP protocol.

Key Features

在 GitHub 查看完整 README

安装

npx @aiondadotcom/mcp-ssh
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "mcp-ssh": { "command": "npx", "args": ["@aiondadotcom/mcp-ssh"] } } }