Current collected state Current
Observed since 20 Oct, 18:02 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
A MCP server for querying current weather and forecasts via OpenWeatherMap API
一个基于 MCP (Model Context Protocol) 的天气查询服务器,通过 OpenWeatherMap API 提供实时天气和未来天气预报。
pip install accton-mcpdemo-weather
使用前需要设置环境变量:
export OPENWEATHER_API_KEY="your-api-key"
在 OpenWeatherMap 注册即可免费获取 API Key。
accton-mcpdemo-weather
在 Claude Desktop 或其他 MCP 客户端的配置文件中添加:
{
"mcpServers": {
"weather": {
"command": "uvx",
"args": ["accton-mcpdemo-weather"],
"env": {
"OPENWEATHER_API_KEY": "your-api-key"
}
}
}
}
| 工具 | 说明 |
|---|---|
get_current_weather | 获取指定城市的当前实时天气 |
get_weather_forecast | 获取指定城市未来某天的天气预报 |
get_weather | 综合查询:不传日期返回当前天气,传日期返回预报 |
# 克隆仓库
git clone https://github.com/your-repo/accton-mcpdemo-weather.git
cd accton-mcpdemo-weather
# 安装依赖
uv sync
# 运行
uv run accton-mcpdemo-weather
MIT
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.9 | 8 Jun 2026 | 2 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 18:02 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:3fb1eedeeaf3f95dc5bb7e38a9f3aac4770813592ed0faf4ac961f2e09f18e05