ssh-tools-mcp
SSH tools and utilities for MCP servers
Documentation
SSH Tools MCP
这是一个基于MCP (Model Context Protocol) 的SSH工具,允许你通过简单的命令连接到远程服务器并执行命令。
功能
- 连接到SSH服务器
- 执行远程命令(如 nvidia-smi)
- 断开SSH连接
安装
1. 安装依赖:
pip install -r requirements.txt2. 运行服务器:
python ssh_server.py使用方法
该MCP服务器提供以下工具:
1. `connect_ssh` - 连接到SSH服务器
2. `run_command` - 在已连接的服务器上执行命令
3. `disconnect_ssh` - 断开当前SSH连接
示例
1. 连接到服务器:
connect_ssh(hostname="192.168.1.100", password="your_password")2. 执行 nvidia-smi 命令:
run_command(command="nvidia-smi")3. 断开连接:
disconnect_ssh()注意事项
- 确保目标服务器允许SSH密码认证
- 建议在使用完毕后调用 `disconnect_ssh` 断开连接
- 所有命令执行都会返回命令的输出或错误信息
Frequently asked questions
What is ssh-tools-mcp?
ssh-tools-mcp is SSH tools and utilities for MCP servers
How do I install ssh-tools-mcp?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is ssh-tools-mcp open source?
Yes — it is hosted on GitHub at https://github.com/lightfate/ssh-tools-mcp and has 1 stars.
Related MCP tools
AWS MCP Servers — helping you get the most out of AWS, wherever you use MCP. Python-based implementation. Trusted by 6900+ developers.
A simple, secure MCP-to-OpenAPI proxy server Python-based implementation. Trusted by 3500+ developers. Trusted by 3500+ developers.
MCP server that interacts with Obsidian via the Obsidian rest API community plugin Python-based implementation. Trusted by 2300+ developers.
Default Configuration: MCP CLI defaults to using Ollama with the gpt-oss reasoning model for local, privacy-focused operation without requiring API keys.
Official MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
MCP server for long term agent memory with Mem0. Also useful as a template to get you started building your own MCP server with Python!
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP