双源天气 MCP 服务器
@qiangge2008
基本信息
关于 双源天气 MCP 服务器
暂无概览
双源天气 MCP 服务器 配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"weather-mcp-server-qiangge2008": {
"command": "npx",
"args": [
"@modelcontextprotocol/inspector",
"node",
"你的完整路径/weather-mcp-server/build/index.js"
]
}
}
}双源天气 MCP 服务器 工具
工具列表暂未提供
当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。
点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。
概览
什么是双源天气 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 都失败时返回错误。
媒体与设计 分类下的更多 MCP 服务器

EveryGen AI MCP Server
EveryGen AIEveryGen AI MCP Server lets AI assistants create videos, images, voiceovers, music and complete multi-shot films. Connect your EveryGen AI account, describe what you want, review the credit quote and approve the creation

aicut
aicutMake AI videos, images, voiceovers and full AI Video Story episodes from Claude, ChatGPT, Cursor or any MCP client, then post them to TikTok, YouTube and Instagram. Veo, Kling, Seedance and more, on your own aicut accoun
EmbedSocial
Connect Claude, ChatGPT, and other AI assistants to your social media content, reviews, and UGC aggregated via EmbedSocial.

Generate Greetings
Generate GreetingsCreate greetings and personalized PNG cards for 30 occasions in 15 languages, including Hindi, Greek and Hebrew. Free remote MCP with curated phrases, occasion-matched backgrounds and four styles, including motivational.
Artlist
ArtlistGenerate images, videos, music, and voice-overs directly from your AI agent. The full Artlist AI creative suite as an MCP server — works with Claude, ChatGPT, and VS Code, with more platforms coming soon.
评论