SSH MCP Server
An MCP server that gives AI agents SSH capabilities to execute commands, transfer files, and inspect remote systems through a preconfigured host list.
README
SSH MCP Server
An MCP (Model Context Protocol) server that gives AI agents SSH capabilities — execute commands, transfer files, and inspect remote systems.
Setup
npm install
npm run build
Configuration
Create an SSH config file (see ssh-config.example.json):
{
"hosts": {
"production-server": {
"host": "prod.example.com",
"port": 22,
"username": "deploy",
"privateKeyPath": "/path/to/ssh/keys/prod_key",
"passphrase": null
}
}
}
Point the server at it with the SSH_CONFIG_PATH environment variable.
Tools
| Tool | Description |
|---|---|
ssh_execute_command |
Run a shell command on a remote host |
ssh_upload_file |
Upload a local file to a remote host via SFTP |
ssh_download_file |
Download a remote file to the local filesystem via SFTP |
ssh_get_system_info |
Get OS info, uptime, memory, and disk usage |
All tools accept a host parameter that must match a key in the config file's hosts object.
Integration with Nanoclaw
Add to your .mcp.json:
{
"mcpServers": {
"ssh": {
"command": "node",
"args": ["/path/to/ssh-mcp/dist/index.js"],
"env": {
"SSH_CONFIG_PATH": "/path/to/ssh-config.json"
}
}
}
}
Example usage
User: "Check disk usage on production-server"
Agent: calls ssh_execute_command { host: "production-server", command: "df -h /" }
Agent: "Production server: 67% used on /"
User: "Upload the config file to staging"
Agent: calls ssh_upload_file { host: "staging-server", local_path: "/tmp/app.conf", remote_path: "/etc/app/app.conf" }
Security
- Only key-based authentication is supported (no passwords).
- Hosts must be pre-registered in the config file; the agent cannot connect to arbitrary hosts.
- Private key files are read at connection time and never logged.
- Commands run non-interactively with a configurable timeout (default 30 s).
- All diagnostic output goes to stderr and does not interfere with the MCP stdio transport.
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.