openweathermap-mcp-server
by abhayymishraa·★ 0·综合分 24
MCP服务器提供OpenWeatherMap API的天气数据,基于Bun运行时。
weatherapi-integrationproductivity
0
Forks
0
活跃 Issue
13 个月前
最近提交
2 天前
收录于
概述
这是一个轻量级的MCP服务器,使用Bun从OpenWeatherMap API获取当前和5天天气预报数据。它使用@modelcontextprotocol/sdk构建,通过Zod进行验证,使用Axios进行API调用。提供通过经纬度获取天气信息的功能,使用stdio传输协议。
试试问 AI
装完之后,这里有 3 个你可以让 AI 做的事:
你:通过坐标获取当前位置的天气信息
你:获取5天天气预报用于旅行规划
你:将天气数据集成到AI助手中,实现位置感知响应
什么时候选它
当您已经在使用Bun作为运行时环境且需要基本天气预报功能时,选择此服务器进行简单的天气数据集成。
什么时候不要选它
如果您需要健壮的错误处理、丰富的天气功能,或者不使用Bun作为运行时环境,请避免使用。
可对比工具
weather-mcp-serveropenapi-weather-mcpnpm-weather-cli
安装
bun installbun run index.tsClaude Desktop配置:
{
"mcpServers": {
"openweathermap": {
"command": "bun",
"args": ["run", "/path/to/openweathermap-mcp-server/index.ts"]
}
}
}openweathermap-mcp-server 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。