Skip to main content
Glama

✈️ AI Travel Planner MCP

An AI-powered Travel Planning Assistant built using FastMCP, LangGraph, LangChain, FastAPI, and NiceGUI.

This project was created while exploring Model Context Protocol (MCP), Agentic AI, and LangGraph workflows through a practical real-world use case.

The application helps users plan trips by fetching live weather information, generating packing suggestions, and providing AI-powered travel recommendations based on their destination and budget.


πŸš€ Features

  • 🌍 Destination-based travel planning

  • 🌀 Real-time weather information

  • πŸŽ’ Smart packing recommendations

  • πŸ€– AI-powered travel suggestions

  • πŸ”— MCP Tool Integration

  • 🧠 LangGraph Agent Workflow

  • ⚑ FastAPI Backend

  • 🎨 Modern NiceGUI Interface

  • πŸŒ™ Dark Mode Support


Related MCP server: Travel MCP

πŸ—οΈ Architecture

User Input
     β”‚
     β–Ό
NiceGUI Interface
     β”‚
     β–Ό
FastAPI Backend
     β”‚
     β–Ό
LangGraph Workflow
     β”‚
 β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
 β”‚ Weather Agent β”‚
 β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜
         β”‚
 β”Œβ”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”
 β”‚ Packing Agent β”‚
 β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜
         β”‚
 β”Œβ”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
 β”‚ Travel Advisor   β”‚
 β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
         β”‚
 β”Œβ”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
 β”‚ Final Report     β”‚
 β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
         β”‚
         β–Ό
Travel Recommendation

🧠 MCP Tools

Location Tool

Uses OpenStreetMap's Nominatim API to retrieve geographical coordinates from a destination name.

Weather Tool

Uses Open-Meteo API to fetch real-time weather information.

Packing Tool

Generates packing suggestions based on weather conditions.


πŸ› οΈ Tech Stack

AI & Agents

  • LangChain

  • LangGraph

  • FastMCP

  • Groq LLM

Backend

  • FastAPI

  • Python

Frontend

  • NiceGUI

APIs

  • Open-Meteo API

  • OpenStreetMap Nominatim API


πŸ“‚ Project Structure

travel-planner-mcp/

β”œβ”€β”€ app.py
β”œβ”€β”€ graph.py
β”œβ”€β”€ state.py
β”‚
β”œβ”€β”€ agents/
β”‚   β”œβ”€β”€ weather_agent.py
β”‚   β”œβ”€β”€ packing_agent.py
β”‚   β”œβ”€β”€ travel_advisor_agent.py
β”‚   └── final_report_agent.py
β”‚
β”œβ”€β”€ tools/
β”‚   β”œβ”€β”€ weather_tool.py
β”‚   β”œβ”€β”€ location_tool.py
β”‚   └── packing_tool.py
β”‚
β”œβ”€β”€ mcp/
β”‚   └── mcp_server.py
β”‚
β”œβ”€β”€ ui/
β”‚   └── ui.py
β”‚
β”œβ”€β”€ .env
β”œβ”€β”€ requirements.txt
└── README.md

βš™οΈ Installation

Clone Repository

git clone <YOUR_REPOSITORY_URL>
cd travel-planner-mcp

Create Virtual Environment

python -m venv .venv

Activate Environment

Windows:

.venv\Scripts\activate

Linux/macOS:

source .venv/bin/activate

Install Dependencies

pip install -r requirements.txt

πŸ”‘ Environment Variables

Create a .env file in the root directory.

GROQ_API_KEY=YOUR_GROQ_API_KEY

▢️ Running the Application

Start FastAPI

uvicorn app:app --reload

Swagger Documentation:

http://127.0.0.1:8000/docs

Start MCP Server

python mcp/mcp_server.py

Start NiceGUI

python ui/ui.py

Application URL:

http://localhost:8080

πŸ“Έ Example Request

{
  "city": "Ooty",
  "budget": "Medium"
}

πŸ“Έ Example Response

{
  "weather": {
    "temperature": 18,
    "windspeed": 12
  },
  "packing_list": [
    "Jacket",
    "Water Bottle",
    "Comfortable Shoes"
  ],
  "recommendation": "Good weather for sightseeing and outdoor activities."
}

πŸ“š What I Learned

This project helped me gain hands-on experience with:

  • Model Context Protocol (MCP)

  • FastMCP Tool Development

  • LangGraph State Management

  • Agent-Based Workflows

  • LLM Tool Calling

  • FastAPI Development

  • API Integrations

  • NiceGUI Dashboard Development


πŸš€ Future Improvements

  • Hotel Recommendation Agent

  • Restaurant Recommendation Agent

  • Multi-Day Trip Planning

  • Budget Estimation

  • Google Maps Integration

  • Travel Itinerary Generator

  • PDF Export

  • Multi-Agent Collaboration


πŸ‘¨β€πŸ’» Author

Shyam Sundhar

Computer Science Engineering (AI & ML)

Passionate about:

  • Artificial Intelligence

  • Machine Learning

  • Generative AI

  • Agentic AI

  • Mobile App Development

  • Full Stack Development

πŸ”— LinkedIn: https://www.linkedin.com/in/shyamgsundhar/

πŸ’» GitHub: https://github.com/shyamgsundhar


⭐ Support

If you found this project useful or interesting, consider giving it a ⭐ on GitHub.

Feedback, suggestions, and contributions are always welcome!

F
license - not found
-
quality - not tested
C
maintenance

Maintenance

–Maintainers
–Response time
–Release cycle
–Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Read and update your Everway trips and itineraries from any MCP-compatible AI assistant.

  • Create immersive travel experiences by instructing an avatar to navigate Google Maps. Report on th…

  • AI marketplace β€” flights, tours, activities, transport & more via MCP. No auth required.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/shyamgsundhar/shyamgsundhar-MCP-Travel-Ai-Agent'

If you have feedback or need assistance with the MCP directory API, please join our Discord server