research-assistant
Enables AI-powered research by breaking a topic into subtopics, gathering information via agents, and compiling a report. Integrates with LangGraph and RAG for orchestration and contextual retrieval.
README
AI Research Assistant using LangChain, LangGraph, LangSmith, RAG and MCP (Model Context Protocol)
Project Description
A research assistant that breaks a topic into subtopics, assigns research to agents, summarizes findings, and compiles a report.
Features
- Graph-based agent orchestration with LangGraph
- Reproducible tracing with LangSmith
- Modular agent design for research tasks
- Planner Agent: Breaks the topic into subtopics.
- Researcher Agent: Gathers info for each subtopic.
- Summarizer Agent: Summarizes and organizes into a report.
- Cache agent responses using SQLite
- Contextual document retrieval using RAG and ChromaDB
- Prompt & context management using MCP
Project Structure
.
├── agents/ # LLM agents (e.g. researcher, reviewer)
├── config/ # Configurations
├── db/ # SQLite store
├── graphs/ # LangGraph workflow
├── mcp/ # Model Context Protocol (MCP) implementation
├── nodes/ # LangGraph nodes
│ └── conditions # nodes conditions
├── rag/ # RAG (retrieval-augmented generation) logic
├── state/ # Shared state classes for LangGraph workflows
├── tests/ # LangGraph test
├── .env.example # Sample environment variables
├── .gitignore
├── Makefile # Task runner
├── requirements.txt # Python dependencies
└── README.md
Requirements
- Python=3.11.11
- Virtual environment (recommended)
make(optional)
To run the project
Step 1:
Create and activate a virtual environment (recommended)
python -m venv .venv
source .venv/bin/activate
# On Windows: .venv\Scripts\activate
Step 2:
Option 1: Using Makefile
make setup
Option 2: Without Makefile
pip install -r requirements.txt
Step 3:
Copy the .env.example file and rename the file to .env
Step 4:
Add API keys to .env.
| Key | Description | Link to Get Key |
|---|---|---|
TOGETHER_API_KEY |
Used for Together AI model access | together |
LANGCHAIN_API_KEY |
Used for LangSmith tracing/debugging | langsmith |
SEARCHAPI_API_KEY |
Used for search results in RAG | searchapi |
Usage
Step 1:
To run the MCP development server
Option 1: Using Makefile
make run-mcp
Option 2: Without Makefile
mcp dev mcp/server.py
Step 2:
- Visit
http://localhost:5173to the browser. - Change the Command to
python - Change Arguments to
mcp/server.py - Click to Connect and wait for connection
- After establishing the connection, click Tools -> List Tools -> research
- Then write the research topic and Run Tool
To Test Graph Workflow
make test-graph # with make
python tests/test_graph.py # without make
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.