my-server-mcp
<div align="center">
# my-server-mcp
[](https://www.python.org/downloads/)
[](#)
[](https://modelcontextprotocol.io)
[](./LICENSE)
Zero-dependency Python 3 SSH/SCP MCP server & plugin with persistent PTY sessions, `sudo`, and safety policies.
</div>
## Tools
| Category | Tools |
| --- | --- |
| **Exec** | `server_exec`, `server_sudo_exec` (`cwd`, `timeout`, `confirm`) |
| **Sessions** | `server_session_start`, `server_session_write`, `server_session_read`, `server_session_list`, `server_session_close` |
| **Files** | `server_list_dir`, `server_read_file`, `server_write_file` |
| **Ops** | `server_info`, `server_service` (`systemd`/`docker`), `server_logs` |
| **Transfer** | `server_upload`, `server_download` (`scp -r`) |
## Install
```bash
# Run directly with uvx (no clone needed)
uvx --from git+https://github.com/devmoamal/my-server-mcp my-server-mcp --help
# Or install with pip
pip install git+https://github.com/devmoamal/my-server-mcp
```
### Antigravity (Plugin + Skill + MCP)
```bash
git clone https://github.com/devmoamal/my-server-mcp ~/.gemini/config/plugins/my-server-mcp
```
Configure credentials in `.env` (see [`.env.example`](./.env.example)).
### Claude (`claude_desktop_config.json` / Claude Code)
```bash
claude mcp add my-server-mcp -e SERVER_HOST=192.168.1.100 -e SERVER_USER=root -e SERVER_PASSWORD=pass -- my-server-mcp
```
```json
{
"mcpServers": {
"my-server-mcp": {
"command": "my-server-mcp",
"env": { "SERVER_HOST": "192.168.1.100", "SERVER_USER": "root", "SERVER_PASSWORD": "pass" }
}
}
}
```
### Codex (`~/.codex/config.toml` / Codex CLI)
```bash
codex mcp add my-server-mcp --env SERVER_HOST=192.168.1.100 --env SERVER_USER=root --env SERVER_PASSWORD=pass -- my-server-mcp
```
```toml
[mcp_servers.my-server-mcp]
command = "my-server-mcp"
[mcp_servers.my-server-mcp.env]
SERVER_HOST = "192.168.1.100"
SERVER_USER = "root"
SERVER_PASSWORD = "pass"
```
## Config
Set via `.env`, client `env`, or CLI flags (`--host`, `--port`, `--user`, `--password`, `--key`, `--policy`, `--no-sudo`, `--audit-log`).
## Test
```bash
python3 -m unittest discover -s tests -v
```
TDQS
Scored across 15 tools
Most tools target clearly distinct operations (SCP transfer, one-shot exec, privileged exec, PTY session lifecycle, file read/write, service and log management). The main soft overlaps are server_exec vs server_sudo_exec vs server_session_write, and server_read_file vs server_logs, but the descriptions make the one-shot-vs-persistent and text-vs-tail distinctions clear enough.
All names are snake_case under a uniform server_ prefix, with a mostly predictable verb_noun shape (server_read_file, server_list_dir, server_session_close). Minor deviations exist: server_info, server_logs and server_service are noun-only, and server_sudo_exec inserts a modifier, but the pattern remains easy to scan.
Fifteen tools is well within the sensible range and each one maps to a concrete, non-redundant capability: transfers, exec, privilege escalation, session lifecycle, inspection, file ops, services and logs. Nothing appears padded or missing at the surface level.
The surface covers connection, execution, file transfer, file I/O, session management, services and logs, which is a solid lifecycle for remote server administration. Gaps are minor: no explicit delete/move/chmod for files and no process-management tool, though these can be worked around via server_exec.