RAG MCP Server
MCP RAG с Python, LangChain, LangGraph и LlamaIndex
Проект сервера Model Context Protocol (MCP) для индексации документов и ответов на вопросы с помощью RAG (Retrieval-Augmented Generation). Сервер использует FastMCP через SSE, 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çõesRelated 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.
Документы
Чтобы сделать локальную папку доступной контейнеру, раскомментируйте том ./docs:/workspace/docs:ro в docker-compose.yml. Затем вызовите инструмент с путём, например /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}Переменные окружения
Переменная | Использование |
| Ключ API, совместимый с OpenAI |
| Модель генерации LangChain |
| Модель эмбеддингов LlamaIndex |
| Необязательный базовый URL совместимой конечной точки |
| Постоянный каталог ChromaDB |
| Имя векторной коллекции |
| Размер индексируемых фрагментов |
| Перекрытие между фрагментами |
Безопасность
Не открывайте SSE публично без TLS и аутентификации. Монтируйте только каталоги с разрешёнными документами, так как инструмент приёма читает указанные пути.
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
- FlicenseNot gradedqualityDmaintenanceEnables RAG (Retrieval-Augmented Generation) capabilities with document processing, vector storage, and intelligent Q\&A using OpenAI embeddings and semantic search.
- FlicenseNot gradedqualityDmaintenanceEnables intelligent ingestion and querying of PDF, Markdown, and text files using hybrid search that combines keyword matching and semantic embeddings with citations.2
- AlicenseNot gradedqualityDmaintenanceEnables uploading, organizing, and semantically searching documents with support for various file types and embedding providers.27MIT
- AlicenseNot gradedqualityDmaintenanceEnables 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.162MIT
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.
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/johnylira/servidor_mcp_completo_python'
If you have feedback or need assistance with the MCP directory API, please join our Discord server