MCP 셸 서버
모델 컨텍스트 프로토콜(MCP)을 사용하여 셸 명령을 실행하는 서버입니다. AI 에이전트가 셸 명령을 안전하게 실행할 수 있도록 하는 브리지 역할을 합니다.
특징
- 셸 명령 실행(단일 줄 및 다중 줄 지원)
- 다양한 셸(bash, zsh, fish, powershell, cmd 등) 지원
- 자세한 오류 처리 및 로깅
- MCP Inspector 호환
설치
npm에서 (사용자로서)
지엑스피1
소스에서(개발용)
MCP 구성
커서 구성
커서 구성 파일( ~/.cursor/config.json
)에 다음을 추가합니다.
클라인 통합
Cline은 Claude AI와 함께 MCP 서버를 사용할 수 있도록 해주는 VS Code 확장 프로그램입니다. Cline을 사용하여 이 MCP 셸 서버를 설정하려면 다음 단계를 따르세요.
- Cline MCP 설정 파일을 엽니다.
- macOS:
~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
- Windows:
%APPDATA%/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
- 리눅스:
~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
- macOS:
- 셸 서버 MCP 구성을 추가합니다.또는 로컬에 설치된 패키지를 사용하려면 다음을 수행합니다.
규칙 구성
AI 비서의 규칙이나 프롬프트에 다음을 추가하세요.
용법
직접 실행
개발 모드
MCP Inspector로 테스트
명령줄 인수
도구 참조
shell_exec
지정된 셸에서 명령을 실행합니다.
매개변수:
command
(문자열, 필수): 실행할 셸 명령workingDir
(문자열, 선택 사항): 명령을 실행할 작업 디렉토리입니다. $HOME 아래에 있어야 합니다.
리소스 참조
서버는 다음과 같은 시스템 정보를 리소스로 제공합니다.
호스트 이름
시스템의 호스트 이름을 반환합니다.
URI: hostname://
플랫폼
운영체제 플랫폼을 반환합니다.
URI: platform://
껍데기
서버에서 사용 중인 셸 경로를 반환합니다.
URI: shell://
사용자 이름
현재 사용자 이름을 반환합니다.
URI: username://
시스템 정보
다음을 포함하여 포괄적인 시스템 정보를 JSON 형식으로 반환합니다.
- 호스트 이름
- 플랫폼
- 껍데기
- 사용자 이름
- CPU 수
- 총 메모리
- 여유 메모리
- 시스템 가동 시간
사용 예
기본 명령 실행
다중 줄 명령(Heredoc) 실행
개발
프로젝트 구조
벌채 반출
로그는 mcp-shell.log
파일에 기록됩니다.
특허
MIT
local-only server
The server can only run on the client's local machine because it depends on local resources.
Tools
AI 에이전트가 호스트 시스템에서 셸 명령을 안전하게 실행할 수 있도록 모델 컨텍스트 프로토콜(MCP)을 사용하는 서버입니다.
Related MCP Servers
- AsecurityAlicenseAqualityA 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.Last updated -174PythonMIT License
- -securityAlicense-qualityA Model Context Protocol (MCP) server that allows AI models to safely access and interact with local file systems, enabling reading file contents, listing directories, and retrieving file metadata.Last updated -471JavaScriptMIT License
- -securityAlicense-qualityA secure, container-based implementation of the Model Context Protocol (MCP) that provides sandboxed environments for AI systems to safely execute code, run commands, access files, and perform web operations.Last updated -9PythonApache 2.0
- AsecurityAlicenseAqualityA server that enables AI assistants to execute terminal commands and retrieve outputs via the Model Context Protocol (MCP).Last updated -36PythonMIT License