# llm-functions

> MCP Server

This repository enables building LLM tools and agents using Bash, JavaScript, and Python, leveraging function calling to connect LLMs to custom code for tasks like system commands and API interactions.

## Overview

- **Category:** AI
- **Language:** Shell
- **Stars:** 766
- **Forks:** 69
- **Owner:** sigoden
- **GitHub:** https://github.com/sigoden/llm-functions
- **Created:** 2024-05-16T00:46:23+00:00
- **Updated:** 2025-03-28T23:53:55+00:00
- **Source:** https://model-context-protocol.com/servers/llm-tools-agents-bash-javascript-python

## Setup

## Setup

1.  Make sure you have [argc](https://github.com/sigoden/argc) and [jq](https://github.com/jqlang/jq) installed.
2.  Clone the repository: `git clone https://github.com/sigoden/llm-functions && cd llm-functions`.
3.  Create a `./tools.txt` file with each tool filename on a new line.
4.  Create a `./agents.txt` file with each agent name on a new line.
5.  Build `bin` and `functions.json`: `argc build`.
6.  Ensure that everything is ready: `argc check`.
7.  Link LLM-functions to AIChat by symlinking the repository directory to AIChat's **functions_dir** or by setting the `AICHAT_FUNCTIONS_DIR` environment variable.
8.  Start using the functions with AIChat.

## Tools

## Available Tools

1.  **LLM Tools and Agents:** Build powerful LLM tools and agents using Bash, JavaScript, and Python.
2.  **Function Calling:** Connect LLMs directly to custom code using function calling.
3.  **Bash Tool Creation:** Create tools using bashscripts with comment-based JSON declaration generation.
4.  **JavaScript Tool Creation:** Create tools using JavaScript with comment-based JSON declaration generation.
5.  **Python Tool Creation:** Create tools using Python with comment-based JSON declaration generation.
6.  **Agent Creation:** Create agents using Prompt + Tools (Function Calling) + Documents (RAG).
7.  **MCP (Model Context Protocol):** Use LLM-Functions tools/agents through the Model Context Protocol and let external MCP tools be used by LLM-Functions.
