MCP SSH Tools Server
Supports interaction with Git repositories as part of the server setup process.
Provides remote Linux server management capabilities via SSH, including command execution, file transfers (upload/download), and directory operations.
Includes testing infrastructure through Pytest for development and validation of SSH tool functionality.
Uses YAML for configuration, as indicated by the PyYAML dependency.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP SSH Tools Server download the logs directory from the production server"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP SSH 工具服务器
一个基于MCP框架的SSH工具服务器,提供远程服务器管理功能。
功能特性
支持多服务器配置管理
提供SSH连接池管理
支持文件上传/下载(包括递归目录操作)
支持远程命令执行
可通过环境变量或代码配置服务器
Related MCP server: MCP SSH Agent
安装
使用uv安装Python 3.13+:
uv pip install --python=3.13安装项目依赖:
uv pip install "mcp[cli]"
uv pip install requests paramiko(可选) 使用uv创建虚拟环境:
uv venv .venv
source .venv/bin/activate # Linux/Mac
.venv\Scripts\activate # Windows下载代码:
git clone https://github.com/nwnusun-cool/mcp-server-ssh-tools.git配置
使用json文件配置服务器,示例:
{
"mcpServers": {
"ssh_sun": {
"command": "uv",
"args": [
"--directory",
"F:\\仓库\\产品\\mcp-server-ssh-tools",
"run",
"main.py"
],
"env": {
"SSH_IP": "192.168.2.127",
"SSH_USER": "root",
"SSH_PASSWORD": "123456",
"SSH_PORT": "22"
}
}
}
}使用
API接口
execute: 执行远程命令download_file: 下载远程文件/目录upload_file: 上传本地文件/目录list_directory: 列出远程目录内容test_connection: 测试服务器连接
依赖
mcp[cli]>=1.10.1
paramiko>=3.5.1
pyyaml>=6.0.2
requests>=2.32.4
开发
# 安装开发依赖
pip install -e ".[dev]"
# 运行测试
pytest许可证
MIT
Available Tools
7 toolsadd_server_configB
动态添加服务器配置 参数:
name: 服务器名称
ip: 服务器IP地址
user: SSH用户名
password: SSH密码
port: SSH端口,默认22
Inputs: name (required), ip (required), user (required), password (required), +1 more. Returns: result
download_fileB
下载远程服务器的文件或者目录,保存到指定目录下,如果是目录,则递归下载 参数:
server_name: 服务器名称
remote_path: 远程文件/目录路径
local_src: 本地文件/目录路径
Inputs: server_name (required), remote_path (required), local_src (required). Returns: result
executeB
执行远程命令 参数:
server_name: 服务器名称 (如果只有一个服务器配置,可以使用 'default')
command: 要执行的命令
Inputs: server_name (required), command (required). Returns: result
list_directoryC
列出远程目录内容 参数:
server_name: 服务器名称
path: 目录路径,默认为根目录
Inputs: server_name (required), path. Returns: result
list_serversB
列出所有配置的服务器
Inputs: no named parameters. Returns: result
test_connectionC
测试服务器连接 参数:
server_name: 服务器名称
Inputs: server_name (required). Returns: result
upload_fileC
将本地的文件或者目录上传到远程服务器 参数:
server_name: 服务器名称
remote_path: 远程文件/目录路径
local_src: 本地文件/目录路径
Inputs: server_name (required), remote_path (required), local_src (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool has a clearly distinct purpose with no overlap: add_server_config manages server configurations, list_servers enumerates them, test_connection checks connectivity, execute runs commands, list_directory browses files, and upload_file/download_file handle file transfers. The descriptions reinforce these distinct roles, making tool selection unambiguous.
All tools follow a consistent verb_noun or verb_noun_noun pattern (e.g., add_server_config, list_directory, upload_file). The naming is uniform across the set, using snake_case throughout with clear, descriptive terms that align with their functions.
With 7 tools, the count is well-scoped for an SSH management server. It covers essential operations like server configuration, connection testing, command execution, file management, and directory listing, without being overly sparse or bloated.
The tool set provides strong coverage for core SSH workflows, including CRUD-like operations for server configs, file transfers, and remote execution. A minor gap is the lack of tools for deleting or modifying server configurations, which agents might need to work around, but the surface is largely complete for the domain.
Maintenance
Related MCP Connectors
SSH client, server management and one remote MCP URL for your machines, with human approvals.
A MCP server built for developers enabling Git based project management with project and personal…
Remote MCP server for managing Muninx tickets, messages, ticket search, and support analytics.
Related MCP Servers
- FlicenseBqualityDmaintenanceA server that enables remote command execution over SSH through the Model Context Protocol (MCP), supporting both password and private key authentication.12-
- AlicenseBqualityCmaintenanceA server that enables secure interaction with remote SSH hosts through standardized MCP interface, providing functions like listing hosts, executing commands, and transferring files using native SSH tools.7350 npm105MIT
- AlicenseAqualityDmaintenanceMCP server for managing remote servers via SSH, enabling command execution, file transfer, rsync, tunnels, health checks, backups, and database operations.171MIT
- AlicenseAqualityDmaintenanceA secure remote server management tool based on MCP protocol, supporting SSH connections, command execution, and SFTP file transfers.2061 npm6MIT