Dark Stack SSH MCP Server
Lists running Docker containers on the remote host and allows executing arbitrary Docker commands via shell.
Click on "Deploy 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., "@Dark Stack SSH MCP Serverlist Docker containers"
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.
Dark Stack - SSH MCP Server
A Model Context Protocol (MCP) server for remote access to dark.lmphq.net (ASUS AI machine) using SSH with passwordless authentication. This is an SSH-based alternative to the plink-based dgx-stack solution.
Features
Execute commands on remote servers via SSH
List Docker containers on remote hosts
Read files from remote systems
Secure authentication via password or SSH keys
Based on the MCP protocol for LLM integration
Related MCP server: SSH MCP Server
Installation
npm installConfiguration
Copy
.env.templateto.env:
cp .env.template .envConfigure your SSH connection in
.env:
Option 1: Password Authentication
SSH_HOST=your-server.com
SSH_PORT=22
SSH_USERNAME=your-username
SSH_PASSWORD=your-passwordOption 2: SSH Key Authentication (Recommended)
SSH_HOST=your-server.com
SSH_PORT=22
SSH_USERNAME=your-username
SSH_PRIVATE_KEY=/path/to/your/private/key
# SSH_PASSPHRASE=your-key-passphrase # if key is encryptedMCP Configuration
Add to your .mcp.json:
{
"mcpServers": {
"ssh-remote": {
"command": "node",
"args": ["F:\\AI-PROD\\projects\\dark.lmphq.net\\index.js"],
"env": {
"SSH_HOST": "your-server.com",
"SSH_PORT": "22",
"SSH_USERNAME": "your-username",
"SSH_PASSWORD": "your-password"
},
"type": "stdio"
}
}
}Or use environment variables from .env file.
Available Tools
docker_ps
Lists running Docker containers on the remote host.
Usage:
{
"name": "docker_ps"
}exec_command
Executes a shell command on the remote host.
Parameters:
command(string, required): The command to execute
Usage:
{
"name": "exec_command",
"arguments": {
"command": "hostname"
}
}read_file
Reads a file from the remote host using SFTP.
Parameters:
path(string, required): The absolute path to the file
Usage:
{
"name": "read_file",
"arguments": {
"path": "/etc/hostname"
}
}Security Considerations
Use SSH keys instead of passwords when possible
Never commit your
.envfile with credentialsRestrict SSH access using firewall rules and SSH config
Use strong passwords/passphrases if required
Consider using SSH agent for key management
Differences from plink-based solution
Feature | plink | SSH (this implementation) |
Platform | Windows | Cross-platform |
Authentication | Password in command | Env vars or key files |
Security | Passwords visible in process list | Environment-based config |
SSH Keys | Requires PuTTY format | Standard OpenSSH format |
Configuration | Hardcoded in commands | Centralized .env file |
Testing
# Test the server directly
npm startTroubleshooting
Connection timeout
Increase SSH_TIMEOUT in your .env file.
Authentication failed
Verify your username and password/key
Check SSH server logs on the remote host
Ensure SSH server allows password/key authentication
Permission denied
Verify file paths are absolute
Check file permissions on remote host
Ensure user has necessary permissions
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Run commands and read/write files on your servers over Termalin's keyless tunnels (hosted MCP).
Securely use files, terminals, screenshots and processes on computers you pair with ReMCP.
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
Remote MCP server to read and manage your Atako AI agents, messages, files, and integrations.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables remote Docker management over SSH via a local MCP server, providing tools to manage containers, images, Compose, and system resources.1GPL 3.0
- FlicenseAqualityDmaintenanceEnables AI assistants to perform comprehensive SSH operations including command execution, file transfers, port forwarding, and key management through a stateless, Docker-ready MCP server.15-
- AlicenseAqualityDmaintenanceEnables reading, writing, editing, searching, running commands, transferring files, and using git on a remote Linux server over SSH via MCP tools.223AGPL 3.0
- AlicenseNot gradedqualityDmaintenanceEnables MCP-compatible AI clients to remotely manage a Linux server via SSH, supporting file operations, Docker control, Git pulls, and arbitrary command execution.6,535 npmMIT