SSH Tools MCP logo

SSH Tools MCP

by lightfate

SSH Tools MCP is an SSH tool based on MCP (Model Context Protocol). It allows you to connect to remote servers and execute commands through simple commands.

View on GitHub

Last updated: N/A

What is SSH Tools MCP?

This is an SSH tool built on the Model Context Protocol (MCP) that simplifies remote server management by allowing users to connect and execute commands through a standardized interface.

How to use SSH Tools MCP?

  1. Install dependencies using pip install -r requirements.txt. 2. Run the server using python ssh_server.py. 3. Use the provided functions (connect_ssh, run_command, disconnect_ssh) with appropriate parameters to manage SSH connections and execute commands.

Key features of SSH Tools MCP

  • Connect to SSH servers

  • Execute remote commands

  • Disconnect SSH connections

  • MCP based interface

Use cases of SSH Tools MCP

  • Remotely monitoring server status (e.g., using nvidia-smi)

  • Automating tasks on remote servers

  • Managing multiple servers from a single interface

  • Executing administrative commands remotely

FAQ from SSH Tools MCP

How do I connect to a server?

Use the connect_ssh function, providing the hostname, password, username (default: root), and port (default: 22).

How do I run a command on the connected server?

Use the run_command function, providing the command you want to execute as a string.

How do I disconnect from the server?

Use the disconnect_ssh function.

What should I do if I encounter a permission error?

Ensure the SSH server allows password authentication and that the provided username and password are correct. Also, verify that the user has the necessary permissions to execute the desired commands.

Is it necessary to disconnect after use?

Yes, it is recommended to call disconnect_ssh after you are finished to properly close the connection and free up resources.