What is Juhe Weather MCP Server?
The Juhe Weather MCP Server is a Model Context Protocol server that provides weather forecast information for cities and regions in China. It allows large language models (LLMs) to query real-time weather data.
How to use Juhe Weather MCP Server?
To use the server, you need to install it using either uv or pip. You also need to configure the JUHE_WEATHER_API_KEY
environment variable with your Juhe Data API key. The server exposes a query_weather
tool that accepts a city name as input. You can then use the MCP inspector to debug the server.
Key features of Juhe Weather MCP Server
Provides real-time weather forecasts for Chinese cities and regions
Exposes a
query_weather
tool for querying weather dataSupports installation via uv or pip
Requires a Juhe Data API key for accessing weather data
Use cases of Juhe Weather MCP Server
Enabling LLMs to answer weather-related questions
Integrating weather forecasts into conversational AI applications
Providing weather information for location-based services
Building weather-aware applications
FAQ from Juhe Weather MCP Server
What is the JUHE_WEATHER_API_KEY?
What is the JUHE_WEATHER_API_KEY?
It is the API key required to access the Juhe Weather API. You can obtain it from https://www.juhe.cn/docs/api/id/73
How do I install the server?
How do I install the server?
You can install it using either uv (recommended) or pip. Refer to the installation instructions in the README.
What is the required Python version?
What is the required Python version?
The server requires Python 3.10 or higher.
How do I query the weather for a specific city?
How do I query the weather for a specific city?
Use the query_weather
tool, providing the city name as the city
parameter.
Can I use abbreviations for city names?
Can I use abbreviations for city names?
Yes, but use the official abbreviations and follow the naming conventions strictly to avoid query failures.