Overview
This system enhances Large Language Models (LLMs) with weather data capabilities using the Model Context Protocol (MCP) framework.
Demo
Components
- MCP Client: Store LLms
- MCP Server: Intermediate agent connecting external tools / resources
Configuration
BASE_URL=https://api.deepseek.com
MODEL=deepseek-chat
OPENAI_API_KEY=<your_api_key_here>
OPENWEATHER_API_BASE=https://api.openweathermap.org/data/2.5/weather
USER_AGENT=weather-app/1.0
API_KEY=<your_openweather_api_key>
Installation & Execution
- Initialize project:
uv init weather_mcp
cd weather_mcp
where weather_mcp is the project file name.
- Install dependencies:
- Launch system:
cd ./utils
python client.py server.py
Note: Replace all <your_api_key_here>
placeholders with actual API keys