双源天气 MCP 服务器
@qiangge2008
About 双源天气 MCP 服务器
No overview available yet
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"weather-mcp-server-qiangge2008": {
"command": "npx",
"args": [
"@modelcontextprotocol/inspector",
"node",
"你的完整路径/weather-mcp-server/build/index.js"
]
}
}
}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
什么是双源天气 MCP 服务器?
双源天气 MCP 服务器是一个基于 Model Context Protocol (MCP) 的天气服务器,使用和风天气和心知天气 API 提供天气数据,支持故障转移和优先获取最快响应。
如何双源天气 MCP 服务器?
安装依赖后配置环境变量(QWEATHER_API_KEY 和 SENIVERSE_API_KEY),然后在 Claude Desktop 等客户端中通过 stdio 方式启动。可使用资源 weather://{city} 获取当前天气,或调用工具 getCurrentWeather 和 getForecast。
双源天气 MCP 服务器的关键特性
- 同时使用和风天气和心知天气双 API 源
- 自动选择最快响应的结果作为最终数据
- 支持故障转移,单个 API 失败时自动切换
- 提供当前天气和天气预报(1-7天)
- 仅通过 MCP 协议运行,不提供 HTTP 服务
双源天气 MCP 服务器的使用案例
- 在大型语言模型中查询指定城市的当前天气
- 获取指定城市的未来多天天气预报
- 在高可用性要求下确保天气 API 调用不中断
双源天气 MCP 服务器的常见问题
双源天气 MCP 服务器需要哪些依赖?
需要 Node.js 环境,安装 npm 依赖,并准备和风天气和心知天气的 API 密钥。
数据存储在哪里?
数据实时从和风天气和心知天气 API 获取,服务器不持久化存储天气数据。
双源天气 MCP 服务器支持 HTTP 访问吗?
不支持。本服务器仅支持 MCP 模式,通过标准输入/输出 (stdio) 与客户端通信。
如何同时配置两个 API 密钥?
在环境变量中设置 QWEATHER_API_KEY 和 SENIVERSE_API_KEY,服务器会并行请求两个源并选用最快的响应。
故障转移机制如何工作?
服务器并行向和风天气和心知天气发送请求,采用最先返回的结果。如果某个 API 失败,自动使用另一个 API 的结果;所有 API 都失败时返回错误。
Basic information
More Media & Design MCP servers
YouTube Transcript Server
kimtaeyoon83This is an MCP server that allows you to directly download transcripts of YouTube videos.
MiniMax MCP
MiniMax-AIOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.

Spotify MCP
varunnealMCP to connect your LLM with Spotify.
Photoshop MCP Server
loonghaoA Model Context Protocol (MCP) server that interfaces with Adobe Photoshop's Python API. Enables LLMs to execute image editing operations, automate workflows, and manage Photoshop tasks through structured commands and context-aware interactions.
百度地图 MCP Server
baidu-mapsBaidu Map MCP Server
Comments