
ssh tools mcp
SSH tools and utilities for MCP servers
Repository Info
About This Server
SSH tools and utilities for MCP servers
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
SSH Tools MCP
这是一个基于MCP (Model Context Protocol) 的SSH工具,允许你通过简单的命令连接到远程服务器并执行命令。
功能
- 连接到SSH服务器
- 执行远程命令(如 nvidia-smi)
- 断开SSH连接
安装
- 安装依赖:
pip install -r requirements.txt
- 运行服务器:
python ssh_server.py
使用方法
该MCP服务器提供以下工具:
-
connect_ssh- 连接到SSH服务器- 参数:
- hostname: 服务器IP地址或主机名
- password: SSH密码
- username: SSH用户名(默认:root)
- port: SSH端口(默认:22)
- 参数:
-
run_command- 在已连接的服务器上执行命令- 参数:
- command: 要执行的命令(例如:nvidia-smi)
- 参数:
-
disconnect_ssh- 断开当前SSH连接
示例
- 连接到服务器:
connect_ssh(hostname="192.168.1.100", password="your_password")
- 执行 nvidia-smi 命令:
run_command(command="nvidia-smi")
- 断开连接:
disconnect_ssh()
注意事项
- 确保目标服务器允许SSH密码认证
- 建议在使用完毕后调用
disconnect_ssh断开连接 - 所有命令执行都会返回命令的输出或错误信息
Quick Start
Clone the repository
git clone https://github.com/lightfate/ssh-tools-mcpInstall dependencies
cd ssh-tools-mcp
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.