双源天气 MCP 服务器 logo

双源天气 MCP 服务器

by qiangge2008

This is a weather server based on the Model Context Protocol (MCP), using HeWeather and Seniverse APIs to provide weather data. It supports failover and prioritizes obtaining the fastest response.

View on GitHub

Last updated: N/A

What is 双源天气 MCP 服务器?

This is a weather server that operates using the Model Context Protocol (MCP). It leverages the HeWeather and Seniverse weather APIs to provide weather information to large language models.

How to use 双源天气 MCP 服务器?

To use this server, you need to clone the repository, install the dependencies using npm install, configure the environment variables with your API keys from HeWeather and Seniverse, build the project using npm run build, and then run the server using npm start. You can then configure Claude Desktop to use the server by adding it to the mcpServers section of the Claude Desktop configuration file.

Key features of 双源天气 MCP 服务器

  • Provides current weather data as a resource

  • Offers tools to get current weather and forecasts for specific cities

  • Uses multiple API sources for redundancy and speed

  • Supports minimum/maximum temperature, humidity, and wind speed data

Use cases of 双源天气 MCP 服务器

  • Providing real-time weather information to large language models

  • Enabling language models to answer weather-related questions

  • Integrating weather data into AI-powered applications

  • Allowing language models to make decisions based on weather conditions

FAQ from 双源天气 MCP 服务器

What is MCP?

MCP stands for Model Context Protocol, a protocol designed for large language models to interact with external tools and resources.

How do I get API keys?

You need to register accounts on the HeWeather and Seniverse developer services and create applications to obtain API keys.

What if one API fails?

The server automatically uses the other API if one fails, ensuring high availability.

How do I configure this server in Claude Desktop?

Edit the Claude Desktop configuration file and add the server details to the mcpServers section, including the command, arguments, and environment variables for your API keys.

Where can I find more technical details?

Detailed technical documentation is available in the docs directory, including technical overview, MCP implementation details, and data models.