
MCP SSH Tools Server
A server based on the MCP framework that provides remote server management capabilities through SSH, supporting features like connection pooling, file transfers, and remote command execution.
README
MCP SSH 工具服务器
一个基于MCP框架的SSH工具服务器,提供远程服务器管理功能。
功能特性
- 支持多服务器配置管理
- 提供SSH连接池管理
- 支持文件上传/下载(包括递归目录操作)
- 支持远程命令执行
- 可通过环境变量或代码配置服务器
安装
- 使用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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.