Dark Stack SSH MCP Server
Enables SSH-based remote access to dark.lmphq.net for executing commands, listing Docker containers, and reading files via the MCP protocol.
README
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
Installation
npm install
Configuration
- Copy
.env.templateto.env:
cp .env.template .env
- Configure your SSH connection in
.env:
Option 1: Password Authentication
SSH_HOST=your-server.com
SSH_PORT=22
SSH_USERNAME=your-username
SSH_PASSWORD=your-password
Option 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 encrypted
MCP 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 credentials - Restrict 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 start
Troubleshooting
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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.