天气查询工具

一款支持韩语和英语的天气信息查询工具,与Claude AI集成,提供全球城市的实时天气数据。

  • by mongte
  • TypeScript
  • 本地部署
  • 更新于
在 GitHub 查看 mongte/my-mcp-server

使用说明

克劳德天气MCP工具

中文天气信息查询模型上下文协议(MCP)工具。可与Claude AI配合使用,提供全球城市的实时天气信息。

特性

  • 按城市名称查询天气信息(韩语/英语支持)
  • 提供实时气象数据
  • 详细的天气信息(气温、天气状况、风速、风向、湿度)
  • 与Claude AI无缝集成

使用的API

安装方法

# 저장소 클론
git clone https://github.com/yourusername/weather-mcp-tool.git
cd weather-mcp-tool

# 의존성 설치
npm install

# 빌드
npm run build

Claude桌面设置

claude_desktop_config.json 在文件中添加以下设置:

{
  "mcpServers": {
    "weather-server": {
      "command": "node",
      "args": ["dist/server.js"],
      "cwd": "프로젝트_경로"
    }
  }
}

使用示例

在Claude中可以使用:

const result = await weatherApi.execute({
  city: "서울"
});

示例响应:

{
  "city": "Seoul",
  "country": "South Korea",
  "weather": {
    "temperature": 18.5,
    "description": "맑음",
    "windSpeed": 2.3,
    "windDirection": 180,
    "humidity": 65
  }
}

许可证

MIT License-详细信息 许可证 请参考文件。