drio
Open app

双源天气 MCP 服务器

Source

Catalog onlyCatalog onlySTDIO

Overview

Weather MCP Server is a weather server based on the Model Context Protocol (MCP) that provides weather data using APIs from HeWeather and Seniverse, supporting failover and prioritizing the fastest response.

To use the Weather MCP Server, clone the repository, install dependencies, configure environment variables with your API keys, and run the server using npm commands.

  • View current weather as a resource. - Get current weather for a specified city. - Retrieve weather forecasts for a specified city. - Use multiple API sources simultaneously, automatically selecting the fastest response. - Support for minimum/maximum temperature, humidity, and wind speed data.
  1. Providing real-time weather updates for applications.
  2. Integrating weather data into chatbots or virtual assistants.
  3. Offering weather forecasts for planning events or travel.

Add to your AI client

Use these steps to connect 双源天气 MCP 服务器 in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "weather-mcp-server-qiangge2008": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-weather-mcp-server-qiangge2008"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "weather-mcp-server-qiangge2008": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-weather-mcp-server-qiangge2008"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "weather-mcp-server-qiangge2008": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-weather-mcp-server-qiangge2008"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "weather-mcp-server-qiangge2008": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-weather-mcp-server-qiangge2008"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "weather-mcp-server-qiangge2008": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-weather-mcp-server-qiangge2008"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "weather-mcp-server-qiangge2008": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-weather-mcp-server-qiangge2008"
      ]
    }
  }
}

FAQ

How do I obtain API keys for HeWeather and Seniverse?

You can register on their respective developer platforms to create applications and obtain API keys.

Does the server support HTTP requests?

No, the server operates solely in MCP mode and does not provide HTTP server functionality.

What happens if one of the APIs fails?

The server automatically switches to the other API to ensure continuous service.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1790,"uuid":"49f1d11f-3407-4a17-aa9a-65df4cd9a1ca","name":"weather-mcp-server","title":"双源天气 MCP 服务器","description":"","avatar_url":"https://avatars.githubusercontent.com/u/201698012?v=4","created_at":"2025-03-05T05:22:36.007Z","updated_at":"2025-03-12T10:20:53.039Z","status":"created","author_name":"qiangge2008","author_avatar_url":"https://avatars.githubusercontent.com/u/201698012?v=4","tags":"weather-mcp,weather-server,MCP","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/qiangge2008/weather-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":"https://github.com/qiangge2008/weather-mcp-server/raw/master/image.png","type":null,"metadata":"{\"star\":\"0\",\"license\":\"\",\"language\":\"TypeScript\",\"is_official\":false,\"latest_commit_time\":\"2025-03-04 13:43:35\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]