China Weather MCP Server logo

China Weather MCP Server

by DLYZZT

China Weather MCP Server provides real-time weather information for Chinese cities using the AMap Weather API. It enables AI assistants to access current weather conditions across China.

View on GitHub

Last updated: N/A

What is China Weather MCP Server?

China Weather MCP Server is a Model Context Protocol (MCP) server that provides real-time weather information for Chinese cities using the AMap (AutoNavi) Weather API.

How to use China Weather MCP Server?

  1. Install Python 3.12 or higher. 2. Install uv. 3. Clone the repository. 4. Install dependencies with uv. 5. Get an API key from AMap Developer Platform. 6. Set your API key as an environment variable. 7. Configure Claude Desktop to use the server.

Key features of China Weather MCP Server

  • Real-time weather data retrieval for Chinese cities

  • Integration with AMap Weather API

  • Asynchronous request handling

  • Easy-to-use MCP interface

Use cases of China Weather MCP Server

  • Providing weather information to AI assistants

  • Integrating weather data into applications

  • Automating weather-related tasks

  • Enhancing AI models with real-time weather data

FAQ from China Weather MCP Server

What is the AMap API key for?

The AMap API key is required to access the AMap Weather API and retrieve weather data.

How do I install uv?

You can install uv by running the provided shell script: curl -LsSf https://astral.sh/uv/install.sh | sh

Where do I configure the MCP server in Claude Desktop?

You can configure the MCP server in the Claude Desktop config file, located at %APPDATA%/Claude/claude_desktop_config.json on Windows and ~/Library/Application Support/Claude/claude_desktop_config.json on MacOS.

What tool does the server provide?

The server provides the get_weather(city: str) tool to get current weather information for a specified Chinese city.

What is the license of this project?

This project is licensed under the MIT License.