シェルMCPサーバー
シェルコマンド実行機能を提供するモデルコンテキストプロトコルサーバー。このサーバーにより、LLMはシェルコマンドを実行し、その出力を制御された方法で受け取ることができます。
利用可能なツール
execute_command
- シェルコマンドを実行し、その出力を返す- 必要な引数:
command
(文字列): 実行するシェルコマンド
- 戻り値:
- コマンド結果には以下が含まれます:
command
: 実行されたコマンドoutput
: stdoutとstderrの出力を組み合わせたものreturn_code
: コマンド実行の戻りコード
- コマンド結果には以下が含まれます:
- 必要な引数:
インストール
uvの使用(推奨)
uv
を使用する場合、特別なインストールは必要ありません。uvx uvx
使用してmcp-server-shellを直接実行します。
PIPの使用
あるいは、pip 経由でmcp-server-shell
をインストールすることもできます。
インストール後、次のコマンドを使用してスクリプトとして実行できます。
構成
Claude.app 用に設定する
Claude 設定に追加:
Zed用の設定
Zed のsettings.jsonに追加します:
やり取りの例
シェルコマンドを実行します。
応答:
デバッグ
MCPインスペクタを使用してサーバーをデバッグできます。UVXインストールの場合:
または、パッケージを特定のディレクトリにインストールした場合や、そのディレクトリで開発している場合は、次のようにします。
クロードへの質問例
- 「現在のディレクトリにはどんなファイルがありますか?」
- 「README.mdファイルの内容を見せてください」
- 「現在のシステム日付は何ですか?」
- 「Pythonがインストールされているかどうかを確認し、そのバージョンを表示します」
セキュリティに関する考慮事項
⚠️警告:このサーバーはシステム上で直接シェルコマンドを実行します。不正なコマンドや危険なコマンドの実行を防ぐため、慎重に使用し、適切なセキュリティ対策を実施してください。
貢献
mcp-server-shell の拡張と改善のための貢献を歓迎します。新機能の追加、セキュリティ強化、ドキュメントの改善など、皆様からのご意見は大変貴重です。
他の MCP サーバーと実装パターンの例については、https: //github.com/modelcontextprotocol/serversを参照してください。
プルリクエストを歓迎します。mcp-server-shell をさらに強力で便利なものにするために、新しいアイデア、バグ修正、機能強化などをお気軽にご提供ください。
ライセンス
mcp-server-shell は MIT ライセンスに基づきライセンスされています。つまり、MIT ライセンスの条件に従って、ソフトウェアを自由に使用、改変、配布できます。詳細については、プロジェクトリポジトリの LICENSE ファイルをご覧ください。
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
LLM がシェル コマンドを実行し、その出力を制御された方法で受信できるようにするモデル コンテキスト プロトコル サーバー。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that gives LLMs the ability to interact with Ethereum networks, manage wallets, query blockchain data, and execute smart contract operations through a standardized interface.Last updated -313232TypeScriptMIT License
- AsecurityFlicenseAqualityA Model Context Protocol server that allows LLMs to interact with Python environments, execute code, and manage files within a specified working directory.Last updated -942Python
- AsecurityAlicenseAqualityA Model Context Protocol server that enables LLMs to interact with web pages, take screenshots, generate test code, scrape web pages, and execute JavaScript in a real browser environment.Last updated -29101TypeScriptMIT License
- -security-license-qualityA Model Context Protocol server that allows LLMs to execute shell commands with explicit user permission through desktop notifications.Last updated -1TypeScriptMIT License