ssh
this is a collection of tools that allows your agent to execute commands on your remote servers
claude mcp add --transport stdio kinothe-kafkaesque-ssh-mcp-server node build/index.js \ --env PORT="Port to run the MCP server on (if the application supports overriding via env)" \ --env SSH_DB_PATH="Optional path to the SQLite database file; defaults to ssh.db"
How to use
This MCP server exposes SSH capabilities via the MCP protocol. It uses SQLite (ssh.db by default) to persist SSH credentials and supports commands to execute remote SSH actions as well as credential management. Clients can perform SSH operations through the SSH tool (ssh_exec) to run commands on remote hosts, or manage credentials with add_credential, list_credentials, and remove_credential. To start the server, run the standard Node.js startup command and connect via MCP-enabled clients that support the configured tools. The tools are designed to be invoked with structured JSON payloads that specify required fields like host, username, and privateKeyPath for SSH access, along with the command to execute.
How to install
Prerequisites:
- Node.js v16 or higher
- npm or yarn
- TypeScript knowledge is helpful for development (optional for running the built server)
Option 1: Installing via Smithery
- Install via Smithery to get the SSH MCP server client:
npx -y @smithery/cli install @KinoThe-Kafkaesque/ssh-mcp-server --client claude
Option 2: Manual installation
- Clone the repository
git clone <repository-url>
cd ssh-server
- Install dependencies
npm install
- Build the project
npm run build
- Start the server
npm start
Note: The server will listen on the configured port (default). You can adjust configuration in code or via environment variables as needed.
Additional notes
Notes and tips:
- The server uses a SQLite database file named ssh.db by default; ensure the process has write access to the directory where this file will be created.
- You can override the database file path using the SSH_DB_PATH environment variable.
- Ensure your private keys are securely stored and accessible by the host running the MCP server; the ssh_exec tool requires a valid path to a private key.
- If you run into port conflicts, adjust the PORT environment variable or the server's internal configuration accordingly.
- When developing or building locally, remember to run npm run build before starting the server to ensure the latest TypeScript sources are compiled to JavaScript.
Related MCP Servers
any-chat-completions
MCP Server for using any LLM as a Tool
bitbucket
Bitbucket MCP - A Model Context Protocol (MCP) server for integrating with Bitbucket Cloud and Server APIs
time
⏰ Time MCP Server: Giving LLMs Time Awareness Capabilities
unity-editor
An MCP server and client for LLMs to interact with Unity Projects
website-publisher
AI Website builder and publisher MCP. Quickly publish and deploy your AI generated code as real website URL. Support html, css, js, python etc.
xgmem
Global Memory MCP server, that manage all projects data.