BS

blazickjp/shell-mcp-server

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

23 stars 9 forks 품질 65 트렌드 0Apache-2.0

쉘 명령 실행 MCP 서버 Claude AI. 지정된 디렉토리 내의 쉘 액세스를 제어 할 수 있습니다.

개요

♨ Shell MCP Server와 AI 애플리케이션에 안전한 쉘 명령 실행 기능을 추가합니다! 모형 Context 의정서를 위해 건축하는. - 명령 - 지정된 디렉토리에서만 실행 - b - bash, sh, cmd, powershell에 대한 지원 - ️ - 긴 실행 명령의 자동 종료 - 🌍 - 모두에서 작동 유닉스 및 Windows 시스템 - ️️ - 내장 디렉토리 및 쉘 검증 쉘 명령 실행을 활성화하기 위해 Claude Desktop config에 이것을 추가하십시오. command-line 인수와 동작 구성: 환경변수: - COMMAND TIMEOUT: 초 (과태: 30)에서 최대 실행 시간 - ̇ : 명령은 지정된 디렉토리에서만 실행할 수 있습니다. - Result : 만 설정된 쉘은 허용됩니다. - ✪ : 모든 명령에는 구성 가능한 타임 아웃이 있습니다. Ī : 작업 디렉토리 유효성 검사는 트래버스 공격을 방지합니다. - Я : 명령은 서버 프로세스와 동일한 권한을 실행합니다. 공헌은 환영합니다!

개요(AI 번역)

♨ Shell MCP Server와 AI 애플리케이션에 안전한 쉘 명령 실행 기능을 추가합니다! 모형 Context 의정서를 위해 건축하는.

✨ 특징

  • ResultSecure Execution - 명령은 지정된 디렉토리에서만 실행됩니다.
  • Multi Multiple Shells - bash, sh, cmd, powershell 지원
  • ✈️Timeout Control** - 긴 실행 명령의 자동 종료
  • 🚙 Cross-Platform - 유닉스 및 Windows 시스템에서 작동
  • Default️ **기본으로 안전 ** - 내장 디렉토리 및 쉘 검증

⭐ 빠른 시작

설치

은 Claude 데스크탑 통합

쉘 명령 실행을 활성화하기 위해 Claude Desktop config에 이것을 추가하십시오.

본문 바로가기

🎮 사용 예제

기본 파일 작업

프로젝트 관리

시스템 정보

파일 처리

Windows-Specific 예제

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

command-line 인수와 동작 구성:

디자인 기술
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" ] } } }