MCP SSH Manager
Offers optional integration for executing Docker commands and managing containers on remote servers.
Allows operating MongoDB databases, including backups and management.
Allows operating MySQL databases, including backups and management.
Allows operating PostgreSQL databases, including backups and management.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP SSH Managerrun uptime on the production server"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
Related MCP server: acp-mcp
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 testCrear .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/appRegistrar 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:
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=unrestrictedCampos ú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 knipnpm 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.
This server cannot be installed
Maintenance
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/bysonte/ssh-manager-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server