SSH MCP Server
Provides secure shell access to local machines, allowing execution of shell commands, management of SSH sessions, running privileged commands with sudo, and handling interactive command prompts.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
ssh-mcp
SSH MCP server that provides secure shell access to local machines through a Model Context Protocol interface.
Overview
This server implements an SSH client using Paramiko and exposes SSH functionality through MCP tools, allowing AI assistants to execute commands on local machines securely.
Related MCP server: MCP SSH Server
Features
Session Management: Create, manage, and close SSH sessions with unique session IDs
Command Execution: Execute shell commands with proper input handling
Sudo Support: Specialized tools for running privileged commands with password authentication
Interactive Commands: Support for commands requiring user input (e.g., sudo prompts)
Thread-Safe: Concurrent session management with proper locking
Tools
ssh_start_session: Initialize SSH connection to localhostssh_exec_command: Execute shell commands with optional inputssh_exec_sudo_command: Run sudo commands with automatic password handlingssh_close_session: Clean up SSH sessions
Quick Start
Install dependencies:
pip install -r requirements.txtStart the server:
./start.sh
The server runs on http://0.0.0.0:7777 and provides an SSE (Server-Sent Events) endpoint for MCP communication.
Configuration
Default SSH credentials:
Hostname: localhost
Username: alex
Password: your-pass
Note: Update these credentials in server.py for production use.
Claude-desktop config
If using Linux, your config folder is:
/home/username/.config/Claude/claude_desktop_config.jsonTo enable this u need to enable it in claude desktop: File / Config / Developer / Edit config
SSH Daemon:
Configure ssh daemon:
nano /etc/systemd/system/ssh-mcp.servicePaste (update ur username):
[Unit]
Description=SSH MCP Server
After=network.target
[Service]
User=alex
WorkingDirectory=/home/alex/projects/ssh-mcp
ExecStart=/bin/bash -c 'eval "$(/home/alex/anaconda3/bin/conda shell.bash hook)" && conda activate base && /home/alex/anaconda3/bin/uvicorn server:app --host 0.0.0.0 --port 7777'
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=multi-user.targetStart
sudo systemctl daemon-reload
sudo systemctl enable ssh-mcp.service
sudo systemctl start ssh-mcp.serviceThis server cannot be deployed
Maintenance
Related MCP Connectors
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Work on your own computers from Claude or ChatGPT: run commands, edit and search files.
- DNS-DATA RemoteDeprecatedcom.dns-data
Connect AI assistants to authorized Windows and macOS devices for files, commands, and management.
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables AI assistants to securely execute remote SSH commands, perform file transfers, and monitor system status through a standardized interface. It features robust security controls including command whitelisting, blacklisting, and credential isolation to prevent unauthorized operations.1016 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to execute commands and transfer files on remote servers over SSH connections.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to securely execute commands, transfer files, and manage port forwarding on remote servers via SSH.191 npm38Apache 2.0
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to run commands on remote SSH-accessible devices via persistent sessions, supporting both POSIX and CLI shells with safety filters.-