mcp 计
METAR/TAF航空气象数据MCP服务器
   
mcp名称:io.github.daedalus/mcp-metar
安装
pip install mcp-metar用法
from mcp_metar import get_metar, get_taf, get_airport_weather
# Get current METAR for an airport
metar = get_metar("KJFK")
print(metar)
# Get TAF forecast
taf = get_taf("KJFK")
print(taf)
# Get both METAR and TAF
weather = get_airport_weather("KJFK")
print(weather["metar"])
print(weather["taf"])MCP 服务器
此软件包提供了一个可以与MCP兼容客户端一起使用的MCP服务器。使用以下配置您的客户端:
{
"mcpServers": {
"mcp-metar": {
"command": "mcp-metar",
"env": {}
}
}
}可用工具
get_metar:按ICAO代码获取机场的当前METAR天气数据get_taf:按ICAO代码获取机场的TAF(航站楼机场预报)get_airport_weather:按ICAO代码获取机场的METAR和TAF
发展
git clone https://github.com/daedalus/mcp-metar.git
cd mcp-metar
pip install -e ".[test]"
# run tests
pytest
# format
ruff format src/ tests/
# lint
ruff check src/ tests/
# type check
mypy src/许可证
麻省理工学院
