使用说明
气象MCP服务器
该项目是一个使用模型上下文协议(MCP)提供天气信息的服务器。
设置
-
上传成瘾:
`Bash NPM INSTALL` -
设置环境变量:
`Bash cp env.example .env`
通过编辑 .env 文件:
` Weather_apı_base_url = https: //api.openweathermap.org/data/2.5/weather Weather_apı_key = your_openweathermap_api_key_here `
用法
第一个项目:
`Bash NPM RUN Build `
启动第二台服务器:
`Bash NPM Start `
取API密钥
获取OpenWeathermap API密钥:
- 首选https://openweathermap.org/
- 创建免费帐户 从API第三密钥部分获取密钥
支持的功能
Get-Weather:指定城市的即时温度信息- 土耳其语支持
- 摄氏温度单位