# ssh mcp

> Securely manage remote servers, execute shell commands, transfer files via SFTP, and open SSH tunnels via MCP.

ssh mcp is a paid AI agent skill on Agensi by Anand Maurya, in APIs & Backend. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5 (one-time purchase)
- Creator: [Anand Maurya](https://www.agensi.io/creators/anand-maurya)
- Category: [APIs & Backend](https://www.agensi.io/skills/apis-backend)
- Version: 1.1
- Last updated: 2026-10-19
- Security: scan passed (2026-10-19); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/ssh-mcp
- Tags: api, ssh-mcp, sftp, devops, linux, automation

## About this skill

Manage remote infrastructure without leaving your AI agent workflow. This skill provides a secure interface for interacting with remote servers via the SSH MCP server, eliminating the need to manually switch to a terminal for server maintenance, file management, or troubleshooting.

### What it does
- **Remote execution** runs shell commands on target hosts with precise timeout controls and output handling.
- **File management** creates, reads, renames, and deletes files using SFTP for reliable binary and text transfers.
- **Service tunneling** opens local ports to reach private services and databases located behind the remote host.
- **Infrastructure discovery** lists available servers and inspects their specific security policies and capabilities.
- **Safety enforcement** validates every command against local security rules and system protection settings.

### How it works
1. **Discover** the available `serverId` values and active security policies using `ssh_list_servers`.
2. **Inspect** the remote environment by reading configuration files or checking service statuses with `sftp_read_file` or `ssh_exec`.
3. **Execute** planned changes, such as updating configs or restarting services, after obtaining explicit user confirmation for write operations.
4. **Verify** the success of the operation by inspecting exit codes and re-reading the modified state.

### Frameworks & tools
SSH MCP server, SFTP, and standard Linux system utilities (systemd, nginx, git).

### Why this beats prompting it yourself
Generic prompts often fail to handle the stateless nature of SSH calls, leading to broken paths and environment errors. This skill implements a strict safety protocol, including mandatory backups, absolute path enforcement, and automated exit code validation that prevents silent failures.

### Use cases
- **Config management** to safely edit and validate Nginx or SSH configurations with automatic backups.
- **Remote debugging** to tail logs, check process resource usage, and verify service health across multiple hosts.
- **Database access** by opening secure tunnels to reach 127.0.0.1 services on the remote machine.
- **Automated deployments** by transferring build artifacts via SFTP and running migration scripts.

### Known limitations
Does not support interactive terminal prompts, sudo password entry, or background processes like `tail -f`. Every tool call is stateless and does not preserve environment variables or directory changes.

## Requires

- Git

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the ssh mcp skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill simplify remote server management compared to using a standard terminal?

This skill allows your AI agent to execute shell commands, manage files via SFTP, and create secure tunnels on remote servers directly within your workflow, eliminating the need for manual terminal switching.

### Can I use this skill to run commands that require sudo or interactive password entry?

To ensure security, the skill does not support interactive prompts or sudo password entry; all commands must be non-interactive or pre-authorized via your server's sudoers configuration.

### Does this skill support accessing private databases or services located on the remote host?

Yes, the skill includes a specialized service tunneling feature that allows your agent to open local ports to reach private databases or services hosted behind the remote firewall.

### Which AI agents or frameworks are compatible with the SSH MCP skill?

The skill is compatible with any AI agent or platform that supports the Model Context Protocol (MCP) and has access to the SSH MCP server.

### Does the skill maintain a persistent session state between different command executions?

The skill treats each tool call as stateless, meaning it does not preserve environment variables or directory changes between separate commands; you should use absolute paths for all operations.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
