rag-chatbot-mcp-mvp
Verified Safeby bsuraj23
Overview
A RAG chatbot API that allows users to upload a single PDF document and ask questions based on its content, leveraging Langchain, Pinecone, and OpenAI for intelligent retrieval and question answering.
Installation
python app/main.pyEnvironment Variables
- PINECONE_API_KEY
- OPENAI_API_KEY
- PINECONE_INDEX
Security Notes
The application uses environment variables for sensitive API keys (Pinecone, OpenAI), which is good practice. However, the CORS middleware is configured to allow all origins ('*'), which is generally not recommended for production environments as it can be an information disclosure risk. PDF files are saved to a temporary 'uploads' directory without an explicit cleanup mechanism, which could lead to disk space exhaustion over time. File type and size validation are implemented for uploaded PDFs. No 'eval' or obvious malicious patterns were detected in the provided source code.
Similar Servers
haiku.rag
Opinionated agentic RAG powered by LanceDB, Pydantic AI, and Docling to provide hybrid search, intelligent QA, and multi-agent research over user-provided documents, accessible via CLI, Python API, Web App, TUI, or as an MCP server for AI assistants.
pageindex-mcp
This MCP server acts as a bridge, enabling LLM-native, reasoning-based RAG on documents (local or online PDFs) for MCP-compatible agents like Claude and Cursor, without requiring a vector database locally.
flexible-graphrag
The Flexible GraphRAG MCP Server integrates document processing, knowledge graph building, hybrid search, and AI query capabilities via the Model Context Protocol (MCP) for clients like Claude Desktop and MCP Inspector.
mcp-raganything
Provides a FastAPI REST API and MCP server for Retrieval Augmented Generation (RAG) capabilities, integrating with the RAG-Anything and LightRAG libraries for multi-modal document processing and knowledge graph operations.