Show HN: MCP Server SDK in Bash (~250 lines, zero runtime)
Published on: 2025-06-13 23:25:23
🐚 MCP Server in Bash
A lightweight, zero-overhead implementation of the Model Context Protocol (MCP) server in pure Bash.
Why? Most MCP servers are just API wrappers with schema conversion. This implementation provides a zero-overhead alternative to Node.js, Python, or other heavy runtimes.
📋 Features
✅ Full JSON-RPC 2.0 protocol over stdio
✅ Complete MCP protocol implementation
✅ Dynamic tool discovery via function naming convention
✅ External configuration via JSON files
✅ Easy to extend with custom tools
🔧 Requirements
Bash shell
jq for JSON processing ( brew install jq on macOS)
🚀 Quick Start
Clone the repo
git clone https://github.com/muthuishere/mcp-server-bash-sdk cd mcp-server-bash-sdk
Make scripts executable
chmod +x mcpserver_core.sh moviemcpserver.sh
Try it out
echo ' {"jsonrpc": "2.0", "method": "tools/call", "params": {"name": "get_movies"}, "id": 1} ' | ./moviemcpserver.sh
🏗️ Architecture
┌─────────────┐ ┌────────────────────────┐ │ MCP Host │ │ MCP Se
... Read full article.