SSH MCP Server
Provides SSH, SFTP, and tunnel capabilities to GitHub Copilot Chat in VS Code, enabling AI agents to manage remote servers.
Provides SSH, SFTP, and tunnel capabilities to Google Antigravity, enabling AI agents to manage remote servers.
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 Serverexec 'uptime' 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
A Model Context Protocol (MCP) server that exposes SSH, SFTP, and tunnel capabilities as AI tools. Connect any MCP-compatible AI app to your remote servers.
Tools (17 total)
Category | Tools |
Connections |
|
Profiles |
|
Exec |
|
SFTP |
|
Tunnels |
|
Related MCP server: SSH MCP Server
Prerequisites
Node.js v18+
Clone and build the server:
git clone <your-repo-url>
cd ssh-mcp
npm install
npm run buildThe built entry point will be at dist/index.js.
Connecting to AI Apps
Replace
/path/to/ssh-mcpwith the actual absolute path where you cloned the repo.
Windows example:
D:/projects/ssh-mcpmacOS/Linux example:
/home/user/ssh-mcp
Claude Desktop
Config file location:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Open the file and add the mcpServers block (merge with existing content if needed):
{
"mcpServers": {
"ssh": {
"command": "node",
"args": ["/path/to/ssh-mcp/dist/index.js"]
}
}
}Windows example:
{
"mcpServers": {
"ssh": {
"command": "node",
"args": ["D:/projects/ssh-mcp/dist/index.js"]
}
}
}Steps:
Edit the config file above
Fully quit Claude Desktop (right-click tray icon → Quit)
Relaunch Claude Desktop
Look for the 🔨 hammer icon in the chat input — click it to verify SSH tools are listed
Google Antigravity
Config file location:
Windows:
C:\Users\<YOUR_USERNAME>\.gemini\antigravity\mcp_config.jsonmacOS/Linux:
~/.gemini/antigravity/mcp_config.json
Create or edit mcp_config.json:
{
"mcpServers": {
"ssh": {
"command": "node",
"args": ["/path/to/ssh-mcp/dist/index.js"]
}
}
}Alternatively via the UI:
Open Antigravity → click Agent session dropdown in the side panel
Select MCP Servers → Manage MCP Servers
Click View raw config and paste the config above
Steps:
Save the config file
Restart Antigravity or reload the MCP servers from the UI
The SSH tools will appear in the agent tool list
VS Code (GitHub Copilot Chat)
MCP servers in VS Code can be scoped to a workspace or configured globally.
Option A — Workspace (recommended)
Create .vscode/mcp.json in your project root:
{
"servers": {
"ssh": {
"type": "stdio",
"command": "node",
"args": ["/path/to/ssh-mcp/dist/index.js"]
}
}
}Option B — Global (user settings)
Open VS Code settings (Ctrl+, / Cmd+,) → search for MCP → click Edit in settings.json and add:
{
"mcp": {
"servers": {
"ssh": {
"type": "stdio",
"command": "node",
"args": ["/path/to/ssh-mcp/dist/index.js"]
}
}
}
}Steps:
Save the config
Open Copilot Chat (
Ctrl+Alt+I/Cmd+Alt+I)Switch to Agent mode using the mode selector
The SSH tools will be available to the agent
Requires: VS Code 1.99+ with the GitHub Copilot extension
Opencode
Config file location: ~/.config/opencode/config.json
Add the mcp block to your config (create the file if it doesn't exist):
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"ssh": {
"type": "local",
"command": ["node", "/path/to/ssh-mcp/dist/index.js"],
"enabled": true
}
}
}Steps:
Save the config file
Start or restart
opencodeThe SSH tools will be loaded automatically on startup
The
commandfield in Opencode is an array (command + args combined), unlike other apps that split them intocommand+args.
LM Studio
LM Studio supports MCP servers since version 0.3.17. It uses the same mcpServers format as Claude Desktop.
Config file via UI (easiest):
Open LM Studio → switch to the Program tab in the right sidebar
Click Install → Edit mcp.json — this opens the config in the built-in editor
Add the SSH server entry and save
mcp.json format:
{
"mcpServers": {
"ssh": {
"command": "node",
"args": ["/path/to/ssh-mcp/dist/index.js"]
}
}
}Windows example:
{
"mcpServers": {
"ssh": {
"command": "node",
"args": ["D:/projects/ssh-mcp/dist/index.js"]
}
}
}Steps:
Edit
mcp.jsonvia the UI or directly on diskSave the file — LM Studio reloads MCP servers automatically
Load a model that supports tool use (e.g. a Qwen, Llama, or Mistral instruct model)
Start a new chat — LM Studio will show a confirmation dialog before executing any tool call
Note: LM Studio shows a tool-call confirmation dialog before running each tool, letting you review and optionally edit the arguments first.
Requires: LM Studio 0.3.17+
Authentication Methods
When connecting with ssh_connect, three auth methods are supported:
Method | When to use |
| Username + password login |
| Private key file (PEM format) |
| SSH agent (e.g. |
Password example:
ssh_connect host=192.168.1.10 username=admin auth=password password=secretKey example:
ssh_connect host=192.168.1.10 username=admin auth=key privateKeyPath=/home/user/.ssh/id_rsaAgent example:
ssh_connect host=192.168.1.10 username=admin auth=agentSaving profiles
To avoid re-entering credentials every session, save a profile:
ssh_save_profile name=myserver host=192.168.1.10 username=admin auth=passwordThen connect using:
ssh_connect profileName=myserver password=secretDevelopment
# Run without building (uses tsx)
npm run dev
# Build to dist/
npm run build
# Type-check only
npm run typecheckTroubleshooting
Problem | Fix |
Tools don't appear in the app | Make sure you ran |
| Run |
Connection refused | Check the host/port and that the SSH service is running on the remote |
Auth failed | Double-check username, password, or key path and permissions |
Antigravity doesn't load tools | Reload MCP servers from the UI or restart Antigravity |
VS Code tools missing | Ensure you're in Agent mode in Copilot Chat, not Ask/Edit mode |
LM Studio tools missing | Requires v0.3.17+; make sure you're using a model that supports tool use |
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.
Latest Blog Posts
- 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/icdmkg2/ssh-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server