MCP cover image
See in Github
2025-03-13

MCP服务器的SSH工具和实用程序

1

Github Watches

1

Github Forks

0

Github Stars

SSH Tools MCP

这是一个基于MCP (Model Context Protocol) 的SSH工具,允许你通过简单的命令连接到远程服务器并执行命令。

功能

  • 连接到SSH服务器
  • 执行远程命令(如 nvidia-smi)
  • 断开SSH连接

安装

  1. 安装依赖:
pip install -r requirements.txt
  1. 运行服务器:
python ssh_server.py

使用方法

该MCP服务器提供以下工具:

  1. connect_ssh - 连接到SSH服务器

    • 参数:
      • hostname: 服务器IP地址或主机名
      • password: SSH密码
      • username: SSH用户名(默认:root)
      • port: SSH端口(默认:22)
  2. run_command - 在已连接的服务器上执行命令

    • 参数:
      • command: 要执行的命令(例如:nvidia-smi)
  3. disconnect_ssh - 断开当前SSH连接

示例

  1. 连接到服务器:
connect_ssh(hostname="192.168.1.100", password="your_password")
  1. 执行 nvidia-smi 命令:
run_command(command="nvidia-smi")
  1. 断开连接:
disconnect_ssh()

注意事项

  • 确保目标服务器允许SSH密码认证
  • 建议在使用完毕后调用 disconnect_ssh 断开连接
  • 所有命令执行都会返回命令的输出或错误信息

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • Contraband Interactive
  • Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.

  • rustassistant.com
  • Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • modelcontextprotocol
  • 模型上下文协议服务器

  • Mintplex-Labs
  • 带有内置抹布,AI代理,无代理构建器,MCP兼容性等的多合一桌面和Docker AI应用程序。

  • OffchainLabs
  • 进行以太坊的实施

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • n8n-io
  • 具有本机AI功能的公平代码工作流程自动化平台。将视觉构建与自定义代码,自宿主或云相结合,400+集成。

    Reviews

    5 (1)
    Avatar
    user_o9dDDnWB
    2025-04-16

    I've been using ssh-tools-mcp for a while now and it has greatly streamlined my workflow. The setup is straightforward and the functionalities provided by lightfate are robust and reliable. It's an essential tool for anyone who frequently works with SSH for management and operations. I highly recommend checking it out at https://github.com/lightfate/ssh-tools-mcp!