Skip to main content

SSH MCP - tools for remote SSH operations for debugging

Project description

SSH MCP Server

A Machine Control Protocol (MCP) server that provides tools for LLMs to safely SSH into remote dev/test machines.

Features

  • SSH connection management to remote machines
  • Run query scripts for retrieving information
  • Cautiously run modifying scripts for debugging purposes
  • Secure credential management using SSH key authentication

Tools

just_get_version

Returns the current version of the SSH MCP server.

run_query_script

Executes read-only shell scripts on remote machines to gather information without modifying the system.

Example:

result = await run_query_script(
    hostname="192.168.1.100",
    script="cat /var/log/syslog | grep ERROR",
    username="admin"  # Optional, defaults to root
)

run_dangerous_script

Executes scripts that might modify the remote system. Includes safety confirmations and warnings.

Example:

result = await run_dangerous_script(
    hostname="192.168.1.100",
    script="service nginx restart",
    username="admin",  # Optional, defaults to root
    confirmation="I understand this is dangerous"  # Required safety confirmation
)

Installation

pip install ssh-mcp

Usage

# Start the MCP server
ssh-mcp

Requirements

  • SSH key-based authentication must be set up for target machines
  • Paramiko Python library (installed automatically)
  • Python 3.12 or higher

Configuration

Coming soon

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ssh_mcp-0.1.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ssh_mcp-0.1.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file ssh_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: ssh_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for ssh_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ab79b7b5f0eb5a117ab606e30a39f452f0bbfa516e8a52600ab06f6e036e2f21
MD5 19da009c774bb1e340710fd243c35c2c
BLAKE2b-256 be57d67d30bce9e8e369f77b25f5d51fe1136d20bce6e3c7d5f8b464cbb076d8

See more details on using hashes here.

File details

Details for the file ssh_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ssh_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for ssh_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e132ec97f5df917df1d03204ec94e6fd9c10c24a50286bb946c73e95ddeca928
MD5 b78f6b79d40b825cfa237ab5f90b1fee
BLAKE2b-256 0c24a57548fbdfbabecc5b476ba39c0fe74b15f93e0e3fdcfff9aa46d15615c2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page