Related MCP Server Resources

Explore more AI models, providers, and integration options:

  • Explore AI Models
  • Explore AI Providers
  • Explore MCP Servers
  • LangDB Pricing
  • Documentation
  • AI Industry Blog
  • doc-lib-mcp
  • TxtAi Memory Vector Server
  • AWS Knowledge Base Retrieval MCP Server
  • Powertools MCP Search Server
  • GraphRAG MCP Server
Back to MCP Servers
RAG MCP server

RAG MCP server

Public
proofofsid/rag-mcp

A Model Context Protocol (MCP) server enabling Retrieval-Augmented Generation with document ingestion, semantic search, local LLM integration via Ollama, and compatibility with RISC Zero's Bonsai documentation for advanced query processing.

python
0 tools
May 30, 2025
Updated Jun 4, 2025

Supercharge Your AI with RAG MCP server

MCP Server

Unlock the full potential of RAG MCP server through LangDB's AI Gateway. Get enterprise-grade security, analytics, and seamless integration with zero configuration.

Unified API Access
Complete Tracing
Instant Setup
Get Started Now

Free tier available • No credit card required

Instant Setup
99.9% Uptime
10,000+Monthly Requests

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

Publicly Shared Threads0

Discover shared experiences

Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!

Share your threads to help others
Related MCPs5
  • doc-lib-mcp
    doc-lib-mcp

    Model Context Protocol server enabling document ingestion, chunking, semantic search, and advanced n...

    Added May 30, 2025
  • TxtAi Memory Vector Server
    TxtAi Memory Vector Server

    Model Context Protocol server offering advanced semantic search, persistent memory management, tag-b...

    Added May 30, 2025
  • AWS Knowledge Base Retrieval MCP Server
    AWS Knowledge Base Retrieval MCP Server

    Retrieval-Augmented Generation (RAG) server enabling efficient extraction of contextual information ...

    Added May 30, 2025
  • Powertools MCP Search Server
    Powertools MCP Search Server

    Model Context Protocol server enabling efficient local search of AWS Lambda Powertools documentation...

    2 tools
    Added May 30, 2025
  • GraphRAG MCP Server
    GraphRAG MCP Server

    Model Context Protocol server enabling hybrid semantic and graph-based document retrieval by integra...

    Added May 30, 2025