Bash SDK
Yes Mcp server in bash
What is Bash SDK?
Bash SDK is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to yes mcp server in bash
Yes Mcp server in bash
This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- Yes Mcp server in bash
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx bash-sdkConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Bash SDK
The MCP Server Bash SDK is a lightweight, zero-overhead framework for building Model Context Protocol servers entirely in Bash, with no Node.js or Python runtime required. It implements the full JSON-RPC 2.0 protocol over stdio and uses a simple naming convention (tool_ function prefix) combined with JSON configuration files to automatically expose shell functions as MCP tools. Developers who want to wrap existing shell scripts, system utilities, or lightweight APIs as MCP-compatible tools without adding heavy runtime dependencies will find this SDK particularly useful.
Prerequisites
- Bash shell (version 4.0 or later recommended)
- jq installed for JSON processing (brew install jq on macOS, apt install jq on Linux)
- Git to clone the repository
- An MCP-compatible client such as Claude Desktop or Cursor
Clone the repository
Clone the mcp-server-bash-sdk repository to get the core protocol implementation and example movie server.
git clone https://github.com/muthuishere/mcp-server-bash-sdk
cd mcp-server-bash-sdkMake scripts executable
Grant execute permissions to the core server script and the example movie server so they can run as MCP servers.
chmod +x mcpserver_core.sh moviemcpserver.shTest the example server
Verify the SDK works by sending a raw JSON-RPC call to the included example movie server.
echo '{"jsonrpc": "2.0", "method": "tools/call", "params": {"name": "get_movies"}, "id": 1}' | ./moviemcpserver.shCreate your own tool functions
Create a new shell script that sources mcpserver_core.sh and defines functions prefixed with tool_. Each function receives JSON arguments as $1, echoes a result, and returns 0 on success or 1 on error.
#!/bin/bash
MCP_CONFIG_FILE="$(dirname "${BASH_SOURCE[0]}")/assets/myserver_config.json"
MCP_TOOLS_LIST_FILE="$(dirname "${BASH_SOURCE[0]}")/assets/myserver_tools.json"
MCP_LOG_FILE="$(dirname "${BASH_SOURCE[0]}")/logs/myserver.log"
source "$(dirname "${BASH_SOURCE[0]}")/mcpserver_core.sh"
tool_greet() {
local args="$1"
local name=$(echo "$args" | jq -r '.name')
echo "{\"message\": \"Hello, $name!\"}"
return 0
}
run_mcp_server "$@"Create the tools list JSON config
Define the schema for your tools in a JSON file placed in the assets/ directory. The name field must match your tool_ function suffix.
{
"tools": [
{
"name": "greet",
"description": "Greet a person by name",
"inputSchema": {
"type": "object",
"properties": {
"name": {"type": "string", "description": "Name to greet"}
},
"required": ["name"]
}
}
]
}Configure your MCP client to use the server
Add an entry to your MCP client's config file pointing to your new bash server script.
{
"mcpServers": {
"my-bash-server": {
"command": "/bin/bash",
"args": ["/path/to/myserver.sh"]
}
}
}Bash SDK Examples
Client configuration
Claude Desktop config for running the included example movie MCP server.
{
"mcpServers": {
"bash-sdk-example": {
"command": "/bin/bash",
"args": ["/path/to/mcp-server-bash-sdk/moviemcpserver.sh"]
}
}
}Prompts to try
Once connected, interact with tools exposed by your bash MCP server.
- "What movies are available?"
- "Get details about the movie with id 1"
- "Greet the user named Alice" (if you've added a greet tool)
- "Run a disk usage check on /tmp" (if you've wrapped a shell utility)Troubleshooting Bash SDK
jq: command not found error when running the server
Install jq using your package manager: 'brew install jq' on macOS or 'sudo apt install jq' on Debian/Ubuntu. The SDK requires jq for all JSON parsing operations.
Tool function is not discovered by the MCP server
Ensure your function name exactly matches the 'name' field in your tools JSON file, prefixed with 'tool_'. For example, a tool named 'get_weather' must be implemented as a function called 'tool_get_weather'.
MCP client cannot connect or shows permission denied
Make sure your server script has execute permissions: run 'chmod +x yourserver.sh'. Also verify the path in your MCP client config is the absolute path to the script.
Frequently Asked Questions about Bash SDK
What is Bash SDK?
Bash SDK is a Model Context Protocol (MCP) server that yes mcp server in bash It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Bash SDK?
Follow the installation instructions on the Bash SDK GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Bash SDK?
Bash SDK works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Bash SDK free to use?
Yes, Bash SDK is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
Bash SDK Alternatives — Similar Developer Tools Servers
Looking for alternatives to Bash SDK? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
Browse More Developer Tools MCP Servers
Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Bash SDK in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Bash SDK?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.