美国天气MCP服务器
这是一个为美国天气数据设计的MCP服务器,用于测试目的。
快速入门
安装
用户安装
通过 PyPI 或 uv 安装:
pip install mcp-weather
uv pip install mcp-weather
开发者安装
克隆仓库并设置环境:
git clone https://github.com/michael7736/weather-mcp-server.git cd weather-mcp-server python -m venv .venv source .venv/bin/activate # Windows 使用 .venv\Scripts\activate pip install -e ".[dev]"
配置
在配置文件中添加以下内容:
{ "mcpServers": { "weather": { "command": "mcp-weather", "disabled": false, "autoApprove": [] } } }
使用
问题示例:
- "CA 当前有哪些天气警报?"
- "旧金山的天气预报是什么?"