MCP SSH Docker Server

MCP SSH Docker Server

mcp-ssh-frr•byaweher

An MCP server that provides SSH command execution on remote systems and command execution inside Docker containers through a standardized interface.

License: Not specified•Runtime: Awaiting documentation review•Category: cloud devops

WHAT IT DOES

  • •Executes arbitrary commands on a remote system over SSH via the ssh_exec tool.
  • •Runs commands inside Docker containers and can list available containers via ssh_exec_docker.
  • •Supports real-time output streaming, progress reporting, and structured JSON output.
  • •Provides command cancellation, connection and command timeouts, and comprehensive error handling, using SSH key-based authentication.

BEST FOR

  • •Running operational commands on remote hosts from an MCP-enabled assistant.
  • •Inspecting and operating containerized network tools such as vtysh for BGP output.
  • •Long-running command monitoring with streaming progress updates.

ABOUT MCP-SSH-FRR

MCP SSH Docker Server is cataloged as an MCP server attributed to aweher. An MCP server that provides SSH command execution on remote systems and command execution inside Docker containers through a standardized interface. It is categorized under cloud devops. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP SSH Docker Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which tools does the server expose?

It exposes ssh_exec for remote SSH commands and ssh_exec_docker for commands inside Docker containers, including a list_containers option.

What output formats can commands return?

Commands can return plain text output, structured JSON output, or progress updates when streaming is enabled.

Upstream README

View this exact version on GitHub

README.md · 28b74d013516 · Fetched 2026-11-13 13:25:17 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

MCP SSH Docker Server

A Message Control Protocol (MCP) server that provides SSH and Docker command execution capabilities. This server allows you to execute commands on remote systems and Docker containers through a standardized interface.

Features

  • SSH command execution on remote systems
  • Docker container command execution
  • Real-time command output streaming
  • Progress reporting for long-running commands
  • Structured JSON output support
  • Command cancellation support
  • Connection and command timeouts
  • Comprehensive error handling

Prerequisites

  • Python 3.7+
  • SSH access to target system
  • Docker installed on target system (for Docker commands)

Installation

Using pip

pip install mcp-ssh-frr

From source

  1. Clone the repository:
git clone https://github.com/aweher/mcp-ssh-frr.git
cd mcp-ssh-frr
  1. Create and activate a virtual environment:
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Install the package in development mode:
pip install -e .
  1. Configure SSH:

    • Place your SSH private key in ./config/id_rsa

    • Set up environment variables:

      export SSH_HOST="your-remote-host"
      export SSH_USER="your-username" # Defaults to root
      export SSH_PORT="22"  # Optional, defaults to 22
      
    • Don't forget to add your pubkey into authorized_keys file on your-remote-host

Usage

Starting the Server

python mcp_ssh_docker_server.py

Available Tools

1. SSH Command Execution (ssh_exec)

Execute any command on the remote system:

{
    "name": "ssh_exec",
    "args": {
        "command": "ls",
        "args": ["-la", "/etc"],
        "stream": false,  # Set to true for real-time output
        "structured_output": false  # Set to true for JSON output
    }
}

2. Docker Command Execution (ssh_exec_docker)

Execute commands inside Docker containers:

{
    "name": "ssh_exec_docker",
    "args": {
        "container": "my-container",
        "command": "vtysh",
        "args": ["-c", "show ip bgp"],
        "stream": false,
        "structured_output": false
    }
}

List available containers:

{
    "name": "ssh_exec_docker",
    "args": {
        "list_containers": true,
        "structured_output": false
    }
}

Output Formats

  1. Text Output (default):
$ command arg1 arg2
(exit code 0)

output line 1
output line 2
  1. Structured JSON Output:
{
    "command": "command arg1 arg2",
    "exit_code": 0,
    "stdout": "output line 1\noutput line 2",
    "stderr": "",
    "duration": 0.123,
    "metadata": {
        "container": "my-container"  // For Docker commands
    }
}
  1. Progress Updates (when streaming):
[progress] 45% - Bytes read: 1024

Configuration

Timeouts

  • SSH Connection Timeout: 10 seconds
  • Command Execution Timeout: 30 seconds
  • Stream Maximum Time: 300 seconds (5 minutes)

Buffer Size

  • Stream Buffer Size: 1024 bytes

Error Handling

The server handles various error scenarios:

  • Connection timeouts
  • Authentication failures
  • Command execution errors
  • Docker container errors
  • Command cancellation

Security

  • Uses SSH key-based authentication
  • Command arguments are properly escaped
  • No command injection vulnerabilities
  • Secure connection handling

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

License

GPLv3

Author

Ariel S. Weher <ariel[at]weher.net>

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP SSH Docker Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-ssh-frr)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related cloud devops MCP Servers

Alternative and complementary servers in the same category

View all in cloud devops →
Huawei MCP Server
mcp-server-huaweiclouddeveloper•huaweiclouddeveloper

A Model Context Protocol server built on Huawei Cloud services that enables AI assistants to operate Huawei Cloud resources within conversational workflows, supporting ECS, OBS, GaussDB, and other cloud products.

Repository stats unavailable
Cloud & DevOps
Coolify MCP Server
coolify-mcp-server•wrediam

An MCP server that exposes the Coolify v4.3.1 REST API so AI clients can manage applications, databases, services, servers, deployments, and more.

Repository stats unavailable
Cloud & DevOps

A deprecated Model Context Protocol server for interacting with Kong Konnect APIs, enabling AI assistants to query and analyze Kong Gateway configurations, traffic, and analytics.

Repository stats unavailable
Cloud & DevOps