win-shell-mcp
win-shell-mcp
AI 네이티브 크로스 플랫폼 명령어 추상화 계층 — MCP Server 형태로 40개의 결정적 도구를 제공하여 원시 셸 호출을 대체하고, 통일된 최소 JSON 출력을 제공하며, Windows 경로/인코딩/따옴표 차이를 처리합니다.
왜 필요한가
AI가 셸 명령어를 호출하는 것은 위험하고 신뢰할 수 없습니다:
크로스 플랫폼 불일치: Windows의 경로 구분자, 인코딩(GBK), 따옴표, 명령어 이름(
delvsrm)이 유닉스와 크게 다릅니다.출력 분석 어려움: 셸 명령어 출력 형식이 일정하지 않아 AI가 정보를 안정적으로 추출하기 어렵습니다.
보안 위험: 원시 셸은 파이프, 리다이렉션, 명령어 주입을 허용합니다.
win-shell-mcp는 40개의 결정적 도구로 일반적인 셸 명령어를 대체합니다. 각 도구는:
구조화된 JSON 매개변수를 받아들이고, 통일된
{ ok: true, ...data }또는{ ok: false, error: { code, message } }를 반환합니다.크로스 플랫폼에서 일관된 동작(Windows/macOS/Linux 동일한 설정).
최소 출력(기본적으로 AI 의사 결정에 필요한 최소 필드만 포함),
verbose스위치로 전체 데이터 획득.표준 오류 코드(
ENOENT/EISDIR/ENOTDIR/EACCES/EINVAL/ETIMEOUT/EEXEC/EUNKNOWN/INVALID_URL/NET_TIMEOUT/NET_FAIL/PROC_NOT_FOUND/PROC_KILL_FAIL/EXEC_FAIL/EXEC_TIMEOUT/GIT_FAIL).
Related MCP server: Pare
설치
# 全局安装
npm install -g win-shell-mcp
# 或一次性运行
npx win-shell-mcpNode.js ≥ 18이 필요합니다.
클라이언트 설정
Claude Desktop
claude_desktop_config.json 편집 (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\):
{
"mcpServers": {
"win-shell-mcp": {
"command": "win-shell-mcp"
}
}
}전역 설치가 아닌 경우 npx 사용:
{
"mcpServers": {
"win-shell-mcp": {
"command": "npx",
"args": ["win-shell-mcp"]
}
}
}일반 MCP 클라이언트
Model Context Protocol과 호환되는 모든 클라이언트는 stdio를 통해 연결할 수 있습니다:
{
"mcpServers": {
"win-shell-mcp": {
"command": "win-shell-mcp",
"transport": "stdio"
}
}
}시작 후 클라이언트는 stdio를 통해 서버와 통신하며, 전체 40개의 도구를 자동으로 발견합니다.
도구 목록 (40개)
도메인별로 그룹화됨. 각 도구는 통일된 출력 계약을 반환: 성공 { ok: true, ...data }, 실패 { ok: false, error: { code, message } }.
system (4)
도구 | 설명 |
| 시스템 정보 (os, arch, platform, hostname, cwd, node); |
| 디스크 사용량 (total/free/used, 바이트) |
| 메모리 정보 (total/free); |
| PATH 환경 변수 항목 목록; |
fs_read (3)
도구 | 설명 |
| 디렉터리 목록; |
| 파일 읽기; 행 범위, 인코딩 자동 감지 (GBK/UTF-8), 잘라내기 지원 |
| 파일/디렉터리 정보 (type, size, mtime, birthtime) |
fs_write (6)
도구 | 설명 |
| 파일 쓰기 (utf-8/gbk 인코딩 지원, 추가 가능) |
| 디렉터리 생성 ( |
| 파일/디렉터리 삭제 ( |
| 파일/디렉터리 복사 (디렉터리는 |
| 이동/이름 변경 (dest가 이미 존재하면 실패, 덮어쓰지 않음) |
| 빈 파일 생성 또는 mtime 업데이트 |
text (6)
도구 | 설명 |
| 정규식으로 텍스트 검색 |
| 처음 N줄 가져오기 |
| 마지막 N줄 가져오기 |
| 줄/단어/문자 수 세기 |
| 두 텍스트의 차이 |
| 정규식으로 텍스트 바꾸기 |
search (3)
도구 | 설명 |
| glob 패턴으로 파일 경로 매칭 |
| 파일 내에서 내용 검색 |
| 실행 파일 경로 찾기 ( |
process (2)
도구 | 설명 |
| 프로세스 목록 |
| 프로세스 종료 (PID 기준) |
shell_exec (1)
도구 | 설명 |
| 셸 명령어 실행 (타임아웃 및 인코딩 처리 포함) |
env (3)
도구 | 설명 |
| 환경 변수 읽기 |
| 환경 변수 설정 |
| 환경 변수 삭제 |
net (4)
도구 | 설명 |
| HTTP GET 요청 |
| HTTP POST 요청 |
| DNS 해석 |
| TCP 연결 탐지 |
pkg (2)
도구 | 설명 |
| 패키지 관리자 탐지 (npm/pnpm/yarn) |
| 패키지 스크립트 실행 |
git (6)
도구 | 설명 |
| 작업 영역 상태 |
| 커밋 기록 |
| 브랜치 목록 및 전환 |
| 차이 |
| 스테이징 |
| 커밋 |
⚠️ 보안 설명
샌드박스 없음, 모든 권한.
이 서버는 실행 중인 사용자의 전체 권한으로 모든 작업을 수행하며, 원시 셸과 동등합니다.
fs_rm은 접근 가능한 모든 파일을 삭제할 수 있고,shell_exec는 모든 명령어를 실행할 수 있으며,process_kill은 접근 가능한 모든 프로세스를 종료할 수 있고,fs_write는 접근 가능한 모든 파일을 덮어쓸 수 있습니다.신뢰할 수 있는 환경에서만 사용하세요:
신뢰하는 AI 클라이언트에만 연결하세요.
공유/멀티테넌트 환경에 노출하지 마세요.
민감한 디렉터리(시스템 디렉터리, 사용자 홈 디렉터리) 작업 전에 수동으로 확인하세요.
프로덕션 환경에서는 운영 체제 수준의 권한 격리(전용 낮은 권한 계정, 컨테이너, chroot 등)를 함께 사용하는 것이 좋습니다.
이 프로젝트는 샌드박스, 권한 격리, 명령어 블랙리스트 또는 경로 제한을 제공하지 않습니다. 모든 접근 제어는 운영 체제 권한에 의존합니다.
개발
# 安装依赖
npm install
# 类型检查
npm run typecheck
# 测试
npm test
# 测试(watch 模式)
npm run test:watch
# 覆盖率(阈值:lines/functions/statements ≥ 85%,branches ≥ 70%)
npm run coverage
# 构建
npm run build
# 开发模式(watch 构建)
npm run dev빌드 결과물은 dist/index.js (tsup 번들, ESM).
프로젝트 구조
src/
index.ts # 入口:启动 stdio server
server.ts # MCP Server 创建与工具分发
registry.ts # 工具注册表(注册全部 40 个工具)
contract/ # 输出契约与错误码
encoding/ # 编码检测(GBK/UTF-8)
tools/ # 40 个工具实现,按域分文件
tests/
server.test.ts # server 单元测试
integration/ # 集成测试(Client + InMemoryTransport)
tools/ # 各工具单元测试
contract/ # 契约测试
encoding/ # 编码测试License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityCmaintenanceA unified MCP server with composable tools for GitHub operations, file management, shell execution, kanban boards, Discord messaging, and package management. Features role-based security, HTTP/stdio transports, and a web-based development UI.
- Alicense-qualityAmaintenanceProvides MCP servers that wrap common developer tools (git, npm, docker, etc.) returning structured JSON output, enabling AI agents to reliably interact with these tools without parsing fragile terminal text.1136MIT
- Alicense-qualityCmaintenanceRemote execution layer for agentic systems exposing 64 production tools via MCP for file, network, system, text, git, crypto, and monitoring operations.MIT
- FlicenseCqualityCmaintenanceA security-first MCP server that provides LLMs with structured tools for filesystem, process, search, build/test/lint, IDE integration, and more.402
Related MCP Connectors
A MCP server built for developers enabling Git based project management with project and personal…
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
Scans MCP servers for tool poisoning, prompt injection and supply chain risks.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/1072636071/win-shell-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server