Skip to main content
ClaudeWave

`agentic_ssh` is a Model Context Protocol (MCP) server written in Rust that simplifies and secures SSH access for AI agents.

MCP ServersRegistry oficial4 estrellas0 forksRustApache-2.0Actualizado today
ClaudeWave Trust Score
87/100
Trusted
Passed
  • Open-source license (Apache-2.0)
  • Actively maintained (<30d)
  • Clear description
  • Documented (README)
Last scanned: 8/24/2026
Install in Claude Code / Claude Desktop
Method: Manual · agentic_ssh
Claude Code CLI
git clone https://github.com/sandbanks/agentic_ssh
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "agentic-ssh": {
      "command": "agentic_ssh"
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
💡 Install the binary first: cargo install agentic_ssh (or build from https://github.com/sandbanks/agentic_ssh).
Casos de uso

Resumen de MCP Servers

[![Release](https://github.com/sandbanks/agentic_ssh/actions/workflows/release.yml/badge.svg)](https://github.com/sandbanks/agentic_ssh/actions/workflows/release.yml)
[![MCP Toplist](https://mcptoplist.com/badge/io.github.sandbanks%2Fagentic_ssh.svg)](https://mcptoplist.com/server/io.github.sandbanks%2Fagentic_ssh)
[![agentic_ssh MCP server](https://glama.ai/mcp/servers/sandbanks/agentic_ssh/badges/score.svg)](https://glama.ai/mcp/servers/sandbanks/agentic_ssh)


[![Crates.io](https://img.shields.io/crates/v/agentic_ssh.svg)](https://crates.io/crates/agentic_ssh)
[![Crates.io Recent Downloads](https://img.shields.io/crates/dr/agentic_ssh?color=orange "Crates.io Recent Downloads (90 Days)")](https://crates.io/crates/agentic_ssh)
[![Crates.io Total Downloads](https://img.shields.io/crates/d/agentic_ssh?color=orange "Crates.io Total Downloads")](https://crates.io/crates/agentic_ssh)
[![Homebrew](https://img.shields.io/badge/brew-sandbanks%2Ftap-orange?logo=homebrew)](https://github.com/sandbanks/agentic_ssh#quick-start)

# agentic_ssh

`agentic_ssh` is a high-performance Model Context Protocol (MCP) server written in Rust specifically engineered to provide **agent-hardened, token-efficient, and asynchronous SSH orchestrations** for AI agents. 

Unlike generic terminal tools that block agent execution or flood context windows with verbose compiler output, `agentic_ssh` acts as a smart runtime layer. It automatically discovers hosts from your local SSH configurations, manages connection heartbeats, handles silent network dropouts, and supports detached background job scheduling with isolated session logging.

![Agent finding information demo](https://assets.sandbanks.tech/agentic_ssh/Kapture%20agy-agentic_ssh.gif)

---

## Quick Start

```bash
# Install Homebrew (MacOS or linux)
brew tap sandbanks/tap
brew trust sandbanks/tap
brew install agentic_ssh

# Install Homebrew (one step)
brew install sandbanks/tap/agentic_ssh

# Install (recommended: pre-compiled binary via cargo-binstall)
cargo binstall agentic_ssh

# Or compile from source via cargo
cargo install agentic_ssh

# Auto-configure and register with your active agent environments
agentic_ssh install

```

---

## High-Leverage Features

* **Asynchronous Background Orchestration (`background: true`)**: Instantly hands control back to the agent runner when long-running scripts (such as massive Nix setups, system updates, or heavy compilation tasks) are fired. The agent is immediately freed to process other workflows concurrently while the remote task crunches in the background.
* **Token-Efficient Session Telemetry**: Completely routes around agent frameworks that swallow local `stderr`. Long jobs stream progress to unique, self-cleaning session log files (`~/.agentic_ssh/sessions/*.log`), preventing concurrent agent instances from clobbering each other's outputs.
* **Smart Progress Tickers (`quiet: true`)**: Keeps human terminal dashboards updated via a configurable time-interval progress loop without transferring a single line of raw compilation text over the internet, saving massive amounts of LLM context tokens.
* **Hardened Connection Heartbeats**: Automatically configures `russh` keepalives to ping remote environments every 30 seconds, preventing intermediate overlays (like Tailscale, cloud virtual routers, or firewalls) from silently dropping connections during long, quiet CPU-heavy builds.
* **Automatic Host Discovery**: Recursively parses `~/.ssh/config` (including `Include` directives, wildcards, and path expansion) to securely extract explicit host aliases.
* **Zero-Quoting Headaches**: Structured argument templates are automatically escaped and joined natively behind the scenes, completely eliminating the painful double/triple shell escaping errors normally generated when agents try to quote remote utilities over standard SSH shells.

---

## MCP Configuration

### Automated Installation (Recommended)

`agentic_ssh` can automatically detect, register, and patch configuration schemas for a wide ecosystem of agent tools:

```bash
# Auto-detect all supported agents on your system and register agentic_ssh
agentic_ssh install

# Register specifically for a particular agent framework:
agentic_ssh install --agent claude
agentic_ssh install --agent cursor
agentic_ssh install --agent antigravity

```

Supported agents for the `--agent` flag include: `claude` (Claude Code / Desktop), `cursor`, `zed`, `cline`, `roo-code`, `gemini`, `copilot`, `grok`, and `antigravity`.

### Manual Configuration

To manually register `agentic_ssh` with an MCP client (such as Claude Desktop), append it to your local configuration routing block:

```json
{
  "mcpServers": {
    "agentic_ssh": {
      "command": "/Users/YOUR_USER_NAME/.cargo/bin/agentic_ssh",
      "args": []
    }
  }
}

```

---

## Built-in MCP Tools

`agentic_ssh` registers a rich set of built-in tooling commands to let the AI agent inspect, monitor, and query host configurations:

* **`list_hosts`**: Returns the list of discovered and allowed remote SSH hosts.
* **`list_groups`**: Returns a map of configured remote SSH host groups and their member SSH hosts.
* **`run_command`**: Runs a shell command concurrently (supports synchronous inline collection or asynchronous background detaching).
* **`get_system_stats`**: Retrieves core system stats (CPU, RAM, and disk utilization).
* **`list_ports`**: Discovers active listening TCP/UDP ports, matching processes, and PIDs.
* **`search_processes`**: Filters and evaluates active processes on the host.
* **`tail_log`**: Fetches tail frames from target file paths.
* **`tail_container_logs`**: Fetches tail frames from target Docker container logs.
* **`wait_for_log_pattern`**: Blocks and streams logs until a matching regex pattern is detected.
* **`check_service_status`**: Queries the status of systemd/systemctl service daemons.
* **`check_docker_status`**: Inspects status of the Docker engine and active container metrics.
* **`list_upgradable`**: Identifies remote packages that have newer versions available.
* **`git_pull`**: Fetches and merges updates from a target Git repository configuration.
* **`find_large_files`**: Finds files exceeding specified size limits on target volumes.
* **`grep_syslog`**: Queries remote system log streams for custom search patterns.
* **`list_cron_jobs`**: Displays configured cron schedule tables for users and systems.
* **`list_network_connections`**: Lists active TCP/UDP socket network connections.

---

## Direct CLI Tool Execution (JSON Output)

For debugging, custom scripting, or simple multi-host queries, developers can run the MCP tools directly from their terminal using the `json` subcommand. The output is returned as standard, clean JSON:

```bash
# General Syntax
agentic_ssh json <tool_name> [arguments]

# Examples:
# 1. Discover host groups configuration
agentic_ssh json list_groups

# 2. Get system stats for specific hosts (comma-separated positional shortcut)
agentic_ssh json get_system_stats aruba,stan,delight

# 3. Query listening ports with full JSON arguments payload
agentic_ssh json list_ports '{"hosts": ["aruba", "stan"]}'

# 4. Run an arbitrary remote command concurrently
agentic_ssh json run_command '{"hosts": ["aruba", "stan"], "command": "free -h"}'
```

---

## Master Domain Tooling Schema

### 1. `run_command`

Executes a shell command on one or multiple configured hosts. Supports both synchronous inline collection and asynchronous background detached tracking.

* **Arguments**:
* `host` (string, optional): The SSH host alias to target.
* `hosts` (array of strings, optional): Optional list of multiple host targets to query concurrently.
* `command` (string, required): The command payload to execute.
* `background` (boolean, optional, **Defaults to false**): When set to `true`, the command instantly detaches into a background Tokio thread and returns an isolated session log path immediately, freeing the agent for parallel tasks.
* `quiet` (boolean, optional, **Defaults to true**): When `true`, avoids heavy terminal output by outputting a lean progress metrics heartbeat. When `false`, real-time verbose raw standard output stream blocks are preserved in telemetry files.
* `progress_interval_secs` (integer, optional, **Defaults to 5**): Defines the polling interval sequence for the progress ticker if `quiet = true`.
* `abbreviate` (boolean, optional): Truncates massive output strings for synchronous paths to optimize token consumption.


* **Returns**:
* *Detached Background Mode (`background: true`)*:
```json
{
  "status": "started",
  "log_path": "/Users/richard/.agentic_ssh/sessions/job_20260627_1649_cartman_5f58.log",
  "message": "🚀 Command started in background. To watch live progress, run:\n  tail -f /Users/richard/.agentic_ssh/sessions/job_20260627_1649_cartman_5f58.log"
}

```


* *Synchronous Mode*: A JSON payload detailing structured `stdout`, `stderr`, and remote numeric `exit_code`.



### 2. `list_hosts`

Lists all explicit SSH host aliases configured in your `~/.ssh/config` file matching security criteria.

* **Arguments**: None
* **Returns**: A JSON array of secure string aliases (e.g., `["stan", "kyle", "cartman", "edge-router"]`).

### 3. Diagnostic & Inspection Tools

All built-in diagnostic primitives are pre-configured to handle background tracking implicitly (`quiet = true`), keeping operational latency low and protecting system context windows:

* **`get_system_stats`**: Retrieves core system stats (CPU load averages, active memory constraints, disk partitions) formatted as high-integrity JSON.
* **`list_ports`**: Discovers active listening TCP and UDP sockets with explicit structural filter criteria.
* **`search_processes`**: Evaluates active remote process layers using high-performance regex or matching string criteria.
* **`tail_log` / `tail_container_logs**`: Fetches explicit tail frames from standard system paths or target Docker engine containers.

---

## Writing Agent-Friendly Tool Des

Lo que la gente pregunta sobre agentic_ssh

¿Qué es sandbanks/agentic_ssh?

+

sandbanks/agentic_ssh es mcp servers para el ecosistema de Claude AI. `agentic_ssh` is a Model Context Protocol (MCP) server written in Rust that simplifies and secures SSH access for AI agents. Tiene 4 estrellas en GitHub y su última actualización registrada es del 2026-08-23.

¿Cómo se instala agentic_ssh?

+

Puedes instalar agentic_ssh clonando el repositorio (https://github.com/sandbanks/agentic_ssh) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.

¿Es seguro usar sandbanks/agentic_ssh?

+

Nuestro agente de seguridad ha analizado sandbanks/agentic_ssh y le ha asignado un Trust Score de 87/100 (tier: Trusted). Revisa el desglose completo de comprobaciones superadas y flags en esta página.

¿Quién mantiene sandbanks/agentic_ssh?

+

sandbanks/agentic_ssh es mantenido por sandbanks. La última actividad registrada en GitHub es del 2026-08-23, con 2 issues abiertos.

¿Hay alternativas a agentic_ssh?

+

Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.

Despliega agentic_ssh en tu cloud

Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.

¿Mantienes este repo? Añade un badge a tu README

Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.

Featured on ClaudeWave: sandbanks/agentic_ssh
[![Featured on ClaudeWave](https://claudewave.com/api/badge/sandbanks-agentic-ssh)](https://claudewave.com/repo/sandbanks-agentic-ssh)
<a href="https://claudewave.com/repo/sandbanks-agentic-ssh"><img src="https://claudewave.com/api/badge/sandbanks-agentic-ssh" alt="Featured on ClaudeWave: sandbanks/agentic_ssh" width="320" height="64" /></a>

Más MCP Servers

Alternativas a agentic_ssh