MCP SSH Manager
MCP server for managing remote servers via SSH, enabling command execution, file transfer, rsync, tunnels, health checks, backups, and database operations.
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 installejecutado 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:
- Inicio rápido
- Instalación
- Índice de documentación
- Instalación en clientes MCP
- Gestión de tools
- Modos de seguridad
- Deploy
- Backups
- 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:
PASSWORDoKEYPATH: autenticación SSH.PASSPHRASE: passphrase de la clave.DEFAULT_DIR: directorio usado cuando la tool no recibecwd.PLATFORM:linuxpor defecto,windowspara OpenSSH en Windows.PROXYJUMPoPROXYCOMMAND: 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:
SSH_ENV_PATH%USERPROFILE%\.ssh-manager\.env.envdel directorio actual%USERPROFILE%\.env.envjunto 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á
readonlyorestricteden servidores sensibles. - Revisá Modos de seguridad antes de habilitar tools destructivas.
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.