How deveshksrivastava/ai-travel-planning-system works
This is a LangGraph travel-planning application with CLI and Streamlit entry points, a sequential flight-to-hotel-to-itinerary-to-response workflow, and PostgreSQL checkpointing. It also exposes separate flight, hotel, and trip-brief tools through an MCP server. The README documents the workflow and integrations; excerpts show the main graph, search tools, MCP server, and part of the Streamlit UI. Unexcerpted UI behavior is represented only where documentation or shown code supports it.
Main entry points: main.py LangGraph app · travel_mcp.py MCP server tools · frontend.py Streamlit app · flight_tool.py Flight search
Components 17
User interfaces
- CLI entry
main.py - Streamlit app
frontend.py
Trip workflow
- LangGraph app
main.py - Travel state
main.py - Flight agent
main.py - Hotel agent
main.py - Itinerary agent
main.py - Final agent
main.py
Search and reasoning
- Flight search
tools/flight_tool.py - Hotel search
tools/tavily_tool.py - AviationStack
- Tavily API
- Groq LLM
Memory and MCP
- PostgreSQL
- MCP server tools
mcp_server/travel_mcp.py
Other components
- Traveler
- MCP client
Connections 20
- Traveler → CLI entry: enters request
README.md - Traveler → Streamlit app: enters request
README.md - CLI entry → LangGraph app: invokes
main.py - Streamlit app → LangGraph app: imports app
frontend.py - LangGraph app → Flight agent: dispatches first
main.py - LangGraph app → Hotel agent: dispatches next
main.py - LangGraph app → Itinerary agent: dispatches next
main.py - LangGraph app → Final agent: dispatches last
main.py - LangGraph app → Travel state: reads and updates
main.py - Flight agent → Flight search: searches flights
main.py - Flight search → AviationStack: requests flight data
tools/flight_tool.py - Hotel agent → Hotel search: searches hotels
main.py - Hotel search → Tavily API: requests results
tools/tavily_tool.py - Itinerary agent → Groq LLM: generates itinerary
main.py - Final agent → Groq LLM: generates response
main.py - LangGraph app → PostgreSQL: checkpoints state
main.py - LangGraph app → Streamlit app: streams agent updates
frontend.py - MCP client → MCP server tools: calls tools
mcp_server/travel_mcp.py - MCP server tools → AviationStack: searches flights
mcp_server/travel_mcp.py - MCP server tools → Tavily API: searches hotels
mcp_server/travel_mcp.py