Current collected state Current
Observed since 20 Oct, 18:02 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
accton-mcpdemo-weather
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.
| Package / target | Requirement | Relationship |
|---|---|---|
httpxEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=3.13",
"evaluation": "NOT_EVALUATED"
} | httpx>=0.28.1 | runtime |
mcpEnvironment{
"extras": "cli",
"marker": null,
"requires_python": ">=3.13",
"evaluation": "NOT_EVALUATED"
} | mcp[cli]>=1.27.2 | runtime |
bdist_wheel · 7.2 KB · Python py3
sdist · 5.74 KB · Python source
Observed since 20 Oct, 18:02 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:d033d608164a03d3316cfbb89fd1bc80cee6012d9f42ff07bcff09e08daf69d3