MCP SSH Manager

MCP SSH Manager

MCP server for managing remote servers via SSH, enabling command execution, file transfer, rsync, tunnels, health checks, backups, and database operations.

Category
Visit Server

README

MCP SSH Manager

Servidor MCP local para administrar servidores SSH desde clientes compatibles con Model Context Protocol.

Funciones

  • Ejecutar comandos remotos.
  • Subir, bajar y sincronizar archivos.
  • Abrir sesiones SSH persistentes y túneles.
  • Revisar salud, procesos, servicios y logs.
  • Crear backups y operar bases MySQL, PostgreSQL o MongoDB.
  • Desplegar archivos con backup, permisos, owner y reinicio de servicio.
  • Activar grupos de tools para reducir contexto.

Requisitos

  • Node.js 18 o superior.
  • npm install ejecutado en este repositorio.
  • Acceso SSH a los servidores configurados.
  • Opcional: rsync, sshpass, clientes de base de datos o Docker según la tool usada.

Inicio rápido

npm install
npm test

Crear .env:

SSH_SERVER_PROD_HOST=example.com
SSH_SERVER_PROD_USER=root
SSH_SERVER_PROD_PORT=22
SSH_SERVER_PROD_KEYPATH=C:\Users\me\.ssh\id_rsa
SSH_SERVER_PROD_DEFAULT_DIR=/var/www/app

Registrar el MCP en el cliente con stdio:

{
  "mcpServers": {
    "ssh-manager": {
      "command": "node",
      "args": ["D:/work/ssh-manager-mcp-server/src/index.js"],
      "env": {
        "SSH_ENV_PATH": "D:/work/ssh-manager-mcp-server/.env"
      }
    }
  }
}

No uses npm start en el cliente MCP. El cliente debe lanzar node src/index.js como proceso local por stdio.

Documentación

Leé en este orden:

  1. Inicio rápido
  2. Instalación
  3. Índice de documentación
  4. Instalación en clientes MCP
  5. Gestión de tools
  6. Modos de seguridad
  7. Deploy
  8. Backups
  9. Alias y hooks

Configuración

El .env usa este formato:

SSH_SERVER_<NOMBRE>_HOST=hostname
SSH_SERVER_<NOMBRE>_USER=username
SSH_SERVER_<NOMBRE>_PASSWORD=password
SSH_SERVER_<NOMBRE>_KEYPATH=~/.ssh/id_rsa
SSH_SERVER_<NOMBRE>_PORT=22
SSH_SERVER_<NOMBRE>_DEFAULT_DIR=/path
SSH_SERVER_<NOMBRE>_SUDO_PASSWORD=password
SSH_SERVER_<NOMBRE>_PLATFORM=linux
SSH_SERVER_<NOMBRE>_MODE=unrestricted

Campos útiles:

  • PASSWORD o KEYPATH: autenticación SSH.
  • PASSPHRASE: passphrase de la clave.
  • DEFAULT_DIR: directorio usado cuando la tool no recibe cwd.
  • PLATFORM: linux por defecto, windows para OpenSSH en Windows.
  • PROXYJUMP o PROXYCOMMAND: salto SSH o comando proxy.
  • MODE, ALLOW_PATTERNS, DENY_PATTERNS, AUDIT_LOG: política por servidor.

También se puede usar TOML con SSH_CONFIG_PATH. Ver Instalación en clientes MCP.

Rutas de configuración

Orden para .env:

  1. SSH_ENV_PATH
  2. %USERPROFILE%\.ssh-manager\.env
  3. .env del directorio actual
  4. %USERPROFILE%\.env
  5. .env junto al proyecto

TOML se carga desde SSH_CONFIG_PATH o ~/.codex/ssh-config.toml.

Desarrollo

npm test
npm run lint
npm run coverage
npm run validate
npx knip

npm run validate ejecuta lint, tests y cobertura. La cobertura global exige 85% para el código incluido por c8.

Seguridad

  • No commitees .env, claves ni passwords.
  • Preferí claves SSH antes que password.
  • Usá readonly o restricted en servidores sensibles.
  • Revisá Modos de seguridad antes de habilitar tools destructivas.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured