Shell-MCP
シェル-MCP
シェルコマンド実行MCPサーバー
LLM にセキュア シェル コマンド実行機能を提供する MCP サーバー実装。
特徴
セキュア実行: ホワイトリストに登録されたコマンドと引数のみ
リソース制御: メモリとCPUの使用状況の監視
タイムアウト制御: 長時間実行コマンドの自動終了
サイズ制限:安全のための出力サイズ制限
MCP 統合: Claude やその他の MCP 互換 LLM と連携
Related MCP server: terminal-mcp
インストール
npm install @kevinwatt/shell-mcpDive Desktopでの設定
Diveデスクトップで「+ MCPサーバーを追加」をクリックします。
次の設定をコピーして貼り付けます。
{
"mcpServers": {
"shell": {
"command": "npx",
"args": [
"-y",
"@kevinwatt/shell-mcp"
]
}
}
}ツールドキュメント
shell_ls、shell_pwd、shell_df など。
ホワイトリストに登録されたシェルコマンドを実行する
入力:
command(文字列、必須): 実行するコマンドargs(配列、オプション): コマンド引数timeout(数値、オプション):実行タイムアウト(ミリ秒)
使用例
LLM に次のことを依頼してください。
"Show current directory using shell_pwd"
"List files using shell_ls with -l argument"
"Check disk usage using shell_df with -h argument"手動スタート
必要に応じて、サーバーを手動で起動します。
npx @kevinwatt/shell-mcp要件
Node.js 18歳以上
MCP対応LLMサービス
発達
# Install dependencies
npm install
# Watch mode
npm run watch
# Run tests
npm test
# Lint
npm run lintライセンス
MIT © デウェイ・イェン
キーワード
マクピー
シェル
指示
クロード
法学博士
オートメーション
利用可能なコマンド
次のシェル コマンドが使用できます。
指示 | 説明 | 許可された引数 |
ls | ディレクトリの内容を一覧表示する | -l、-a、-h、-R、--help、* |
猫 | ファイルの内容を連結して表示する | -n、-b、--help、* |
パスワード | 現在の作業ディレクトリを表示 | なし |
DF | ディスク使用量を表示 | -h、-T、--ヘルプ |
エコー | 表示テキスト | 任意のテキスト |
追伸 | プロセスステータスを表示 | -e、-f、-u、--help |
無料 | メモリ使用量を表示 | -h、-m、-g、--help |
稼働時間 | システムの稼働時間を表示 | なし |
日付 | システムの日付と時刻を表示する | +%Y-%m-%d、+%H:%M:%S、--ヘルプ |
グレップ | ファイル内のテキストパターンを検索する | -i、-v、-n、-r、-l、--color、* |
わ | 誰がログインしているか、何をしているかを表示する | -h、-s、--no-header、--help |
フーイズ | WHOISドメイン登録情報の照会 | -H、* |
探す | ディレクトリ階層内のファイルを検索する | -名前、-タイプ、-サイズ、-mtime、* |
ネットスタット | ネットワーク接続情報 | -a、-n、-t、-u、-l、-p、--help |
lspci | PCIデバイスの一覧 | -v、-k、-mm、-nn、--help |
lsusb | USBデバイスの一覧 | -v、-t、-d、-s、--help |
掘る | DNSルックアップユーティリティ | +ショート、+トレース、+dnssec、@*、* |
nslookup | DNSレコードのクエリ | -type=*、-query=*、* |
ip | ネットワークデバイスとインターフェースを表示する | アドレス、リンク、ルート、近隣、-br、* |
どこですか | バイナリ、ソース、マニュアルファイルを見つける | -b、-m、-s、* |
Available Tools
20 toolsshell_catC
Concatenate and display file contents
Inputs: args.
shell_dateC
Show system date and time
Inputs: args.
shell_dfC
Show disk usage
Inputs: args.
shell_digC
DNS lookup utility
Inputs: args.
shell_echoC
Display text
Inputs: args.
shell_findC
Search for files in a directory hierarchy
Inputs: args.
shell_freeC
Show memory usage
Inputs: args.
shell_grepC
Search text patterns in files
Inputs: args.
shell_ipC
Show / manipulate routing, network devices, interfaces and tunnels
Inputs: args.
shell_lsC
List directory contents
Inputs: args.
shell_lspciC
List PCI devices
Inputs: args.
shell_lsusbC
List USB devices
Inputs: args.
shell_netstatC
Network connection information
Inputs: args.
shell_nslookupC
Query DNS records
Inputs: args.
shell_psC
Show process status
Inputs: args.
shell_pwdA
Show current working directory
Inputs: args.
shell_uptimeB
Show system uptime
Inputs: args.
shell_wC
Show who is logged on and what they are doing
Inputs: args.
shell_whereisB
Locate the binary, source, and manual page files for a command
Inputs: args.
shell_whoisC
Query WHOIS domain registration information
Inputs: args.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 20 tools
Each tool corresponds to a distinct, well-known Unix/Linux command with a clear, non-overlapping purpose. For example, shell_cat is for file display, shell_df for disk usage, and shell_ps for process status, making it easy for an agent to select the right tool without confusion.
All tool names follow a consistent 'shell_' prefix followed by the exact command name (e.g., shell_cat, shell_date, shell_df). This uniform pattern enhances readability and predictability across the entire set.
With 20 tools, the server covers a broad range of system utilities, which is reasonable for a shell command interface. It might be slightly heavy, but each tool is a standard command, so the count aligns well with the server's purpose of providing comprehensive shell access.
The tool set offers extensive coverage of common Unix/Linux commands for file operations, system monitoring, network tasks, and process management. There are no obvious gaps for a shell utility server, as it includes essential tools like ls, grep, ps, and networking commands, ensuring agents can handle typical tasks without dead ends.
Related MCP Connectors
MCP server for Superserve sandboxes: create, exec, and manage Firecracker microVMs
Remote MCP server exposing your Node Command fleet (files, shell, processes, browser) to AI hosts.
An MCP server that provides an API to LLMs to manage their JumpCloud resources.
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Related MCP Servers
- AlicenseAqualityAmaintenanceA secure shell command execution server implementing the Model Context Protocol (MCP). This server allows remote execution of whitelisted shell commands with support for stdin input.1202MIT
- FlicenseNot gradedqualityNot gradedmaintenanceA secure and pluggable MCP server to run terminal commands on your local machine or cloud server — remotely, safely, and with LLMs or agentic clients.-
- AlicenseBqualityCmaintenanceA secure MCP server for shell operations, terminal management, and process control, enabling AI assistants to safely execute commands and manage interactive sessions.13158 npm6MIT
- AlicenseNot gradedqualityDmaintenanceA secure, production-grade MCP server that provides filesystem operations, AST math evaluation, and system diagnostics for LLM agents.MIT