- Explore MCP Servers
- weather_distance_app
Weather Distance App
What is Weather Distance App
weather_distance_app is a multi-agent application that provides current weather information for cities worldwide and calculates distances between cities using the Haversine formula.
Use cases
Use cases include querying the weather in a specific city, calculating the distance between two cities, and integrating weather and distance data into travel planning applications.
How to use
To use weather_distance_app, clone the repository, install the required dependencies, set up your OpenWeatherMap API key in a .env file, and run the application using the command ‘python weather_distance_app.py’. You can then query for weather information or distances between cities.
Key features
Key features include obtaining current weather information for cities globally, calculating distances using the Haversine formula, a multi-agent architecture with specialized agents for different tasks, and a coordinator agent that delegates tasks to these specialized agents.
Where to use
weather_distance_app can be used in various fields such as travel and tourism, logistics, and any application requiring real-time weather data and distance calculations between locations.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Weather Distance App
weather_distance_app is a multi-agent application that provides current weather information for cities worldwide and calculates distances between cities using the Haversine formula.
Use cases
Use cases include querying the weather in a specific city, calculating the distance between two cities, and integrating weather and distance data into travel planning applications.
How to use
To use weather_distance_app, clone the repository, install the required dependencies, set up your OpenWeatherMap API key in a .env file, and run the application using the command ‘python weather_distance_app.py’. You can then query for weather information or distances between cities.
Key features
Key features include obtaining current weather information for cities globally, calculating distances using the Haversine formula, a multi-agent architecture with specialized agents for different tasks, and a coordinator agent that delegates tasks to these specialized agents.
Where to use
weather_distance_app can be used in various fields such as travel and tourism, logistics, and any application requiring real-time weather data and distance calculations between locations.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
Weather & Distance Multi-Agent App
A production-ready application built with Strands Agents that provides weather information and calculates distances between cities.
Features
- Get current weather information for cities worldwide
- Calculate distances between cities using the Haversine formula
- Multi-agent architecture with specialized agents for different tasks
- Coordinator agent that delegates tasks to specialized agents
Installation
- Clone the repository
- Install dependencies:
pip install -r requirements.txt - Set up your OpenWeatherMap API key:
- Create a free account at OpenWeatherMap
- Get your API key
- Create a
.envfile based on.env.exampleand add your API key
Usage
Run the application:
python weather_distance_app.py
Example queries:
- “What’s the weather like in London?”
- “How far is Barcelona from Madrid?”
- “What’s the weather in Tokyo and how far is it from New York?”
Configuration
- The application uses environment variables for configuration
- API keys and other sensitive information should be stored in a
.envfile - See
.env.examplefor required variables
Error Handling
The application includes comprehensive error handling for:
- Network errors
- API errors
- City not found errors
- General exceptions
License
MIT
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










