
Caiyun-MCP-Tools
用于Caiyun天气API的模型上下文协议(MCP)服务器
1
Github Watches
0
Github Forks
0
Github Stars
Caiyun Weather MCP Server
This is a Model Context Protocol (MCP) server for the Caiyun Weather API. It provides tools to access weather data including real-time conditions, forecasts, and weather alerts.
Features
- Real-time weather conditions
- Hourly weather forecasts (up to 72 hours)
- Daily weather forecasts (up to 7 days)
- Weather alerts
- Support for multiple languages (Chinese, English, Japanese)
- Token-efficient compact response format
Prerequisites
- Node.js (v16 or above)
- A Caiyun Weather API token (obtain one from Caiyun Weather API docs)
Configuration
{
"mcpServers": {
"caiyun-mcp-tools": {
"command": "npx",
"args": [
"caiyun-mcp-tools"
],
"env": {
"CAIYUN_API_KEY": "your-caiyun-api-key"
}
}
}
}
Available Tools
The server provides the following tools which can be accessed through Cursor:
-
realtime-weather - Get current weather conditions
- Parameters:
-
longitude
(number): Longitude coordinate -
latitude
(number): Latitude coordinate -
lang
(optional string): Language for response ("zh_CN", "en_US", or "ja"), defaults to "zh_CN"
-
- Parameters:
-
hourly-forecast - Get hourly weather forecast
- Parameters:
-
longitude
(number): Longitude coordinate -
latitude
(number): Latitude coordinate -
hourlysteps
(optional number): Number of hourly forecasts to return (max: 72) -
lang
(optional string): Language for response ("zh_CN", "en_US", or "ja"), defaults to "zh_CN"
-
- Parameters:
-
daily-forecast - Get daily weather forecast
- Parameters:
-
longitude
(number): Longitude coordinate -
latitude
(number): Latitude coordinate -
dailysteps
(optional number): Number of daily forecasts to return (max: 7) -
lang
(optional string): Language for response ("zh_CN", "en_US", or "ja"), defaults to "zh_CN"
-
- Parameters:
-
weather-alerts - Get active weather alerts
- Parameters:
-
longitude
(number): Longitude coordinate -
latitude
(number): Latitude coordinate -
lang
(optional string): Language for response ("zh_CN", "en_US", or "ja"), defaults to "zh_CN"
-
- Parameters:
API Limitations
Per the official Caiyun Weather API documentation: "The API interface only supports returning historical data for the past day." Due to this limitation, the historical weather tool has been removed from this package.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT
相关推荐
Confidential guide on numerology and astrology, based of GG33 Public information
Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.
Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.
Take an adjectivised noun, and create images making it progressively more adjective!
Reviews

user_UxpVfkdu
As a dedicated user of caiyun-mcp-tools, I highly recommend it for its exceptional functionality and user-friendliness. Created by PsychArch, this toolset has significantly streamlined my workflow with its robust features. Discover more at https://github.com/PsychArch/caiyun-mcp-tools. #HighlyRecommended