Skip to main content

A secure and scoped SSH Model Context Protocol (MCP) server for executing safe, read-only diagnostic commands only

Project description

Safe SSH MCP Server

A secure and scoped Model Context Protocol (MCP) server for executing safe, read-only diagnostic commands over SSH.

Badges

Snyk Vulnerability Database report - security check

Overview

The core philosophy behind this MCP server is safety first. Instead of providing an AI agent with an unrestricted bash shell, this server exposes only carefully curated, read-only commands for system diagnostics and monitoring.

Available Tools (Partial List)

  1. get_disk_free : df -h
  2. get_disk_usage : du -sh {path}/* 2>/dev/null | sort -rh | head -n 20
  3. get_dmesg : dmesg
  4. get_uptime : uptime
  5. get_current_datetime : date
  6. get_distroname_version : cat /etc/os-release
  7. get_systemd_list_all : systemctl list-units --all --no-pager
  8. get_systemd_list_faild : systemctl list-units --state=failed --no-pager
  9. get_systemd_list_timers : systemctl list-timers --no-pager
  10. get_systemd_status : systemctl status {daemon}
  11. get_top : top -b -n 1 -c

Project Contents

  1. mcp_ssh.py - the SSH MCP server
  2. mcp_config.ini - the server's config:
    • ip address to listen (default 127.0.0 - available only from the localhost)
    • port (4747 for default)
    • transport (sse)
  3. check_tools.py - check the server's tools with schemas, and list them
  4. check_health.py - check the server's tools and either it's up

The License

This project is licensed under the GNU AGPLv3 License.

Why AGPL?

This server acts as core infrastructure and contains no proprietary business logic. By using the AGPL license, we ensure that any security improvements, bug fixes, or new diagnostic tools added to the server are shared back with the open-source community.

Note for Client Developers

Because MCP clients communicate with this server via standard Inter-Process Communication (IPC) or network protocols (like HTTP/SSE), the AGPL license does not "infect" or restrict the client applications connecting to it.
You can safely connect proprietary, closed-source, or permissively licensed (e.g., MIT, Apache 2.0) AI agents to this server without violating the license terms.

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

safe_ssh_mcp-0.1.2.tar.gz (17.8 kB view details)

Uploaded Source

Built Distribution

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

safe_ssh_mcp-0.1.2-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file safe_ssh_mcp-0.1.2.tar.gz.

File metadata

  • Download URL: safe_ssh_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for safe_ssh_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2bfc59232976b7bfcd966836eb6518bf7c8230f733d3b652999ab91bad8aafd3
MD5 dec2c949f15d44612068445c8a2fa44d
BLAKE2b-256 902460990b85026457597dc74ad30557a032f790552f3d97c74af636622f9b84

See more details on using hashes here.

Provenance

The following attestation bundles were made for safe_ssh_mcp-0.1.2.tar.gz:

Publisher: publish.yml on Areso/safe-ssh-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file safe_ssh_mcp-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: safe_ssh_mcp-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 18.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for safe_ssh_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 09f44987bcd0977531e4807c64f3ef65c004d977cab3180fe8561b948017f24e
MD5 2615bb10f156235ba14be214c71a5852
BLAKE2b-256 4690a56f6f4f05149fc7281e86d337a07dfa3eda6144631dc653e4ae011955af

See more details on using hashes here.

Provenance

The following attestation bundles were made for safe_ssh_mcp-0.1.2-py3-none-any.whl:

Publisher: publish.yml on Areso/safe-ssh-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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