GitHub Stars
0
User Rating
Not Rated
Favorites
0
Views
5
Forks
0
Issues
0
README
π§ AI Research Assistant Using LangChain + Streamlit (with a Simple MCP Pattern)
This is a minimal AI-powered research assistant built using:
- LangChain
- OpenAI GPT
- DuckDuckGo Search Tool
- Streamlit for UI
.env
file for API key management
π¦ Features
- π€ Planner Agent β Breaks down high-level tasks into subtasks using GPT
- π Executor Agent β Uses DuckDuckGo to research each subtask
- π§ Model Context Protocol (MCP) β Shared memory for agents
- π₯οΈ Streamlit UI β Clean web interface to trigger and inspect results
π Getting Started
1. Clone & Setup
git clone https://github.com/your-username/ai-research-assistant-mcp.git
cd ai-research-assistant-mcp
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
2. Add Your OpenAI API Key
Create a .env
file in the root of the project:
OPENAI_API_KEY=sk-...
β Your key is already set in
.env
, so no need to export it manually.
3. Run the App
streamlit run ui.py
π Project Structure
ai-research-assistant-mcp/
βββ mcp_context.py # Shared agent memory (MCP)
βββ planner_executor.py # Agent logic (Planner + Executor)
βββ ui.py # Streamlit interface
βββ requirements.txt # Python dependencies
βββ .env # OpenAI API Key (not tracked by Git)
π§ How It Works
Planner Agent:
- Reads
current_task
frommcp_context.py
- Breaks it into subtasks using GPT
- Reads
Executor Agent:
- Searches the web for each subtask
- Stores results in
mcp["agent_memory"]["executor_results"]
Streamlit UI:
- Displays results in real time with a single button click
βοΈ Customize Your Task
Edit the current task in mcp_context.py
:
"current_task": "Research LangChain Agents"
π Future Ideas
- LangGraph or CrewAI integration
- Memory persistence (Redis, FAISS)
- CSV/PDF file ingestion with context-aware planning
- Role-based multi-agent delegation
π License
MIT β free to use, improve, and share.
πββοΈ Author
Viplav Fauzdar β viplavfauzdar.com
Author Information
0
Followers
0
Repositories
0
Gists
0
Total Contributions