bash-mcp
개요
제작자가 쓴 설명(영어 원문)
Structured JSON wrappers for git, kubectl, terraform, helm, argocd, gh, glab and other CLIs.
할 수 있는 일
이 서버는 아직 쉬운 말로 된 요약을 쓰지 못했어요. 아래는 레지스트리에서 읽어 온 사실이에요.
- 연결 방식: 내 컴퓨터에서 실행
- 전송 방식: stdio
- 카테고리: 개발자 도구
설치
쓰고 있는 AI 앱을 고른 다음 설정을 복사하세요.
검사 2/2 통과 · 내 컴퓨터에서 실행돼요
먼저: 어떤 AI를 쓰시나요?
쓰는 앱을 고르면 아래에 단계가 나옵니다.
Claude에 연결할 수 있지만 먼저 준비가 필요해요
bash-mcp 키가 필요해요 (제작자 사이트에서 가입, 비용이 들 수 있음) · 먼저 컴퓨터에 Node.js를 설치하세요 (한 번만) · 컴퓨터용 Claude 앱(Windows 또는 Mac)에서만 되고 웹이나 모바일은 안 돼요
컴퓨터용 Claude 앱 설정 파일 열기
SettingsDeveloperEdit Config
이 설정을 붙여 넣고 저장
{ "mcpServers": { "bash": { "command": "npx", "args": [ "-y", "@nickw8/bash-mcp" ], "env": { "BASH_MCP_MODE": "your-value", "BASH_MCP_PROFILE": "your-value", "BASH_MCP_RESPONSE_MODE": "your-value" } } } }키는 앱 입력란에만 붙여 넣고, 채팅에 붙이거나 다른 사람에게 보내지 마세요
Claude를 끄고 다시 열기
해 보기
bash-mcp을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐✓ Claude가 bash-mcp을 쓰고 있다고 하거나 답에 bash-mcp 도구 이름이 나오면 연결된 거예요
메뉴 이름은 2026년 11월 11일에 Anthropic 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요
ChatGPT는 아직 bash-mcp에 연결할 수 없어요
bash-mcp는 내 컴퓨터에 설치해서 쓰지만 ChatGPT는 웹에서 도는 서버만 연결할 수 있어요
대신 이렇게 할 수 있어요
A · bash-mcp에 연결되는 앱 쓰기
- bash-mcp 키가 필요해요 (제작자 사이트에서 가입, 비용이 들 수 있음) · 먼저 컴퓨터에 Node.js를 설치하세요 (한 번만) · 컴퓨터용 Claude 앱(Windows 또는 Mac)에서만 되고 웹이나 모바일은 안 돼요
- bash-mcp 키가 필요해요 (제작자 사이트에서 가입, 비용이 들 수 있음) · 먼저 컴퓨터에 Node.js를 설치하세요 (한 번만)
- bash-mcp 키가 필요해요 (제작자 사이트에서 가입, 비용이 들 수 있음) · 먼저 컴퓨터에 Node.js를 설치하세요 (한 번만)
- bash-mcp 키가 필요해요 (제작자 사이트에서 가입, 비용이 들 수 있음) · 먼저 컴퓨터에 Node.js를 설치하세요 (한 번만)
B · 개발자 도구에서 ChatGPT에 연결되는 다른 서버
같은 분류에서 많이 쓰는 것 중 키 없이 주소만으로 연결되는 것을 골랐어요
- Sentry✓ ChatGPT
- Front-End Checklist✓ ChatGPT
- Compiler Explorer✓ ChatGPT
Claude Code에 연결할 수 있지만 먼저 준비가 필요해요
bash-mcp 키가 필요해요 (제작자 사이트에서 가입, 비용이 들 수 있음) · 먼저 컴퓨터에 Node.js를 설치하세요 (한 번만)
bash-mcp에 가입하고 키 만들기
제작자 사이트에서 가입하고 다음 단계에 쓸 API 키를 만드세요. 비용이 들 수 있어요.
키 받는 방법은 아래 제작자 README에 있어요
터미널 열기
Mac: Command+스페이스를 누르고 Terminal 입력 · Windows: PowerShell 열기
이 명령을 붙여 넣고 Enter
claude mcp add bash --env BASH_MCP_MODE=your-value --env BASH_MCP_PROFILE=your-value --env BASH_MCP_RESPONSE_MODE=your-value -- npx -y @nickw8/bash-mcpEnter 전에 “your-value”를 내 키로 바꾸세요
키는 앱 입력란에만 붙여 넣고, 채팅에 붙이거나 다른 사람에게 보내지 마세요
Claude Code에서 /mcp 입력
bash-mcp이 목록에 있고 연결됨으로 보이면 돼요
해 보기
bash-mcp을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐✓ Claude Code가 bash-mcp을 쓰고 있다고 하거나 답에 bash-mcp 도구 이름이 나오면 연결된 거예요
메뉴 이름은 2026년 11월 11일에 Anthropic 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요
Cursor에 연결할 수 있지만 먼저 준비가 필요해요
bash-mcp 키가 필요해요 (제작자 사이트에서 가입, 비용이 들 수 있음) · 먼저 컴퓨터에 Node.js를 설치하세요 (한 번만)
bash-mcp에 가입하고 키 만들기
제작자 사이트에서 가입하고 다음 단계에 쓸 API 키를 만드세요. 비용이 들 수 있어요.
키 받는 방법은 아래 제작자 README에 있어요
키 입력
bash-mcp 설정에서 BASH_MCP_MODE, BASH_MCP_PROFILE, BASH_MCP_RESPONSE_MODE가 비어 있어요. 내 키를 넣고 저장하세요
키는 앱 입력란에만 붙여 넣고, 채팅에 붙이거나 다른 사람에게 보내지 마세요
Cursor에서 AI 채팅을 Agent 모드로 열기
해 보기
bash-mcp을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐✓ Cursor가 bash-mcp을 쓰고 있다고 하거나 답에 bash-mcp 도구 이름이 나오면 연결된 거예요
메뉴 이름은 2026년 11월 11일에 Cursor 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요
VS Code에 연결할 수 있지만 먼저 준비가 필요해요
bash-mcp 키가 필요해요 (제작자 사이트에서 가입, 비용이 들 수 있음) · 먼저 컴퓨터에 Node.js를 설치하세요 (한 번만)
bash-mcp에 가입하고 키 만들기
제작자 사이트에서 가입하고 다음 단계에 쓸 API 키를 만드세요. 비용이 들 수 있어요.
키 받는 방법은 아래 제작자 README에 있어요
키 입력
bash-mcp 설정에서 BASH_MCP_MODE, BASH_MCP_PROFILE, BASH_MCP_RESPONSE_MODE가 비어 있어요. 내 키를 넣고 저장하세요
키는 앱 입력란에만 붙여 넣고, 채팅에 붙이거나 다른 사람에게 보내지 마세요
VS Code에서 AI 채팅을 Agent 모드로 열기
해 보기
bash-mcp을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐✓ VS Code가 bash-mcp을 쓰고 있다고 하거나 답에 bash-mcp 도구 이름이 나오면 연결된 거예요
메뉴 이름은 2026년 11월 11일에 VS Code 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요
개발자용: 터미널 명령과 JSON 설정
컴퓨터에 설치
Claude Code
claude mcp add bash --env BASH_MCP_MODE=your-value --env BASH_MCP_PROFILE=your-value --env BASH_MCP_RESPONSE_MODE=your-value -- npx -y @nickw8/bash-mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"bash": {
"command": "npx",
"args": [
"-y",
"@nickw8/bash-mcp"
],
"env": {
"BASH_MCP_MODE": "your-value",
"BASH_MCP_PROFILE": "your-value",
"BASH_MCP_RESPONSE_MODE": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"bash": {
"command": "npx",
"args": [
"-y",
"@nickw8/bash-mcp"
],
"env": {
"BASH_MCP_MODE": "your-value",
"BASH_MCP_PROFILE": "your-value",
"BASH_MCP_RESPONSE_MODE": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"bash": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@nickw8/bash-mcp"
],
"env": {
"BASH_MCP_MODE": "your-value",
"BASH_MCP_PROFILE": "your-value",
"BASH_MCP_RESPONSE_MODE": "your-value"
}
}
}
}직접 입력할 값
BASH_MCP_MODEenvWrite gate for run/batch: readOnly (default), confirmWrites, offBASH_MCP_PROFILEenvTool set to register: core, development, infrastructure, all (default)BASH_MCP_RESPONSE_MODEenvResponse budget: auto (default), summary, compact, full
이 설정은 제작자의 레지스트리 정보로 만들었어요. README와 다르면 README를 따르세요.
한눈에 보기
어떤 앱에서 쓸 수 있나요
이 서버의 연결 방식과 각 앱의 공식 문서를 바탕으로 했어요. 2026년 11월 10일 확인.
내 컴퓨터에서 실행하는 앱
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
할 수 있는 일
내 컴퓨터에서 실행돼요. 설치하면 AI 앱에 도구 목록이 나타나요.
기본 점검i
누구나 볼 수 있는 정보를 점검했고, 코드는 읽지 않았어요. 해당하지 않는 항목은 개수에서 뺐어요. · 2026년 11월 11일 점검
- ✓ 통과
제작자와 저장소 일치
레지스트리 이름이 GitHub 계정 nickw8 기준으로 확인되었고, 이 계정이 저장소를 소유하고 있어요
- ✓ 통과
계속 관리되고 있음
코드 마지막 변경: 19일 전
- … 아직 점검 안 함
라이선스 있음
아직 GitHub에서 이 저장소를 읽어 오지 않았어요
- – 해당 없음
엔드포인트 응답
내 컴퓨터에서 실행되는 서버라 인터넷 엔드포인트가 없어요
- – 해당 없음
OAuth로 로그인
내 컴퓨터에서 실행되며, 대신 로컬 설정을 사용해요
- … 아직 점검 안 함
도구 설명에 숨겨진 지시 없음
내 컴퓨터에서 실행돼요. 도구 목록은 인터넷 엔드포인트가 있는 서버에서만 읽을 수 있어요
토론
질문하고, 팁을 나누고, 안 되는 점을 알려 주세요. "도움이 됨"이 많은 순서예요.
사용자 리뷰
아직 리뷰가 없어요
개발자 도구 카테고리의 다른 서버와 비교i
- 이 카테고리의 다른 서버 5760개 중 0%보다 스타가 많아요
- 이 카테고리의 다른 서버 5760개 중 60%보다 최근에 레지스트리에 공개됐어요
- 기본 점검 결과가 이 카테고리의 다른 서버 5760개 중 100%와 같거나 더 좋아요
레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.
자주 묻는 질문
bash-mcp, 안전한가요?
해당하는 기본 점검 2개 중 2개를 통과했어요. 코드는 읽지 않았어요. 키나 토큰을 넣기 전에 서버가 어떤 권한을 요구하는지 확인하고, 꼭 필요한 권한만 있는 키를 쓰세요.
어떤 키나 코드가 필요한가요?
레지스트리에 필수 키가 나와 있지 않아요. 다만 처음 쓸 때 로그인을 요구하는 서버도 있어요.
내 컴퓨터에서 실행되나요, 클라우드에서 실행되나요?
내 컴퓨터에서 실행돼요. AI 앱이 필요할 때 실행하고, 데이터는 제작자의 서버를 거치지 않아요(서버 자체가 온라인 서비스를 호출하는 경우는 제외).
아직 관리되고 있나요?
GitHub 저장소는 마지막으로 19일 전 변경됐고, 최신 버전(5.0.1)은 19일 전 레지스트리에 올라왔어요.
어떤 앱에서 쓸 수 있나요?
Claude Desktop, Claude Code, Cursor, VS Code처럼 MCP를 지원하는 앱에서 쓸 수 있어요. 내 컴퓨터에 Node.js도 있어야 해요.
대신 쓸 수 있는 건 뭐가 있나요?
같은 카테고리에는: REA, Netdata, Front-End Checklist
대안
같은 카테고리에서 다른 제작자가 만든 서버예요. 스타 순으로 정렬했어요.
카드 보는 법:↓ 주간 다운로드i★ GitHub 스타i세 기둥: 리뷰 · 점검 · 사용 정도i업데이트 = 최신 버전을 레지스트리에 공개한 날i
Netdata
Real-time infrastructure monitoring with metrics, logs, alerts, and ML-based anomaly detection.
Front-End Checklist
Review frontend code and live pages against 386 quality-gated web development rules.
제작자의 README
README 열기
제작자의 저장소에서 쓰인 그대로 가져왔어요. PopNx MCP가 검토하거나 보증한 내용이 아니에요. HTML, 이미지, 스크립트는 제거했어요. 링크를 누르면 이 사이트를 벗어나요.
bash-mcp
An MCP server that wraps common CLI tools (kubectl, terraform, helm, git, argocd, jq, yq, ripgrep, etc.) and returns structured JSON instead of raw text output.
Designed for AI agents and LLM-powered workflows where parsing human-readable CLI output wastes tokens and breaks easily.
Created with the help of Claude since it is the main consumer of the structured data.
Quick Start
Option 1: Zero-install with npx
No installation needed — just add the MCP config and npx will fetch it on first use.
Option 2: Global install
npm install -g @nickw8/bash-mcp
Option 3: Install from source
git clone https://github.com/nickw8/bash-mcp.git
cd bash-mcp npm install && npm run build npm link
Verify your setup
Run the built-in preflight check before wiring bash-mcp into a client:
npx -y @nickw8/bash-mcp --doctor # or: bash-mcp --doctor (global install)
It reports your Node version, whether the MCP SDK loads, which CLIs are available (versions included), and the resolved BASH_MCP_MODE — then exits non-zero if a critical check fails (Node too old or the SDK can't load). Missing CLIs are advisory, not failures. Without --doctor, the binary starts the MCP server as usual.
Claude Code Setup
Add bash-mcp to your Claude Code settings. For all projects (recommended), edit ~/.claude/settings.json. For a single project, edit .claude/settings.json in the project root.
With npx (no install required):
{
"mcpServers": { "bash-mcp": { "command": "npx", "args": ["-y", "@nickw8/bash-mcp"], "env": { "BASH_MCP_MODE": "readOnly" } } } }
Safe by default: an unset
BASH_MCP_MODEresolves toreadOnly, which
blocks mutating
run/batchcommands. The examples set it explicitly for
clarity. For trusted local use, set
BASH_MCP_MODE=offto allow writes.
With global install:
{
"mcpServers": { "bash-mcp": { "command": "bash-mcp", "env": { "BASH_MCP_MODE": "readOnly" } } } }
To verify it's working, start Claude Code and check that bash-mcp tools (like cat, rg, git_status) appear in the tool list.
You can also add it from the CLI:
claude mcp add bash-mcp -e BASH_MCP_MODE=readOnly -- npx -y @nickw8/bash-mcp
Steer agents toward the structured tools (optional)
Registering the server exposes the tools, but agents still reach for raw Bash out of habit. Two assets fix that: a rules file (~/.claude/rules/bash-mcp-tools.md, auto-loaded into every session — the tool inventory) and a PreToolUse(Bash) redirect hook. Install both with:
npx -y @nickw8/bash-mcp --install-claude # copy into ~/.claude
npx -y @nickw8/bash-mcp --install-claude --check # report drift, write nothing
It prints the settings.json hook block to paste in (the rules file needs no settings — Claude Code auto-loads ~/.claude/rules/*.md). See hooks/README.md for details and the clone-time npm run claude:install equivalent. --uninstall-claude removes both files again.
Or install the Claude Code plugin, which bundles the server and the hook (in warn mode — it never blocks unless BASH_MCP_HOOK=block):
/plugin install bash-mcp --marketplace nickw8/bash-mcp
Every other client (VS Code/Copilot, Codex, generic stdio) and pinned versions: docs/guides/installation.md.
Claude Desktop Setup
Edit claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\) and add the same mcpServers entry:
{
"mcpServers": { "bash-mcp": { "command": "npx", "args": ["-y", "@nickw8/bash-mcp"], "env": { "BASH_MCP_MODE": "readOnly" } } } }
Restart Claude Desktop after editing.
Cursor Setup
Add bash-mcp to ~/.cursor/mcp.json (global) or .cursor/mcp.json (per-project):
{
"mcpServers": { "bash-mcp": { "command": "npx", "args": ["-y", "@nickw8/bash-mcp"], "env": { "BASH_MCP_MODE": "readOnly" } } } }
(Use "command": "bash-mcp" with no args if you installed globally.) Any MCP-aware client works the same way — point it at the bash-mcp binary or npx -y @nickw8/bash-mcp.
Recommended Hooks
Optional Claude Code hooks in hooks/ steer agents toward the structured tools by blocking raw shell commands (git status, kubectl get, cat, …) that have a bash-mcp equivalent, while letting write commands (git commit, kubectl apply) pass through. BASH_MCP_HOOK=warn makes every block advisory; off disables the hook.
See docs/runbooks/hooks-setup.md for setup.
Why Structured Output?
Raw CLI tools return text meant for humans. AI agents waste tokens parsing tables, aligning columns, and guessing field boundaries. bash-mcp runs the same CLI tools but returns structured JSON with typed schemas, so the agent gets exactly the data it needs.
# Raw kubectl output: 148 tokens to parse a table
NAME READY STATUS RESTARTS AGE nginx-7c5b8d6c88-abc12 1/1 Running 0 3d
bash-mcp output: typed, compact, ready to use
{ "name": "nginx-7c5b8d6c88-abc12", "status": "Running", "age": "3d", ... }
See docs/guides/token-benchmarks.md for measured savings (e.g. kubectl describe pod → kube_diagnose_pod is ~64% fewer tokens).
Philosophy: structured tools first, run is the escape hatch
- Reach for a structured tool first. Every wrapper returns typed JSON the agent can use directly — no column-counting, no re-parsing on a format change.
- Prefer a diagnostic over a chain of raw commands. Tools like
kube_diagnose_pod,helm_release_triage, andargo_app_health_summaryanswer an *operational question* in one call —{ status, likelyCauses, suggestedNextCommands, evidence }— instead of making the agent runget, thenlogs, then reason across both. - `run` / `batch` are the escape hatch. For commands without a dedicated wrapper,
runexecutes anything with smart truncation. Optional hooks actively steer agents back to the structured tool when a raw equivalent is invoked.
Read-only tools carry the MCP readOnlyHint annotation. run/batch can be gated with BASH_MCP_MODE (see Configuration).
Which tool should I use?
Pick the structured tool that matches your intent instead of reaching for a raw command. The list_guidance tool returns this same index as JSON (filter by intent or category), so agents can self-select without the README.
| I want to… | Use this | Instead of | |
|---|---|---|---|
| diagnose a crashing or failing Kubernetes pod | kube_diagnose_pod | kubectl describe pod, kubectl logs | |
| find all not-ready or failing pods in a namespace | kube_pod_failure_summary | kubectl get pods, `kubectl get pods \ | grep` |
| check a deployment's rollout health | kube_deployment_status | kubectl rollout status, kubectl get deployment | |
| understand recent cluster events | kube_events_summary | kubectl get events | |
| summarize the changes in a Terraform plan | tf_plan_summary | terraform plan, terraform show | |
| review the current feature branch before a PR | git_pr_context | git diff, git log, git status | |
| understand the overall state of a repository | repo_health_summary | git status, git log --oneline | |
| read a file's structure without loading the full body | outline | cat (entire file), cat | |
| read one region of a large file | cat | cat (whole file), sed -n '10,40p' | |
| keep a broad search from flooding the context | rg | `rg \ | head` |
| search for exact code references or symbols | rg | grep -r, rg | |
| check whether a pull request's CI checks pass | gh_pr_checks | gh pr checks, gh pr view | |
| find out why a CI / GitHub Actions run failed | gh_run_failure_summary | gh run view --log-failed, gh run list | |
| check whether a GitLab pipeline or merge request's jobs pass | glab_ci_status | glab ci get, glab ci status | |
| find out why a GitLab CI pipeline failed | glab_pipeline_failure_summary | glab ci trace, glab ci view | |
| triage why a Helm release is unhealthy | helm_release_triage | helm status, helm get values | |
| check whether an ArgoCD app is healthy and in sync | argo_app_health_summary | argocd app get, argocd app list | |
| validate a Liquibase changelog for errors | liquibase_validate | liquibase validate | |
| preview the SQL Liquibase would run for pending changesets | liquibase_update_sql | liquibase updateSQL, `liquibase updateSQL \ | grep` |
| list Liquibase changesets not yet applied to the database | liquibase_status | liquibase status --verbose | |
| lint a shell script for bugs and quoting issues | bash_lint | shellcheck, shellcheck -f json1 | |
| run a bats or shell test suite | bash_test | bats, bash test.sh | |
| discover which CLIs are installed before calling a tool | check_environment | which, --version |
Tools
📖 [Full tool reference → `docs/tools.md`](docs/tools.md) — generated from the
registered tools (inputs, outputs, and the raw command each one approximates).
Regenerate with
npm run docs:tools.
Environment
| Tool | Description |
|---|---|
check_environment | Report which CLIs are installed (and their versions) so you can pick the right tool before calling it. |
list_guidance | Return an intent → preferred-tool index so you can pick the right bash-mcp tool for a goal. |
Filesystem
| Tool | Description |
|---|---|
ls | List files in a directory. |
tree | Show directory structure as a compact tree. |
du | Show disk usage for paths. |
find_files | Find files by name pattern, type, or modification time. |
Search
| Tool | Description |
|---|---|
rg | Search file contents with ripgrep. |
glob | Find files matching a glob pattern. |
File
| Tool | Description |
|---|---|
cat | Read one or more files with line numbers and smart truncation. |
outline | Show the structural outline of a file — function/class names, top-level comments, imports. |
Git
| Tool | Description |
|---|---|
git_status | Structured git status: branch, staged/unstaged/untracked files. |
git_log | Structured git log: commit hash, author, date, message. |
git_diff | Structured git diff: files changed with insertions/deletions counts. |
git_branches | List git branches. |
repo_health_summary | One-call snapshot of a git working tree: branch, ahead/behind vs upstream, staged/unstaged/untracked counts, recent commits, and the uncommitted diffstat. |
git_pr_context | Collect the commits and file changes of a branch vs a base ref (for writing a PR description): commit list, changed files with status, and a diffstat over base...head. |
git_diff_content | Show git diff with structured patch content. |
GitHub
| Tool | Description |
|---|---|
gh_pr_checks | Report a pull request's CI checks as counts per state plus the failing and pending checks. |
gh_run_failure_summary | Diagnose a GitHub Actions run in one call: status, the failed jobs and steps, and the ##[error] lines from the failed log as evidence. |
GitLab
| Tool | Description |
|---|---|
glab_ci_status | Report a GitLab pipeline's jobs as counts per status plus the failed, running and pending jobs. |
| glab_pipeline_failure_summary | Diagnose a GitLab pipeline in one call: status, the failed jobs and why GitLab says they failed, and the last script li