Basic information
About 天气信息与多源工具集成系统 MCP Server
mcp server and langgraph mcp adapeters
天气信息与多源工具集成系统 is a MCP server in the Media & Design category listed in the AddMCP.net directory, published by haichaozheng. Supported transport: stdio. Runtime: python. The repository has 4 GitHub stars. Source code is hosted on github.com.
Setup
{
"mcpServers": {
"weather-mcp-haichaozheng": {
"command": "python",
"args": [
"weather/weather.py"
]
}
}
}
{
"mcpServers": {
"weather-mcp-haichaozheng": {
"command": "python",
"args": [
"weather/weather.py"
]
}
}
}
{
"servers": {
"weather-mcp-haichaozheng": {
"command": "python",
"args": [
"weather/weather.py"
]
}
}
}
天气信息与多源工具集成系统 MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"weather-mcp-haichaozheng": {
"command": "python",
"args": [
"weather/weather.py"
]
}
}
}
天气信息与多源工具集成系统 MCP Server tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
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搜索获取实时信息,如航天成就或经济议题
- 混合查询:同时完成数学计算和天气查询
Frequently asked questions
1 需要哪些API密钥?
需要MOONSHOT_API_KEY(用于LLM)和ZHIPU_API_KEY(用于智谱Web搜索服务),在.env文件中配置。
2 如何启动天气服务器?
运行python weather/weather.py,服务器默认在localhost:8000上运行。确保在运行代理前先启动天气服务器。
3 天气数据来源是什么?
天气数据来自美国国家气象局(NWS)API。
4 系统支持哪些传输协议?
MCP客户端通过SSE(Server-Sent Events)协议与天气服务器通信,包含连接和重试逻辑。
5 项目依赖的Python版本是多少?
系统需要Python 3.11+,相关依赖在requirements.txt中列出。
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In