Feedback

双源天气 MCP 服务器

@qiangge2008 Claim

Basic information

Runtime
node
Category
License
Not specified
Transports
stdio
Author
qiangge2008
Submitted by
Community
Quality
10

About 双源天气 MCP 服务器 Server

# 双源天气 MCP 服务器

双源天气 MCP 服务器 is a MCP server in the Media & Design category listed in the AddMCP.net directory, published by qiangge2008. Supported transport: stdio. Runtime: node. Source code is hosted on github.com. Related topics: mcp, weather-mcp, weather-server.

Setup

{
    "mcpServers": {
        "weather-mcp-server-qiangge2008": {
            "command": "npx",
            "args": [
                "@modelcontextprotocol/inspector",
                "node",
                "你的完整路径/weather-mcp-server/build/index.js"
            ]
        }
    }
}

双源天气 MCP 服务器 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"
            ]
        }
    }
}

双源天气 MCP 服务器 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

什么是双源天气 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 都失败时返回错误。

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬