Bash SDK

v1.0.0Developer Toolsstable

Yes Mcp server in bash

bash-sdkmcpai-integration
Share:
508
Stars
0
Downloads
0
Weekly
0/5

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

Build MCP servers using bash scripting.
muthuishere

Maintainer

LicenseMIT
Languageshell
Versionv1.0.0
UpdatedMay 22, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx bash-sdk

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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
1

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-sdk
2

Make 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.sh
3

Test 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.sh
4

Create 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 "$@"
5

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"]
      }
    }
  ]
}
6

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.

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.

Quick Config Preview

{ "mcpServers": { "bash-sdk": { "command": "npx", "args": ["-y", "bash-sdk"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides