
RAG MCP server
Implements a RAG workflow that integrates with any custom knowledge base and can be triggered directly from the Cursor IDE.
README
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
- Install Python dependencies:
poetry install
- 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
- Pull the required model:
ollama pull llama2
Usage
- Start the MCP server:
poetry run python mcp_server.py
-
The server will:
- Initialize the LLM and embedding model
- Ingest documents from the data directory
- Process queries using the RAG workflow
-
Test with RISC Zero Bonsai docs:
- Place RISC Zero Bonsai documentation in the
data/
directory - Query the server about Bonsai features and implementation
- Place RISC Zero Bonsai documentation in the
Project Structure
mcp_server.py
: Main server implementationrag.py
: RAG workflow implementationdata/
: Directory for document ingestionstorage/
: Vector store and document storagestart_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:
- Add Bonsai documentation to the
data/
directory - Query about Bonsai features, implementation details, and usage
- Test the RAG workflow with Bonsai-specific questions
Made with ❤️ by proofofsid
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.