Simple SSH MCP Server
MCPサーバーであり、AIアシスタントに完全なSSH/SFTPリモート操作(セッション管理、コマンド実行、インタラクティブシェル、ファイル転送、ポートフォワーディング、システム診断)を提供します。
Claude Desktop、VS Code + GitHub Copilot、およびMCP互換クライアントで動作します。
パッケージ
パッケージ | 説明 |
MCPサーバー (49ツール) — スタンドアロンCLIおよびnpmパッケージ | |
VS Code拡張機能 — GitHub Copilotにサーバーを自動登録 |
Related MCP server: ssh-mcp
機能
セッション管理 — パスワードまたは鍵認証による接続/切断/ping
コマンド実行 — stdout/stderrキャプチャ、タイムアウト、終了コード付きのコマンド実行
Sudo実行 — stdin経由でパスワードを注入する昇格コマンド(ログには残りません)
バックグラウンドジョブ — ポーリングとキャンセルが可能な長時間実行コマンド
インタラクティブシェル — 読み取り/書き込み/リサイズが可能なPTYシェル
SFTP操作 — アップロード、ダウンロード、読み取り、書き込み、削除、リスト表示、stat
ポートフォワーディング — ローカル (-L) およびリモート (-R) SSHトンネル
システム診断 — OS、CPU、メモリ、ディスク、ネットワーク、負荷、プロセス
ファイル検索と分析 — ファイル検索、grep、diff、tail、チェックサム
サーバー管理 — サービス、プロセス、cron、ネットワーク診断、ユーザー
マルチホストワークフロー — コマンドのブロードキャスト、ホスト間のファイル転送、ジャンプ/踏み台接続、スクリプト実行
セッションインテリジェンス — システムスナップショット、スナップショットの差分、接続ブックマーク
コンテナ対応 — Docker/Podmanコンテナのリスト表示、ログ、exec
監査ログ — フィルタリング可能なNDJSON構造化ログ
クイックスタート
スタンドアロン (npm)
npm install -g simple-ssh-mcp-serverClaude Desktop
claude_desktop_config.json に追加します:
{
"mcpServers": {
"ssh": {
"command": "npx",
"args": ["ssh-mcp-server"],
"env": {
"SSH_MCP_MAX_CONNECTIONS": "10",
"SSH_MCP_HOST_KEY_MODE": "accept"
}
}
}
}VS Code + GitHub Copilot
SSH MCP VS Code拡張機能をインストールします。VS Codeの起動時にサーバーが自動的に開始されます。VS Code 1.99以降とGitHub Copilotが必要です。
ツール (49)
カテゴリ | ツール |
セッション |
|
実行 |
|
バックグラウンド |
|
シェル |
|
SFTP |
|
ポートフォワーディング |
|
ファイル検索 |
|
サーバー管理 |
|
マルチホスト |
|
セッションインテリジェンス |
|
コンテナ |
|
診断 |
|
設定
すべての設定は環境変数で行います:
変数 | デフォルト | 説明 |
|
| 最大同時SSHセッション数 |
|
| 監査ログディレクトリ |
|
| PTYシェルのデフォルトTERM |
|
| ターミナル幅 |
|
| ターミナル高さ |
|
| コマンドタイムアウト (ms) |
|
| ホストキー: |
|
|
|
設定の詳細はサーバーのREADMEを参照してください。
セキュリティ
Sudoパスワードはstdin経由で注入され、ログには残りません
出力からANSIエスケープシーケンスを除去
出力の切り捨てによりメモリの無制限な消費を防止
SSHキープアライブにより切断された接続を検出
CIでESLintセキュリティプラグイン、Gitleaks、CodeQL、Trivyを使用
ライセンス
This server cannot be deployed
Maintenance
Related MCP Connectors
Remote MCP server exposing your Node Command fleet (files, shell, processes, browser) to AI hosts.
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
MCP server that lets your AI assistant build and deploy apps, hosting each one at a live URL.
Termalin's hosted MCP server. Claude, ChatGPT or any MCP client runs commands, moves files over SFTP, queries databases and reads server metrics and monitoring alerts on your servers, keylessly through Termalin Connectors: no SSH key is handed over and no inbound port is opened. Per-host command policy and an audit log. Needs a termal.in Pro or Team account (new accounts start with a 14-day Pro trial).
Related MCP Servers
- AlicenseAqualityAmaintenanceMCP server giving AI agents full SSH access with persistent sessions, structured command output, SFTP file transfer, and port forwarding.1868 PyPI12MIT
- AlicenseAqualityBmaintenanceAn 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.17521 PyPI33MIT
- AlicenseNot gradedqualityBmaintenanceMCP server enabling AI assistants to securely operate remote servers via persistent SSH sessions, with tools for command execution, file transfer, directory listing, and system monitoring.4MIT
- AlicenseAqualityCmaintenanceAn open MCP server that gives any AI agent SSH access to remote Linux/Unix machines — shell commands, file read/write, and SFTP transfers.1143 PyPIMIT