Metadata-Version: 2.4
Name: typecoh-mcp-weather
Version: 0.1.1
Summary: MCP Server for weather information using Open-Meteo API
Author-email: Typecoh <typecoh@163.com>
License-Expression: MIT
Keywords: mcp,weather,open-meteo,fastmcp
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.12
Description-Content-Type: text/markdown
Requires-Dist: fastmcp>=3.2.4
Requires-Dist: httpx>=0.28.1
Requires-Dist: pydantic>=2.13.3
Requires-Dist: typecoh-mcp-add>=0.1.0

# typecoh-mcp-weather

获取指定位置的当前天气信息的MCP服务器。

## 作者

typecoh

## 功能

- `get_current_weather` - 通过城市名称获取天气
- `get_weather_by_coords` - 通过经纬度获取天气

## 安装

```bash
pip install -r requirements.txt
```

## 使用

### stdio模式 (默认)

```bash
python app.py
```

### SSE模式

```bash
python app.py --sse --port 8000
```

## 示例

```
# 获取北京天气
get_current_weather(location="Beijing", unit="celsius")

# 获取纽约天气 (华氏度)
get_current_weather(location="New York", unit="fahrenheit")

# 通过经纬度获取
get_weather_by_coords(location="40.7128,-74.0060")
```
