Shell-MCP
shell-mcp
쉘 명령 실행 MCP 서버
LLM에 대한 보안 셸 명령 실행 기능을 제공하는 MCP 서버 구현입니다.
특징
보안 실행 : 허용된 명령 및 인수만 허용
리소스 제어 : 메모리 및 CPU 사용량 모니터링
타임아웃 제어 : 장시간 실행되는 명령어의 자동 종료
크기 제한 : 안전을 위한 출력 크기 제한
MCP 통합 : Claude 및 기타 MCP 호환 LLM과 함께 작동합니다.
Related MCP server: terminal-mcp
설치
지엑스피1
Dive Desktop을 사용한 구성
Dive Desktop에서 "+ MCP 서버 추가"를 클릭하세요.
다음 구성을 복사하여 붙여넣으세요.
{
"mcpServers": {
"shell": {
"command": "npx",
"args": [
"-y",
"@kevinwatt/shell-mcp"
]
}
}
}도구 문서
shell_ls, shell_pwd, shell_df 등
허용 목록에 있는 셸 명령 실행
입력:
command(문자열, 필수): 실행할 명령args(배열, 선택 사항): 명령 인수timeout(숫자, 선택 사항): 실행 시간 초과(ms)
사용 예
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요구 사항
노드.js 18+
MCP 호환 LLM 서비스
개발
# Install dependencies
npm install
# Watch mode
npm run watch
# Run tests
npm test
# Lint
npm run lint특허
MIT © Dewei Yen
키워드
엠씨피
껍데기
명령
클로드
LLM
오토메이션
사용 가능한 명령
사용 가능한 셸 명령은 다음과 같습니다.
명령 | 설명 | 허용된 인수 |
엘에스 | 디렉토리 내용 나열 | -l, -a, -h, -R, --도움말, * |
고양이 | 파일 내용을 연결하고 표시합니다. | -n, -b, --도움말, * |
비밀번호 | 현재 작업 디렉토리 표시 | 없음 |
디에프 | 디스크 사용량 표시 | -h, -T, --도움말 |
에코 | 표시 텍스트 | 모든 텍스트 |
추신 | 프로세스 상태 표시 | -e, -f, -u, --도움말 |
무료 | 메모리 사용량 표시 | -h, -m, -g, --도움말 |
가동 시간 | 시스템 가동 시간 표시 | 없음 |
날짜 | 시스템 날짜 및 시간 표시 | +%Y-%m-%d, +%H:%M:%S, --도움말 |
그렙 | 파일에서 텍스트 패턴 검색 | -i, -v, -n, -r, -l, --색상, * |
와 | 누가 로그인했는지, 무엇을 하고 있는지 보여주세요 | -h, -s, --no-header, --help |
후이즈 | WHOIS 도메인 등록 정보 조회 | -시간, * |
찾다 | 디렉토리 계층 구조에서 파일 검색 | -이름, -유형, -크기, -시간, * |
넷스탯 | 네트워크 연결 정보 | -a, -n, -t, -u, -l, -p, --help |
엘에스피씨 | PCI 장치 나열 | -v, -k, -mm, -nn, --도움말 |
lsusb | USB 장치 나열 | -v, -t, -d, -s, --help |
파기 | DNS 조회 유틸리티 | +짧음, +추적, +dnssec, @*, * |
nslookup | DNS 레코드 쿼리 | -유형=*, -쿼리=*, * |
아이피 | 네트워크 장치 및 인터페이스 표시 | 주소, 링크, 경로, 이웃, -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