Caiyun Weather MCP Server
An MCP server that provides seamless access to the Caiyun Weather API.
Quick Start
-
Register and Obtain API Key:
Visit Caiyun Platform to register and generate your API key. -
Clone the Repository and Set Up Environment:
Clone the repository and useuv
to create a Python virtual environment and install dependencies.git clone https://github.com/mrchi/caiyun-weather-mcp-server.git cd caiyun-weather-mcp-server/ uv venv uv sync
-
Configure Environment Variables:
Create a.env
file to store your API key.CAIYUN_API_KEY="your-key"
-
Configure MCP Client:
Open an MCP-compatible client, such as Claude for Desktop or Cline in VSCode, and configure it as follows:{ "mcpServers": { "weather": { "command": "uv", "env": {}, "args": [ "--directory", "<your repo directory>", "run", "--env-file", ".env", "servers/caiyun_weather.py" ] } } }
-
Query the Weather:
Simply ask:How about the weather in Tiananmen Square?