HUSTerAIA/MCP-server-weather
3.1
If you are the rightful owner of MCP-server-weather 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 Model Context Protocol (MCP) server is a framework designed to facilitate seamless integration and communication between various AI models and applications.
{
"mcpServers": {
"weather": {
"command": "node",
"args": ["D:\\fanruan\\MCP\\weather\\build\\index.js"]
}
}
}
通信流程
graph TD
A[客户端请求] --> B[stdio传输层]
B --> C[MCP服务器]
C --> D{解析工具调用}
D -->|get_alerts| E[查询天气警报]
D -->|get_forecast| F[查询天气预报]
E --> G[NWS API]
F --> G
G --> H[处理响应]
H --> I[格式化数据]
I --> J[返回客户端]