天气模型协议服务器

一个用于天气信息的模型上下文协议(MCP)服务器,提供天气数据的处理和访问功能。

  • by charegb
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 charegb/Weather_MCP_Server

使用说明

气象MCP服务器

用于天气信息的模型上下文协议(MCP)服务器。

项目结构

weather-mcp-server/
├── src/
│   └── weather_mcp_server/
│       ├── __init__.py
│       ├── server.py
│       └── weather/
│           ├── __init__.py
│           └── api.py
├── tests/
│   ├── __init__.py
│   └── test_weather.py
├── pyproject.toml
├── README.md
└── .gitignore

发展

这个项目使用uv进行依赖管理和Python 3.13+。

设置

  1. 如果您还没有安装uv:

    curl -LsSf https://astral.sh/uv/install.sh | sh
    
  2. 安装依赖项:

    uv sync
    
  3. 运行测试:

    uv run pytest
    

运行服务器

uv run python -m weather_mcp_server.server