RAG MCP server
RAG-MCP サーバー
RISC Zero の Bonsai ドキュメントを使用してテストできるように設計された、モデル制御プロトコル (MCP) を使用する汎用 Retrieval-Augmented Generation (RAG) サーバー。
概要
このプロジェクトでは、次の機能を備えた RAG サーバーを実装します。
標準化された通信にMCP(モデル制御プロトコル)を使用する
ドキュメントクエリ用のRAG(検索拡張生成)ワークフローを実装します
RISC ZeroのBonsaiドキュメントでテスト可能
Ollama によるローカル LLM 統合をサポート
Related MCP server: linkup-mcp
特徴
ドキュメントの取り込みとインデックス作成
セマンティック検索機能
ローカルLLM統合
MCPプロトコル準拠
RISC Zero Bonsai ドキュメントサポート
前提条件
Python 3.12以上
Ollama(ローカルLLMサポート用)
詩(依存関係の管理用)
インストール
Python の依存関係をインストールします。
poetry installOllama をインストールして起動します。
# Install Ollama
brew install ollama # for macOS
# or
curl -fsSL https://ollama.com/install.sh | sh # for Linux
# Start Ollama service
ollama serve必要なモデルをプルします。
ollama pull llama2使用法
MCP サーバーを起動します。
poetry run python mcp_server.pyサーバーは次のことを行います。
LLMと埋め込みモデルを初期化する
データディレクトリからドキュメントを取り込む
RAGワークフローを使用してクエリを処理する
RISC Zero Bonsai ドキュメントでテストします。
RISC Zero Bonsaiのドキュメントを
data/ディレクトリに置くBonsaiの機能と実装についてサーバーに問い合わせる
プロジェクト構造
mcp_server.py: メインサーバーの実装rag.py: RAG ワークフロー実装data/: ドキュメント取り込み用のディレクトリstorage/: ベクトルストアとドキュメントストレージstart_ollama.sh: Ollama サービスを起動するスクリプト
RISC Zero Bonsaiを使ったテスト
サーバーはRISC ZeroのBonsaiドキュメントと連携するように設定されています。以下のことが可能です。
Bonsaiドキュメントを
data/ディレクトリに追加するBonsaiの機能、実装の詳細、使用方法に関する問い合わせ
Bonsai特有の質問でRAGワークフローをテストする
proofofsidが ❤️ を込めて作りました
This server cannot be deployed
Maintenance
Related MCP Connectors
Ingest, manage, and retrieve documents for RAG-powered AI applications
Search your knowledge bases from any AI assistant using hybrid RAG.
Connect Claude, Cursor, or ChatGPT to your business data. Ask questions, get answers.
Shared memory for AI coding agents. Save once, reuse from Cursor, Claude Code, Codex.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI coding assistants to search and retrieve information from a locally ingested knowledge base using hybrid search, grounded in user-curated documentation.16MIT
- FlicenseNot gradedqualityDmaintenanceProvides web search and local document RAG using Ollama, enabling privacy-preserving AI assistance in Cursor IDE.-
- FlicenseNot gradedqualityDmaintenanceEnables semantic code search across codebases using AI embeddings and vector similarity, integrated with Claude Desktop and Cursor.-
- FlicenseNot gradedqualityCmaintenanceStores and searches AI-generated knowledge about software projects, enabling Cursor to access project structures, design patterns, best practices, and technical documentation.-