VM

vignitin/multi-ssh-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

6 stars 3 forks 品質 59 トレンド 14

Multi-Server SSH MCP Server - Connect any LLM to multiple SSH servers with secure credential management

概要

A Python-based Model Context Protocol (MCP) server that enables Claude to connect to and manage multiple SSH servers through a unified interface. Built with FastMCP, it provides secure, on-demand connections with comprehensive server management capabilities. - : Define unlimited SSH servers in JSON configuration - : Connects only when needed, one server at a time - : Supports both password and SSH key authentication - : Secure credential storage using environment variables - : Upload and download files via SFTP - : Execute commands on any configured server - : Automatic JSON parsing of command outputs using JC library - : Easy connect/disconnect with status tracking - : Credentials never stored in configuration files - : Supports both stdio (Claude Desktop) and SSE/HTTP modes - : Full containerization with Docker and Docker Compose support Install dependencies (see Installation section for more options): Copy the example configuration and customize for your servers: - Python 3.

README

以下は原文 README の抜粋です。原文を見る。

Multi-Server SSH MCP Server

A Python-based Model Context Protocol (MCP) server that enables Claude to connect to and manage multiple SSH servers through a unified interface. Built with FastMCP, it provides secure, on-demand connections with comprehensive server management capabilities.

Table of Contents

Features

  • Multiple Server Support: Define unlimited SSH servers in JSON configuration
  • On-Demand Connections: Connects only when needed, one server at a time
  • Flexible Authentication: Supports both password and SSH key authentication
  • Environment Variables: Secure credential storage using environment variables
  • File Transfer: Upload and download files via SFTP
  • Command Execution: Execute commands on any configured server
  • Structured Output Parsing: Automatic JSON parsing of command outputs using JC library
  • Connection Management: Easy connect/disconnect with status tracking
  • Security First: Credentials never stored in configuration files
  • Multiple Transports: Supports both stdio (Claude Desktop) and SSE/HTTP modes
  • Docker Ready: Full containerization with Docker and Docker Compose support

Quick Start

1. Clone and Install

git clone 
cd multi-ssh-mcp

Install dependencies (see Installation section for more options):

pip install -r requirements.txt
# or using UV (recommended)
uv sync

2. Create Configuration

Copy the example configuration and customize for your servers:

cp ssh_config_example.json servers.json
# Edit servers.json with your server details

3. Run the MCP Server

# Using default config (servers.json)
python3 multi_ssh_mcp.py
GitHub で README 全文を見る

インストール

docker run -i --rm -v /path/to/config:/config:ro -v ${HOME}/.ssh:/home/mcp/.ssh:ro -e SSH_PASSWORD_PROD -e SSH_PASSWORD_STAGING multi-ssh-mcp:latest
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "Multi-SSH MCP Server": { "command": "uv", "args": [ "run", "--with", "fastmcp,paramiko", "python3", "/path/to/multi-ssh-mcp/multi_ssh_mcp.py", "/path/to/multi-ssh-mcp/servers.json" ] } } }