Skip to main content
Glama

RAG MCP server

by proofofsid

RAG-MCP Server

A general-purpose Retrieval-Augmented Generation (RAG) server using the Model Control Protocol (MCP), designed to be tested with RISC Zero's Bonsai documentation.

Overview

This project implements a RAG server that:

  • Uses MCP (Model Control Protocol) for standardized communication
  • Implements RAG (Retrieval-Augmented Generation) workflow for document querying
  • Can be tested with RISC Zero's Bonsai documentation
  • Supports local LLM integration through Ollama

Features

  • Document ingestion and indexing
  • Semantic search capabilities
  • Local LLM integration
  • MCP protocol compliance
  • RISC Zero Bonsai documentation support

Prerequisites

  • Python 3.12+
  • Ollama (for local LLM support)
  • Poetry (for dependency management)

Installation

  1. Install Python dependencies:
poetry install
  1. Install and start Ollama:
# Install Ollama brew install ollama # for macOS # or curl -fsSL https://ollama.com/install.sh | sh # for Linux # Start Ollama service ollama serve
  1. Pull the required model:
ollama pull llama2

Usage

  1. Start the MCP server:
poetry run python mcp_server.py
  1. The server will:
    • Initialize the LLM and embedding model
    • Ingest documents from the data directory
    • Process queries using the RAG workflow
  2. Test with RISC Zero Bonsai docs:
    • Place RISC Zero Bonsai documentation in the data/ directory
    • Query the server about Bonsai features and implementation

Project Structure

  • mcp_server.py: Main server implementation
  • rag.py: RAG workflow implementation
  • data/: Directory for document ingestion
  • storage/: Vector store and document storage
  • start_ollama.sh: Script to start Ollama service

Testing with RISC Zero Bonsai

The server is configured to work with RISC Zero's Bonsai documentation. You can:

  1. Add Bonsai documentation to the data/ directory
  2. Query about Bonsai features, implementation details, and usage
  3. Test the RAG workflow with Bonsai-specific questions

Made with ❤️ by proofofsid

-
security - not tested
F
license - not found
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

모든 사용자 정의 지식 기반과 통합되고 Cursor IDE에서 직접 트리거될 수 있는 RAG 워크플로를 구현합니다.

  1. 개요
    1. 특징
      1. 필수 조건
        1. 설치
          1. 용법
            1. 프로젝트 구조
              1. RISC Zero Bonsai로 테스트
                1. proofofsid 가 ❤️로 만들었습니다

                  Related MCP Servers

                  • -
                    security
                    A
                    license
                    -
                    quality
                    A collection of Laravel helper tools for integration with Cursor IDE, providing features like log viewing, error searching, artisan command execution, and model information display directly within the editor.
                    Last updated -
                    12
                    MIT License
                  • -
                    security
                    F
                    license
                    -
                    quality
                    This server enables AI assistants (CLINE, Cursor, Windsurf, Claude Desktop) to share a common knowledge base through Retrieval Augmented Generation (RAG), providing consistent information access across multiple tools.
                    Last updated -
                    4
                    • Apple
                  • -
                    security
                    F
                    license
                    -
                    quality
                    Implements a MANUS-inspired development workflow for RBAC dashboard applications with browser automation capabilities, designed to be accessed by Cursor IDE's MCP integration.
                    Last updated -
                    • Linux
                    • Apple
                  • -
                    security
                    F
                    license
                    -
                    quality
                    Managed Code Plugin for Cursor IDE providing integration with Atlassian products (JIRA, Confluence, BitBucket), enabling developers to search for tasks, create new issues, view documentation, and manage code repositories directly from the IDE.
                    Last updated -

                  View all related MCP servers

                  MCP directory API

                  We provide all the information about MCP servers via our MCP API.

                  curl -X GET 'https://glama.ai/api/mcp/v1/servers/proofofsid/rag-mcp'

                  If you have feedback or need assistance with the MCP directory API, please join our Discord server