SSH MCP Server
Click on "Install 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., "@SSH MCP ServerCheck disk space on production-server"
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.
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 buildRelated MCP server: ssh-mcp-server
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 |
| Run a shell command on a remote host |
| Upload a local file to a remote host via SFTP |
| Download a remote file to the local filesystem via SFTP |
| 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.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityFmaintenanceAn MCP server that allows AI models to execute system commands on local machines or remote hosts via SSH, supporting persistent sessions and environment variables.Last updated19627MIT
- Alicense-qualityDmaintenanceAn MCP server that enables remote SSH command execution and bidirectional file transfers through a standardized interface. It allows AI assistants to securely manage remote servers while keeping credentials isolated and applying command-level security controls.Last updatedISC
- AlicenseAqualityBmaintenanceMCP server giving AI agents full SSH access with persistent sessions, structured command output, SFTP file transfer, and port forwarding.Last updated185MIT
- Alicense-qualityCmaintenanceAn MCP server that gives AI agents SSH access to remote machines through your local OpenSSH client, enabling remote command execution, file transfer, persistent shell sessions, and port forwarding.Last updated4MIT
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server connecting AI agents to non-custodial staking data across 130+ networks.
Cloud-hosted MCP server for durable AI memory
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/avranju/ssh-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server