opensourceprojects.dev

A broadsheet for software that doesn't ask for your email

Yes Mcp server in bash
GitHub RepoImpressions212

Project Description

View on GitHub

MCP Server in Bash: A Zero-Overhead AI Tool Integration

Why a Bash MCP Server?

Most AI developers working with the Model Context Protocol (MCP) default to Node.js or Python servers—but what if you just need something lightweight? Enter muthuishere/mcp-server-bash-sdk: a pure Bash implementation of an MCP server that handles JSON-RPC 2.0 over stdio with minimal overhead.

This isn’t just a toy project. With 438 GitHub stars and a MIT license, it’s a legit tool for scenarios where you want to expose CLI scripts or lightweight services to AI systems without spinning up a full runtime.


What It Does

The repo provides two key components:

  1. mcpserver_core.sh: Handles the JSON-RPC 2.0 protocol and MCP compliance.
  2. moviemcpserver.sh: An example implementation with tool functions (e.g., get_movies).

The server dynamically discovers tools via a tool_* function naming convention and validates against a JSON schema (tools_list.json). No HTTP stack, no frameworks—just Bash and jq.


Why It’s Clever

  • Zero Dependencies: Just Bash and jq (which you probably have).
  • Stdio-Based: Works with any host that can pipe JSON to a process (e.g., AI systems calling local tools).
  • Extensible: Add tools by dropping functions into a new Bash script. The example moviemcpserver.sh is just 50 lines of business logic.
  • Config-Driven: Tools and schemas are defined in JSON files, making it easy to modify without touching code.

Try It in 30 Seconds

git clone https://github.com/muthuishere/mcp-server-bash-sdk
cd mcp-server-bash-sdk
chmod +x mcpserver_core.sh moviemcpserver.sh

# Send a test request
echo '{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {"name": "get_movies"},
  "id": 1
}' | ./moviemcpserver.sh

When Would You Use This?

  • AI + Legacy Scripts: Expose existing Bash/CLI tools to an AI agent.
  • Embedded/Low-Resource Environments: Where Python/Node are overkill.
  • Quick Prototyping: Test MCP workflows before committing to a heavier stack.

Final Thoughts

Is this a replacement for a full MCP server? Probably not if you need scalability. But for glue code, local tooling, or niche use cases, it’s refreshingly straightforward. The Bash implementation might raise eyebrows, but sometimes the simplest solution is piping JSON to a script and calling it a day.

If you’ve ever thought “I wish I could just echo JSON at a script,” this is your jam.

Star the repo or fork it to add your own tools.

Back to Projects
Project ID: 1944791910490451979Last updated: July 14, 2025 at 04:11 PM