mcp-server-bash logo

mcp-server-bash

by antonum

Minimalistic MCP server written in shell script. It implements the Model Context Protocol (MCP) for interacting with tools, such as adding two numbers.

View on GitHub

Last updated: N/A

What is mcp-server-bash?

This is a minimalistic MCP (Model Context Protocol) server implemented in bash script. It allows LLMs to call external tools through a standardized interface.

How to use mcp-server-bash?

The server can be tested directly from the command line using echo and bash mcp_add.sh. It can also be integrated with LLM hosts like mcphost by providing a JSON configuration file that specifies the command to execute the script. The script needs execute permissions (chmod +x mcp_add.sh).

Key features of mcp-server-bash

  • Implements MCP protocol

  • Simple bash script implementation

  • Supports tool listing and calling

  • Easy to integrate with LLM hosts

  • Example tool for adding two numbers

Use cases of mcp-server-bash

  • Enabling LLMs to perform mathematical calculations

  • Integrating external tools with LLMs

  • Creating custom tool calling interfaces for LLMs

  • Testing and experimenting with MCP

  • Extending LLM capabilities with custom functions

FAQ from mcp-server-bash

What is MCP?

MCP stands for Model Context Protocol, a standard for LLMs to interact with external tools.

What is mcphost?

mcphost is a tool that allows you to host LLMs and integrate them with MCP servers.

How do I test the server?

You can test the server from the command line using echo and bash mcp_add.sh.

What tools are supported?

The example implements an 'addition' tool. You can extend the script to support other tools.

What is the purpose of the JSON configuration file?

The JSON configuration file is used by LLM hosts like mcphost to configure the MCP server and specify the command to execute the script.