Supports connecting to DigitalOcean-hosted virtual machines via SSH, with sample configuration provided in the documentation.
Enables execution of shell commands on remote Linux systems via SSH, supporting both password and key-based authentication methods.
Allows execution of shell commands on remote systems with security features like read-only mode and protection against destructive actions.
Supports connecting to and executing commands on Ubuntu servers, with example configurations provided for Ubuntu instances hosted on cloud platforms.
SSH MCP Server
SSH MCP Server is a local Model Context Protocol (MCP) server that exposes SSH control for Linux and Windows systems, enabling LLMs and other MCP clients to execute shell commands securely via SSH.
Features
- MCP-compliant server exposing SSH capabilities
- Execute shell commands on remote Linux and Windows systems
- Secure authentication via password or SSH key
- Read-only mode with built-in security checks
- Built with TypeScript and the official MCP SDK
Available Tools
Tool | Description |
---|---|
get_available_connections | Lists machines available to connect via SSH |
create_connection | Opens a new SSH session and tracks it by connection_id |
get_connections | Lists all active SSH sessions |
execute_command | Runs a shell command (unrestricted) |
secure_execute_command | Safer command execution; blocks destructive actions |
close_connection | Closes an active SSH session |
Quick Start
1. Clone the repository
2. Create machine config
Create a machines.json
file with the following structure:
Client Setup (Claude Desktop Example)
To integrate this MCP server into Claude Desktop, add both the server command and the required environment variable:
Now you can interact with your server using natural language, e.g., "Run uptime
on Todo VM."
Disclaimer
Use at your own risk. This server grants shell-level access via MCP. Review commands carefully and run in a secure environment.
Contributing
Star the repo, open issues, and submit pull requests! Feedback is welcome.
This server cannot be installed
A local Model Context Protocol server that allows LLMs to securely execute shell commands on remote Linux and Windows systems via SSH connections.
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server that allows LLMs to execute shell commands and receive their output in a controlled manner.Last updated -Python
- -securityFlicense-qualityA secure SSH server implementation for Model Context Protocol that enables remote command execution and file operations, supporting both password and key-based authentication.Last updated -8TypeScript
- -securityAlicense-qualityA Model Context Protocol server that enables remote execution of shell commands across different operating systems, automatically handling platform-specific differences between Windows and Unix-like systems.Last updated -JavaScriptMIT License
- AsecurityFlicenseAqualityA Model Context Protocol server implementation that enables secure remote command execution via SSH, with features for managing and using SSH credentials.Last updated -53JavaScript