MCP RAG Server

by sylphlab

373 downloads
Not rated
GitHub

About

# MCP RAG Server <!-- Badges --> [![NPM Version](https://img.shields.io/npm/v/@sylphlab/mcp-rag-server.svg)](https://www.npmjs.com/package/@sylphlab/mcp-rag-server) [![License](https://img.shields.io/npm/l/@sylphlab/mcp-rag-server.svg)](LICENSE) [![CI…

Details

Author
sylphlab
Downloads
373
Categories
Knowledge Base

- Automatic indexing of project files on startup (configurable)
- Supports .txt, .md, code files, .json, .jsonl, .csv
- Hierarchical chunking for Markdown (text and code blocks separated)
- Uses ChromaDB for persistent vector storage
- Local embeddings via Ollama (default: nomic-embed-text)
- Exposes all RAG functions as standard MCP tools

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name MCP RAG Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

The recommended setup uses Docker Compose: clone the repository, run docker-compose up -d --build, then pull the default embedding model with docker exec ollama ollama pull nomic-embed-text. Configure environment variables (e.g., CHROMA_URL, OLLAMA_HOST, INDEX_PROJECT_ON_STARTUP) in the docker-compose.yml file. The server exposes five MCP tools (indexDocuments, queryDocuments, removeDocument, removeAllDocuments, listDocuments) for integration with any MCP client.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "mcp rag server": {
            "rag-server-mcp-sylphlab": {
                "command": "docker",
                "args": [
                    "exec",
                    "ollama",
                    "ollama",
                    "pull",
                    "nomic-embed-text"
                ]
            }
        }
    }
}

McpServers

{
    "rag-server-mcp-sylphlab": {
        "command": "docker",
        "args": [
            "exec",
            "ollama",
            "ollama",
            "pull",
            "nomic-embed-text"
        ]
    }
}

MCP RAG Server

<!-- Badges -->

NPM Version
License
CI Status

<!-- Coverage Status --> <!-- TODO: Add coverage badge once setup -->

mcp-rag-server is a Model Context Protocol (MCP) server that enables Retrieval Augmented Generation (RAG) capabilities for connected LLMs. It indexes documents from your project and provides relevant context to enhance LLM responses.

Built with Google Genkit, ChromaDB, and Ollama.

Quick Start

(Provide a minimal runnable example here, assuming Docker setup is complete)

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.