MCP server SDK in Bash
Top 65.1% on sourcepulse
This project provides a lightweight, zero-overhead implementation of the Model Context Protocol (MCP) server entirely in Bash. It's designed for developers and AI researchers who need a simple, self-contained way to expose custom tools and logic to AI systems like GitHub Copilot Chat, without the overhead of heavier runtimes like Node.js or Python. The primary benefit is extreme simplicity and portability for AI-driven tool integration.
How It Works
The server operates by leveraging Bash scripting and jq
for JSON processing. It implements the JSON-RPC 2.0 protocol over standard input/output (stdio) for communication with an MCP host. Business logic is implemented as individual Bash functions prefixed with tool_
, which are dynamically discovered and exposed based on a tools_list.json
configuration. This approach avoids external dependencies beyond Bash and jq
, making it highly portable and easy to extend.
Quick Start & Requirements
git clone https://github.com/muthuishere/mcp-server-bash-sdk
jq
(install via brew install jq
on macOS).chmod +x *.sh
).echo '{"jsonrpc": "2.0", "method": "tools/call", "params": {"name": "get_movies"}, "id": 1}' | ./moviemcpserver.sh
Highlighted Details
tool_*
).Maintenance & Community
The project appears to be a personal project by muthuishere
. No specific community channels (Discord/Slack) or roadmap are mentioned in the README.
Licensing & Compatibility
Limitations & Caveats
The implementation lacks concurrency and parallel processing capabilities, has limited memory management, and does not support streaming responses, making it unsuitable for high-throughput scenarios.
1 month ago
Inactive