A secure and scoped SSH MCP server for executing safe read-only diagnostic commands over SSH
Project description
Safe SSH MCP Server
A secure and scoped SSH MCP server for executing read-only diagnostic commands over SSH.
In this project, "safe" refers specifically to host safety: the server is designed to prevent modifications to the remote system and reduce the risk of operational harm. It does NOT attempt to guarantee that command output cannot be misused by external agents.
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 :
find <path> -mindepth 1 -maxdepth 1 -exec du -sh -- {} + 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_failed :
systemctl list-units --state=failed --no-pager - get_systemd_list_timers :
systemctl list-timers --no-pager - get_crontab_tasks:
crontab -l - get_systemd_status :
systemctl status {daemon} - get_top :
top -b -n 1 -c
Example of invocation
okay, could u check disk usage on /root/ path with help of safe-ssh-mcp server on a remote myserver.mydomain.pro using root and /Users/myUser/.ssh/id_rsa to login?
Project Contents
- mcp_ssh.py - the SSH MCP server
- mcp_config.ini - the server's config
- 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
Compatibility
Tested only on Python3.11 running on MacOS
The MCP Registry
mcp-name: io.github.Areso/safe-ssh-mcp
The License
This project is licensed under the GNU AGPLv3 License.
Why AGPL?
This server acts as core infrastructure and contains no 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.8.tar.gz.
File metadata
- Download URL: safe_ssh_mcp-0.1.8.tar.gz
- Upload date:
- Size: 19.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
765d4b7f0d7d0d583f4dd659a5765576499b3075892b02101ebdeda4979e91b3
|
|
| MD5 |
ca60a0bb2a15acd0ba7c6adabf024e90
|
|
| BLAKE2b-256 |
f81aea776eaa9c3d6ea4cd5a197f68f31fd8b7cafd28183054bcd15e98086ba0
|
Provenance
The following attestation bundles were made for safe_ssh_mcp-0.1.8.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.8.tar.gz -
Subject digest:
765d4b7f0d7d0d583f4dd659a5765576499b3075892b02101ebdeda4979e91b3 - Sigstore transparency entry: 1155387148
- Sigstore integration time:
-
Permalink:
Areso/safe-ssh-mcp@2f56c8275a1c9261543adfc78edbab8d5a7946b7 -
Branch / Tag:
refs/tags/v0.1.8 - Owner: https://github.com/Areso
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2f56c8275a1c9261543adfc78edbab8d5a7946b7 -
Trigger Event:
release
-
Statement type:
File details
Details for the file safe_ssh_mcp-0.1.8-py3-none-any.whl.
File metadata
- Download URL: safe_ssh_mcp-0.1.8-py3-none-any.whl
- Upload date:
- Size: 19.7 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 |
0efc85ebf6be559143ce2ce29297e451adad5642f4fa25df32e32197d1935a97
|
|
| MD5 |
b737e6a2a8f7163ba4c85b35a1e5ec94
|
|
| BLAKE2b-256 |
3a546c2986bb4993b47871af1aac7004b4e46c0a5b72d89444c582be41b8dbc7
|
Provenance
The following attestation bundles were made for safe_ssh_mcp-0.1.8-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.8-py3-none-any.whl -
Subject digest:
0efc85ebf6be559143ce2ce29297e451adad5642f4fa25df32e32197d1935a97 - Sigstore transparency entry: 1155387150
- Sigstore integration time:
-
Permalink:
Areso/safe-ssh-mcp@2f56c8275a1c9261543adfc78edbab8d5a7946b7 -
Branch / Tag:
refs/tags/v0.1.8 - Owner: https://github.com/Areso
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2f56c8275a1c9261543adfc78edbab8d5a7946b7 -
Trigger Event:
release
-
Statement type: