BS

blazickjp/shell-mcp-server

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

23 stars 9 forks 品質 65 トレンド 0Apache-2.0

Claude AI の MCP サーバーの実行をセキュアにシェルします。 指定されたディレクトリ内の管理されたシェルアクセスを有効にします.

概要

Shell MCP ServerでAIアプリケーションに安全なシェルコマンド実行機能を追加! モデルコンテキストプロトコル用に構築されています。 - コマンドは指定されたディレクトリでのみ実行されます - 🐚 - bash、sh、cmd、Powershellのサポート - ◀ - 長時間実行コマンドの自動終了 - UnixとWindowsシステムの両方で動作します - ️️ - 組み込みディレクトリとシェル検証 シェルコマンド実行を有効にするには、Claude Desktop config に追加します。 コマンドライン引数で挙動を設定: 環境変数: - COMMAND TIMEOUT:秒の最大実行時間(デフォルト:30) - 🔐 : コマンドは指定されたディレクトリでのみ実行できます。 - 変更 : 設定されたシェルのみが許可されます。 - ? : すべてのコマンドは設定可能なタイムアウトを持っています。 - 🛑 : 作業ディレクトリのバリデーションは、トロール攻撃を防止します。 - コマンドは、サーバープロセスと同じ権限で実行されます ご協力のほどよろしくお願いします!

概要(AI 翻訳)

Shell MCP ServerでAIアプリケーションに安全なシェルコマンド実行機能を追加! モデルコンテキストプロトコル用に構築されています。

✨ 機能

  • コマンドは指定されたディレクトリのみで実行されます
  • 🐚マルチプルシェル - バッシュ、sh、cmd、パワーシェルのサポート
  • 実行中のコマンドの自動終了
  • ✓クロスプラットフォーム** - UnixとWindowsシステムの両方で動作します
  • 🛡️ ** デフォルトで安全** - 組み込みディレクトリとシェル検証

すぐにスタート

インストール

🔌 Claudeデスクトップ統合

シェルコマンド実行を有効にするには、Claude Desktop config に追加します。

リリース クリックして設定を表示

005 使用例

##基本ファイル操作

###プロジェクト管理

##システム情報

ファイル処理

ウィンドウズ固有の例

¢ 設定

コマンドライン引数で挙動を設定:

| 会社案内 | 会社概要 | お問い合わせ | [directories|許認可役員一覧 | | [--shell name path | 🐚 シェル仕様(名称・パス) |

環境変数:

  • [COMMAND_TIMEOUT: 実行時間最大秒 (デフォルト:30)

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

🖥️ Shell MCP Server

🚀 Add secure shell command execution capabilities to your AI applications with the Shell MCP Server! Built for the Model Context Protocol.

✨ Features

  • 🔒 Secure Execution - Commands run only in specified directories
  • 🐚 Multiple Shells - Support for bash, sh, cmd, powershell
  • ⏱️ Timeout Control - Automatic termination of long-running commands
  • 🌍 Cross-Platform - Works on both Unix and Windows systems
  • 🛡️ Safe by Default - Built-in directory and shell validation

🚀 Quick Start

Installation

# Using pip
pip install shell-mcp-server

# Using uv (recommended)
uv pip install shell-mcp-server

🔌 Claude Desktop Integration

Add this to your Claude Desktop config to enable shell command execution:

🎮 Usage Examples

Basic File Operations

# List directory contents
result = execute_command(
    command="ls -la",
    shell="bash",
    cwd="/path/to/project"
)

# Find files by pattern
result = execute_command(
    command="find . -name '*.py'",
    shell="bash",
    cwd="/path/to/project"
)

Project Management

# Git operations
result = execute_command(
    command="git status && git diff",
    shell="bash",
    cwd="/path/to/repo"
)

# Package management
result = execute_command(
    command="pip list --outdated",
    shell="bash",
    cwd="/path/to/python/project"
)

System Information

# Resource usage
result = execute_command(
    command="df -h && free -h",
    shell="bash",
    cwd="/path/to/dir"
)

# Process monitoring
result = execute_command(
    command="ps aux | grep python",
    shell="bash",
    cwd="/path/to/dir"
)

File Processing

# Search file content
result = execute_command(
    command="grep -r 'TODO' .",
    shell="bash",
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "shell-mcp-server": { "command": "uv", "args": [ "--directory", "/path/to/shell-mcp-server", "run", "shell-mcp-server", "/path/to/allowed/dir1", "/path/to/allowed/dir2", "--shell", "bash", "/bin/bash", "--shell", "zsh", "/bin/zsh" ] } } }