Skip to main content
Glama

my-server-mcp

Python 3.10+ Zero Dependencies MCP MIT

Zero-dependency Python 3 SSH/SCP MCP server & plugin with persistent PTY sessions, sudo, and safety policies.

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)

Related MCP server: ssh-for-agents

Install

# 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)

git clone https://github.com/devmoamal/my-server-mcp ~/.gemini/config/plugins/my-server-mcp

Configure credentials in .env (see .env.example).

Claude (claude_desktop_config.json / Claude Code)

claude mcp add my-server-mcp -e SERVER_HOST=192.168.1.100 -e SERVER_USER=root -e SERVER_PASSWORD=pass -- my-server-mcp
{
  "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)

codex mcp add my-server-mcp --env SERVER_HOST=192.168.1.100 --env SERVER_USER=root --env SERVER_PASSWORD=pass -- my-server-mcp
[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

python3 -m unittest discover -s tests -v

Available Tools

15 tools
server_downloadC

Download a file or directory from the server via SCP.

Inputs: local_path (required), remote_path (required).

server_execC

Run a shell command on the server over SSH.

Inputs: command (required), cwd, confirm, timeout.

server_infoA

Collect hostname, OS, uptime, RAM, disk usage, and listening ports.

Inputs: no named parameters.

server_list_dirC

List files and permissions in a remote directory.

Inputs: all, path.

server_logsB

Tail and optionally filter a remote log file or systemd journal unit.

Inputs: source (required), grep, lines, is_unit.

server_read_fileC

Read a remote text file (optionally by line range).

Inputs: path (required), end_line, start_line.

server_serviceB

Inspect or manage systemd services or Docker containers.

Inputs: action (required), manager (required), name, lines.

server_session_closeC

Terminate and clean up an SSH session.

Inputs: session_id (required).

server_session_listB

List active or recently exited SSH sessions.

Inputs: no named parameters.

server_session_readC

Read newly buffered output from a running SSH session.

Inputs: session_id (required), wait_ms.

server_session_startC

Start a persistent interactive PTY SSH session and return its session_id.

Inputs: cwd, command, confirm, wait_ms.

server_session_writeC

Send a command or input to a running SSH session and return output.

Inputs: input (required), session_id (required), confirm, wait_ms, +1 more.

server_sudo_execC

Run a privileged shell command using sudo -S.

Inputs: command (required), cwd, confirm, timeout.

server_uploadC

Upload a local file or directory to the server via SCP.

Inputs: local_path (required), remote_path (required).

server_write_fileC

Write or append text to a remote file via stdin.

Inputs: path (required), content (required), append.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 15 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables secure remote command execution and bidirectional file transfers on SSH servers through the Model Context Protocol. It features robust security controls including command whitelisting, credential isolation, and support for multiple SSH connection profiles.
      1,543 npm
      1,084
      ISC
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to securely execute commands on remote hosts via SSH and SFTP, with persistent shells, file transfers, screenshots, and an audit log.
      5
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables executing shell commands and transferring files on remote machines over SSH/SFTP, including persistent interactive sessions that can handle prompts such as sudo and package manager confirmations.
      -