
vignitin/multi-ssh-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
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
- Quick Start
- Installation
- Configuration
- Available Tools
- Output Parsing with JC
- Usage Examples
- Security Considerations
- Troubleshooting
- Logging
- Environment Variables
- SSE/HTTP Mode
- License
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
インストール
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設定
{
"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"
]
}
}
}