mcp-bash


Repository: mcp-bash-framework • CLI/Binary: mcp-bash
For AI agents: Read llms.txt (compact) or llms-full.txt (detailed) for agent-optimized context — includes a step-by-step Quick Start, critical allowlist requirement, and CLI wrapper patterns.
Claude Code skill: /plugin install mcp-bash --marketplace yaniv-golan/mcp-bash-framework installs a skill with the workflow and common traps for building mcp-bash servers. On older Claude Code: /plugin marketplace add yaniv-golan/mcp-bash-framework, then /plugin install mcp-bash@mcp-bash.
Contents
The most complete MCP implementation in pure Bash. Tools, resources, prompts, elicitation, roots, progress, cancellation—the full spec, no runtimes beyond your shell.
- Runs on Bash 3.2+ (macOS/Linux stock). No Node, no Python, no containers.
- Handles concurrency, timeouts, and cancellation the way production systems need.
- You write the tools. The framework stays out of your way.
TL;DR
Turn any Bash script into an MCP tool in minutes. No Node, no Python, no containers.
mcp-bash new my-server && cd my-server
mcp-bash scaffold tool my-tool # edit tools/my-tool/tool.sh
mcp-bash config --client cursor # paste into your MCP client
mcp-bash bundle # create distributable package

What you’ll build
flowchart TD
Client["MCP client<br/>(Claude Desktop / Cursor / Windsurf)"]
Transport["stdio (JSON-RPC)"]
Framework["mcp-bash framework<br/>(registry + runtime + policy)"]
Project["Your project<br/>tools/ resources/ prompts/ server.d/"]
Client --> Transport --> Framework --> Project
Design Principles
- Tools shouldn’t need another runtime to talk to AI.
- Everything must be inspectable. No magic.
- If it’s not needed in production, it isn’t in the framework.
- Your project stays yours. The framework upgrades cleanly.
MCP Spec Coverage
mcp-bash targets the 2025-11-25 MCP specification with negotiated downgrades to older versions.
| Category | Coverage | Notes |
|---|
| Core Protocol | ✅ Full | Lifecycle, ping, capabilities, downgrades |
| Tools | ✅ Full | list, call, icons, errors, listChanged, annotations |
| Resources | ✅ Full | list, read, subscriptions, templates, binary, annotations |
| Prompts | ✅ Full | list, get, arguments, icons |
| Utilities | ✅ Full | Progress, cancellation, logging, completion |
| Elicitation | ✅ Full | Form, URL, enum, multi-choice modes |
| Roots | ✅ Full | Server→client request, listChanged |
| MCP Apps (UI) | ⚠️ Partial | ui:// resources, templates; UI-initiated tool calls depend on host support |