Overview
What is MCP Weather Server?
The MCP Weather Server is an AutoGen-based Model Context Protocol (MCP) server that uses Gemini 1.5 via an OpenAI-compatible API to respond to weather queries. It retrieves weather forecasts by latitude and longitude and integrates with AutoGen’s multi-agent GroupChat system, involving User, Assistant, and a Weather agent.
How to use MCP Weather Server?
Install the required dependencies with pip install -r requirements.txt, then run the server using python autogen.py.
Key features of MCP Weather Server
- Weather forecasting by location using latitude/longitude
- AutoGen GroupChat with User, Assistant, and Weather agent
- Uses Gemini 1.5 through an OpenAI-compatible API
Use cases of MCP Weather Server
- Building a conversational weather assistant that coordinates with multiple AI agents
- Integrating real-time weather forecasts into multi-agent AutoGen workflows
- Demonstrating how to route location-based queries to a dedicated agent in a group chat
FAQ from MCP Weather Server
What models or APIs does it require?
It uses Gemini 1.5 through an OpenAI-compatible API.
How is the weather data retrieved?
The server retrieves weather forecasts based on latitude and longitude coordinates provided in the query.
What agents are involved in the group chat?
The AutoGen GroupChat includes a User agent, an Assistant agent, and a Weather agent.
What are the installation steps?
Run pip install -r requirements.txt to install dependencies, then execute python autogen.py to start the server.