MCP Agent Streamlit RAG logo

MCP Agent Streamlit RAG

by saqadri

This repository provides a Streamlit-based RAG (Retrieval Augmented Generation) agent for interacting with MCP (presumably a server or service). It includes instructions for both fetch/finder MCP servers and QDrant for RAG.

View on GitHub

Last updated: N/A

What is MCP Agent Streamlit RAG?

This is a Streamlit application that acts as a RAG agent, using either a fetch/finder MCP server or QDrant for retrieval, allowing users to interact with data and generate responses based on retrieved information.

How to use MCP Agent Streamlit RAG?

  1. Configure the mcp_agent.secrets.yaml file with your OpenAI API key.
  2. Install dependencies using uv sync.
  3. Run the streamlit app using uv run streamlit run main.py. For QDrant, uncomment lines 63-70 and comment out the instruction and server_names. Run QDrant using Docker with docker pull qdrant/qdrant and docker run -p 6333:6333 -v $(pwd)/qdrant_storage:/qdrant/storage qdrant/qdrant.

Key features of MCP Agent Streamlit RAG

  • Streamlit UI

  • RAG implementation

  • MCP server integration

  • QDrant integration

  • Configurable API key

Use cases of MCP Agent Streamlit RAG

  • Question answering system

  • Data retrieval and summarization

  • Integrating external data sources

  • Building a custom chatbot

  • RAG systems for interacting with document stores

FAQ from MCP Agent Streamlit RAG

What is an OpenAI API Key?

The OpenAI API Key is a secret key used for authentication that allows you to connect and communicate with OpenAI services in your application.

Why do I need to copy mcp_agent.secrets.yaml.example?

By creating this copy, you can update and configure your server with your personal credentials and API key.

What is QDrant?

QDrant is a vector similarity search engine.

Why do I need Docker installed?

To run the QDrant vector database, which is required when using the QDrant option for RAG.

What is uv?

uv is likely a tool used for managing dependencies and running the Streamlit application, however, I do not have explicit details about it.