Skip to main content
Glama

MCP SSH Server

by shaike1

Servidor SSH MCP

Una potente implementación de servidor SSH para el Protocolo de Contexto de Modelo (MCP). Este servidor permite la ejecución remota segura de comandos y operaciones con archivos mediante el protocolo SSH, compatible con la autenticación basada en contraseña y clave.

Características

  • ✨ Gestión segura de conexiones SSH
  • 🔑 Autenticación basada en contraseñas y claves
  • 💻 Ejecución remota de comandos
  • 📁 Operaciones con archivos (carga/descarga)
  • 📊 Seguimiento del progreso de las transferencias de archivos
  • 🔐 Gestión de permisos
  • 📂 Operaciones de directorio
  • Transferencias masivas de archivos
  • 📝 Registro detallado

Instalación

  1. Instalar el paquete:
npm install mcp-ssh
  1. Agregue a su configuración de escritorio de Claude ( claude_desktop_config.json ):
{ "mcpServers": { "ssh": { "command": "node", "args": ["%APPDATA%/npm/node_modules/mcp-ssh/dist/server.js"], "env": { "SSH_PORT": "8889", "SSH_LOG_LEVEL": "info" } } } }

Uso

Autenticación de contraseña

$body = @{ id = "test" host = "example.com" port = 22 username = "user" password = "pass123" } | ConvertTo-Json Invoke-RestMethod -Uri "http://localhost:8889/connect" -Method Post -Body $body -ContentType "application/json"

Autenticación de clave

$body = @{ id = "test" host = "example.com" port = 22 username = "user" privateKey = Get-Content ~/.ssh/id_rsa | Out-String passphrase = "optional-key-passphrase" # if your key is protected } | ConvertTo-Json Invoke-RestMethod -Uri "http://localhost:8889/connect" -Method Post -Body $body -ContentType "application/json"

Ejecutar comandos

$execBody = @{ id = "test" command = "ls -la" } | ConvertTo-Json Invoke-RestMethod -Uri "http://localhost:8889/exec" -Method Post -Body $execBody -ContentType "application/json"

Operaciones con archivos

# Upload file $uploadForm = @{ file = Get-Item -Path "localfile.txt" remotePath = "/remote/path/file.txt" } Invoke-RestMethod -Uri "http://localhost:8889/upload/test" -Method Post -Form $uploadForm # Download file Invoke-RestMethod -Uri "http://localhost:8889/download/test?remotePath=/remote/path/file.txt" -Method Get -OutFile "downloaded.txt"

Operaciones de directorio

# List directory Invoke-RestMethod -Uri "http://localhost:8889/ls/test?path=/remote/path" -Method Get # Get connection status Invoke-RestMethod -Uri "http://localhost:8889/status/test" -Method Get

Desarrollo

  1. Clonar el repositorio:
git clone https://github.com/shaike1/mcp-server-ssh.git cd mcp-server-ssh
  1. Instalar dependencias:
npm install
  1. Construir:
npm run build
  1. Iniciar servidor:
npm start

Variables de entorno

  • SSH_PORT : Puerto del servidor (predeterminado: 8889)
  • SSH_LOG_LEVEL : Nivel de registro (predeterminado: información)

Contribuyendo

  1. Bifurcar el repositorio
  2. Crea tu rama de funciones ( git checkout -b feature/amazing-feature )
  3. Confirme sus cambios ( git commit -m 'Add some amazing feature' )
  4. Empujar a la rama ( git push origin feature/amazing-feature )
  5. Abrir una solicitud de extracción

Licencia

Instituto Tecnológico de Massachusetts (MIT)

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Una implementación de servidor SSH seguro para el Protocolo de Contexto de Modelo que permite la ejecución remota de comandos y operaciones con archivos, admitiendo autenticación basada en contraseña y clave.

  1. Características
    1. Instalación
      1. Uso
        1. Autenticación de contraseña
        2. Autenticación de clave
        3. Ejecutar comandos
        4. Operaciones con archivos
        5. Operaciones de directorio
      2. Desarrollo
        1. Variables de entorno
          1. Contribuyendo
            1. Licencia

              Related MCP Servers

              • A
                security
                A
                license
                A
                quality
                A secure shell command execution server implementing the Model Context Protocol (MCP). This server allows remote execution of whitelisted shell commands with support for stdin input.
                Last updated -
                1
                122
                Python
                MIT License
                • Apple
              • A
                security
                F
                license
                A
                quality
                A Model Context Protocol server implementation that enables secure remote command execution via SSH, with features for managing and using SSH credentials.
                Last updated -
                5
                9
                9
                JavaScript
              • A
                security
                F
                license
                A
                quality
                A secure server that implements the Model Context Protocol (MCP) to enable controlled execution of authorized shell commands with stdin support.
                Last updated -
                1
                Python
              • A
                security
                F
                license
                A
                quality
                A server that enables remote command execution over SSH through the Model Context Protocol (MCP), supporting both password and private key authentication.
                Last updated -
                1
                9
                2
                JavaScript

              View all related MCP servers

              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/shaike1/mcp-server-ssh'

              If you have feedback or need assistance with the MCP directory API, please join our Discord server