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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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.17MIT
- FlicenseNot gradedqualityBmaintenanceProvides 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 gradedqualityDmaintenanceStores and searches AI-generated knowledge about software projects, enabling Cursor to access project structures, design patterns, best practices, and technical documentation.
Related MCP Connectors
Search your knowledge bases from any AI assistant using hybrid RAG.
A personal RAG database you build from chat, so AI creates work that sounds like you.
Governed, auditable knowledge your team curates for its AI assistants, self-hostable
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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