YaBoom/mcp-weather-seniverse-demo
3.2
If you are the rightful owner of mcp-weather-seniverse-demo and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
The MCP Weather Server is a Python SDK-based server designed to handle weather queries using the Seniverse API.
Tools
1
Resources
0
Prompts
0
1、基于Python SDK MCP天气 Server开发 (1)首先,用户向大模型提出天气查询请求,例如"北京今天天气如何?"。 (2)大模型分析用户的问题,判断需要使用天气工具来回答。 (3)大模型通过Client请求使用current_weather工具,并等待用户确认。 (4)用户确认工具调用后,Client将请求发送到我们的MCP天气服务器。 (5)MCP Server执行current_weather函数,向心知天气的Seniverse API发送请求,获取该地址的详细天气数据。 (6)MCP Server将API返回的原始数据格式化为结构化的天气信息。 (7)格式化后的天气数据通过Client返回给大模型。 (8)大模型根据天气数据生成自然语言回答。
2、时序图