Skip to main content
Glama
johnylira

RAG MCP Server

by johnylira

MCP RAG mit Python, LangChain, LangGraph und LlamaIndex

Projekt für einen Model Context Protocol (MCP)-Server zum Indizieren von Dokumenten und Beantworten von Fragen mit RAG (Retrieval-Augmented Generation). Der Server verwendet FastMCP über SSE, LlamaIndex + ChromaDB für die Abfrage, LangGraph für die Orchestrierung und LangChain für die Generierung.

Architektur

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

Schnellstart

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

Der MCP-SSE-Endpunkt befindet sich unter http://localhost:8000/sse.

Dokumente

Um einen lokalen Ordner für den Container verfügbar zu machen, kommentieren Sie das Volume ./docs:/workspace/docs:ro in der docker-compose.yml aus. Rufen Sie dann das Tool mit einem Pfad wie /workspace/docs/manual.md auf.

MCP-Tools

ingest_documents

Indiziert .txt-, .md- und .pdf-Dateien.

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

ask_rag

Ruft die relevantesten Textabschnitte ab und antwortet mit Referenzen [S1], [S2].

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

Umgebungsvariablen

Variable

Verwendung

OPENAI_API_KEY

API-Schlüssel für OpenAI-kompatible APIs

OPENAI_MODEL

LangChain-Generierungsmodell

OPENAI_EMBEDDING_MODEL

LlamaIndex-Embedding-Modell

OPENAI_BASE_URL

Optionale Basis-URL für kompatiblen Endpunkt

RAG_DATA_DIR

Persistenter ChromaDB-Ordner

RAG_COLLECTION

Name der Vektorsammlung

RAG_CHUNK_SIZE

Größe der indizierten Textabschnitte

RAG_CHUNK_OVERLAP

Überlappung zwischen Textabschnitten

Sicherheit

Setzen Sie SSE nicht ohne TLS und Authentifizierung öffentlich ein. Mounten Sie nur autorisierte Dokumentverzeichnisse, da das Ingestions-Tool die angegebenen Pfade liest.

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