Juhe Weather MCP Server logo

Juhe Weather MCP Server

by juhemcp

The Juhe Weather MCP Server provides weather forecasts for cities and regions across China. It enables Large Language Models (LLMs) to access real-time weather information.

View on GitHub

Last updated: N/A

What is Juhe Weather MCP Server?

The Juhe Weather MCP Server is a Model Context Protocol server that allows large language models to query weather forecasts for cities and regions in China using the Juhe Weather API.

How to use Juhe Weather MCP Server?

To use the server, you need to install it using uv or pip. Configure the JUHE_WEATHER_API_KEY environment variable with your Juhe Weather API key. You can then interact with the server through the query_weather tool, providing the city name as input. Example usage with CLINE is provided in the README.

Key features of Juhe Weather MCP Server

  • Provides real-time weather forecasts for Chinese cities and regions.

  • Integrates with Large Language Models (LLMs) via the Model Context Protocol (MCP).

  • Uses the Juhe Weather API to retrieve weather data.

  • Offers a query_weather tool for querying weather information by city name.

Use cases of Juhe Weather MCP Server

  • LLMs can use this server to answer user queries about the weather in specific Chinese locations.

  • Chatbots can provide weather updates to users based on their location or requested city.

  • AI assistants can integrate weather information into their responses and recommendations.

  • Applications can use the server to display current weather conditions on maps or dashboards.

FAQ from Juhe Weather MCP Server

How do I get a Juhe Weather API key?

You can obtain a Juhe Weather API key from https://www.juhe.cn/docs/api/id/73.

What is the required Python version?

The server requires Python 3.10 or higher.

How do I install the server?

You can install the server using uv (recommended) or pip. Refer to the Install section in the README for detailed instructions.

How do I configure the server?

You need to set the JUHE_WEATHER_API_KEY environment variable with your Juhe Weather API key. See the Configuration section in the README for more details.

How can I debug the server?

You can use the MCP inspector to debug the server. See the Debugging section in the README for instructions.