MCP 增强型 LLM 获取天气信息
概述
该系统使用模型上下文协议 (MCP) 框架增强了具有天气数据功能的大型语言模型 (LLM)。
Related MCP server: OpenWeatherMap MCP Server
演示

成分
MCP 客户端:存储 LLms
MCP 服务器:连接外部工具/资源的中间代理
配置
DeepSeek 平台
BASE_URL=https://api.deepseek.com
MODEL=deepseek-chat
OPENAI_API_KEY=<your_api_key_here>OpenWeather平台
OPENWEATHER_API_BASE=https://api.openweathermap.org/data/2.5/weather
USER_AGENT=weather-app/1.0
API_KEY=<your_openweather_api_key>安装与执行
初始化项目:
uv init weather_mcp
cd weather_mcp其中 weather_mcp 是项目文件名。
安装依赖项:
uv add mcp httpx发射系统:
cd ./utils
python client.py server.py注意:将所有
<your_api_key_here>占位符替换为实际的 API 密钥
This server cannot be installed
Resources
Looking for Admin?
Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.