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
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)
- get_disk_free :
df -h - get_disk_usage :
du -sh {path}/* 2>/dev/null | sort -rh | head -n 20 - get_dmesg :
dmesg - get_uptime :
uptime - get_current_datetime :
date - get_distroname_version :
cat /etc/os-release - get_systemd_list_all :
systemctl list-units --all --no-pager - get_systemd_list_faild :
systemctl list-units --state=failed --no-pager - get_systemd_list_timers :
systemctl list-timers --no-pager - get_systemd_status :
systemctl status {daemon} - get_top :
top -b -n 1 -c
Project Contents
- mcp_ssh.py - the SSH MCP server
- 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)
- check_tools.py - check the server's tools with schemas, and list them
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file safe_ssh_mcp-0.1.1.tar.gz.
File metadata
- Download URL: safe_ssh_mcp-0.1.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbf51165708f6b22689d5bc7ab08b966a7c0b24bf432277eca187e814000f600
|
|
| MD5 |
65da377f8c42807597b70b86436b274e
|
|
| BLAKE2b-256 |
c66cf83515476d23336451e7bd9f3ea2642027f83edbee884140829f11341d0e
|
Provenance
The following attestation bundles were made for safe_ssh_mcp-0.1.1.tar.gz:
Publisher:
publish.yml on Areso/safe-ssh-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
safe_ssh_mcp-0.1.1.tar.gz -
Subject digest:
cbf51165708f6b22689d5bc7ab08b966a7c0b24bf432277eca187e814000f600 - Sigstore transparency entry: 1113290565
- Sigstore integration time:
-
Permalink:
Areso/safe-ssh-mcp@897e5c658671e8957c91ab579876487664133c0d -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Areso
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@897e5c658671e8957c91ab579876487664133c0d -
Trigger Event:
release
-
Statement type:
File details
Details for the file safe_ssh_mcp-0.1.1-py3-none-any.whl.
File metadata
- Download URL: safe_ssh_mcp-0.1.1-py3-none-any.whl
- Upload date:
- Size: 18.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bde6ada6bae10d1aa95da44866e7d69cc539d9b3efa73993ee984b30bb26dbac
|
|
| MD5 |
3059dd00dff7204c4c2a9d763e563d12
|
|
| BLAKE2b-256 |
6ede5c199fb5c11584b31407600d7f89f1af8affcf94d770c6daa4bae9d52727
|
Provenance
The following attestation bundles were made for safe_ssh_mcp-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on Areso/safe-ssh-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
safe_ssh_mcp-0.1.1-py3-none-any.whl -
Subject digest:
bde6ada6bae10d1aa95da44866e7d69cc539d9b3efa73993ee984b30bb26dbac - Sigstore transparency entry: 1113290573
- Sigstore integration time:
-
Permalink:
Areso/safe-ssh-mcp@897e5c658671e8957c91ab579876487664133c0d -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Areso
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@897e5c658671e8957c91ab579876487664133c0d -
Trigger Event:
release
-
Statement type: