Skip to main content
Glama
johnylira

RAG MCP Server

by johnylira

Python、LangChain、LangGraph、LlamaIndex による MCP RAG

ドキュメントをインデックス化し、RAG(Retrieval-Augmented Generation)で質問に回答する Model Context Protocol (MCP) サーバープロジェクト。このサーバーは、SSE 経由の FastMCP、検索用の LlamaIndex + ChromaDB、オーケストレーション用の LangGraph、生成用の LangChain を使用します。

アーキテクチャ

Cliente MCP -> SSE (/sse) -> FastMCP
                           -> ingest_documents(paths)
                           -> ask_rag(question)
                                  -> LangGraph
                                     -> recuperar contexto (LlamaIndex/Chroma)
                                     -> gerar resposta (LangChain/OpenAI)
                                     -> validar citações

Related MCP server: Antigravity PDF MCP Server

クイックスタート

cp .env.example .env
# Edite .env e informe OPENAI_API_KEY
docker compose up --build

MCP SSE エンドポイントは http://localhost:8000/sse にあります。

ドキュメント

ローカルフォルダをコンテナで利用できるようにするには、docker-compose.yml のボリューム ./docs:/workspace/docs:ro のコメントを解除します。次に、/workspace/docs/manual.md のようなパスでツールを呼び出します。

MCP ツール

ingest_documents

.txt.md.pdf ファイルをインデックス化します。

{"paths": ["/workspace/docs/manual.md"]}

ask_rag

最も関連性の高い断片を取得し、[S1][S2] の参照付きで回答します。

{"question": "Quais são os procedimentos de backup?", "top_k": 5}

環境変数

変数

用途

OPENAI_API_KEY

OpenAI 互換 API キー

OPENAI_MODEL

LangChain 生成モデル

OPENAI_EMBEDDING_MODEL

LlamaIndex 埋め込みモデル

OPENAI_BASE_URL

互換エンドポイントのオプションのベース URL

RAG_DATA_DIR

ChromaDB の永続ディレクトリ

RAG_COLLECTION

ベクターコレクション名

RAG_CHUNK_SIZE

インデックス化された断片のサイズ

RAG_CHUNK_OVERLAP

断片間のオーバーラップ

セキュリティ

TLS と認証なしで SSE を公開しないでください。インジェストツールは指定されたパスを読み取るため、許可されたドキュメントディレクトリのみをマウントしてください。

F
license - not found
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables RAG (Retrieval-Augmented Generation) capabilities with document processing, vector storage, and intelligent Q\&A using OpenAI embeddings and semantic search.
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables uploading, organizing, and semantically searching documents with support for various file types and embedding providers.
    27
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables document Q&A with grounded citations using the official Gemini File Search API. Upload documents, create stores, and ask questions that return exact passage citations.
    16
    2
    MIT

View all related MCP servers

Related MCP Connectors

  • Your company's brain for AI agents. Cited, permission-aware knowledge across every system.

  • Citable retrieval across papers, books, patents, Wikipedia, and live social sources.

  • Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.

View all MCP Connectors

Latest Blog Posts

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/johnylira/servidor_mcp_completo_python'

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