天气信息与多源工具集成系统
@haichaozheng
About 天气信息与多源工具集成系统
mcp server and langgraph mcp adapeters
Basic information
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"weather-mcp-haichaozheng": {
"command": "python",
"args": [
"weather/weather.py"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is 天气信息与多源工具集成系统?
这是一个基于LangGraph框架和MCP协议的多源工具集成系统。它将自定义工具(数学计算、字符串处理)、本地MCP服务(美国天气警报和预报)以及第三方MCP服务(智谱Web搜索)整合到一个统一AI代理中,适合需要多功能智能助手的开发者。
How to use 天气信息与多源工具集成系统?
安装依赖:pip install -r requirements.txt。配置环境变量:在.env文件中设置MOONSHOT_API_KEY和ZHIPU_API_KEY。依次启动天气服务器(python weather/weather.py),然后运行综合代理测试(python weather/agent_with_diverse_tools.py)。也可单独测试第三方搜索工具(python weather/mcp_third_party.py)。
Key features of 天气信息与多源工具集成系统
- 模块化设计,各工具源相互独立,便于维护和扩展
- 集成本地MCP天气服务:获取美国州级天气警报和预报
- 内置自定义工具:加、减、乘、除、平方根、幂运算和字符串处理
- 支持第三方MCP工具:智谱AI提供的实时Web搜索能力
- 基于LangGraph React Agent架构,使用Moonshot API驱动LLM
- 容错能力强:某个服务不可用时,系统仍可使用其他可用工具
Use cases of 天气信息与多源工具集成系统
- 查询美国某州的天气警报或根据经纬度获取天气预报
- 执行数学计算,如加法、平方根、复合运算
- 进行字符串处理,如转换大小写、连接字符串
- 通过Web搜索获取实时信息,如航天成就或经济议题
- 混合查询:同时完成数学计算和天气查询
FAQ from 天气信息与多源工具集成系统
需要哪些API密钥?
需要MOONSHOT_API_KEY(用于LLM)和ZHIPU_API_KEY(用于智谱Web搜索服务),在.env文件中配置。
如何启动天气服务器?
运行python weather/weather.py,服务器默认在localhost:8000上运行。确保在运行代理前先启动天气服务器。
天气数据来源是什么?
天气数据来自美国国家气象局(NWS)API。
系统支持哪些传输协议?
MCP客户端通过SSE(Server-Sent Events)协议与天气服务器通信,包含连接和重试逻辑。
项目依赖的Python版本是多少?
系统需要Python 3.11+,相关依赖在requirements.txt中列出。
More Media & Design MCP servers
MiniMax MCP
MiniMax-AIOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Figma MCP Server
thirdstrandstudioFigma MCP Server with full API functionality
YouTube MCP Server
ZubeidHendricksMCP Server for YouTube API, enabling video management, Shorts creation, and advanced analytics
Vibe Design System
mondaycom🎨 Vibe Design System - Official monday.com UI resources for application development in React.js
YouTube Transcript MCP Server
jkawamotoMCP server retrieving transcripts of YouTube videos
Comments