MCPInstall
weather_distance_app logo

weather_distance_app

by anespo 1 stars anespo/weather_distance_app

Weather Distance App 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

READMEmain

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

  1. Clone the repository
  2. Install dependencies:
    pip install -r requirements.txt
    
  3. Set up your OpenWeatherMap API key:
    • Create a free account at OpenWeatherMap
    • Get your API key
    • Create a .env file based on .env.example and 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 .env file
  • See .env.example for required variables

Error Handling

The application includes comprehensive error handling for:

  • Network errors
  • API errors
  • City not found errors
  • General exceptions

License

MIT

More Location Services MCP servers

Similar servers from the same category.

Baidu Map

baidu-maps

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。关于MCP协议,详见MCP官方文档。 目前提供的MCP工具列表包含8个核心API接口和MCP协议的对接, 涵盖逆地理编码、地点检索、路线规划等。 依赖MCP Python SDK和MCP Typescript SDK开发,任意支持MCP协议的智能体助手(如Claude、Cursor以及千帆AppBuilder等)都可以快速接入。

maplocation

Google Maps

modelcontextprotocol

Location services, directions, and place details

location

mta-mcp

nkasmanoff

MCP server for querying NY transit data

DataQuery

Gaode Map MCP Server Based on Streamable HTTP

Map