This MCP server implements a Retrieval-Augmented Generation (RAG) system for documents stored in a local directory, enabling AI assistants to query and interact with Git repositories and text files. Built with TypeScript and leveraging LlamaIndex with Google's Gemini embeddings, it provides tools for listing documents, performing RAG queries against document collections, and adding new content through Git repository cloning or text file downloads. The server requires a Gemini API key for document indexing and querying, and is designed for integration with Claude Desktop, making it ideal for users who need to reference and analyze documentation, code repositories, or text collections during conversations with AI assistants.
List all available documents in the DOCS_PATH directory. Returns a formatted list of all documents and shows the total number of available documents.
Query documents using RAG. Takes document_id and query as parameters and returns AI-generated responses with context from documents.
Clone a Git repository to the docs directory with optional sparse checkout. Takes repository_url as parameter, with optional document_name for customizing the name and optional subdirectory for sparse checkout.
Download a text file to the docs directory. Takes file_url as parameter and uses wget to download the file.
No reviews yet. Be the first to review!
Sign in to join the conversation
Our bundler currently only supports TypeScript-based servers. Check back soon!