README
🚀 US Weather MCP
US Weather MCP 是一个用于查询美国天气的工具,通过集成到 Claude Desktop 应用,用户可以方便地在应用内查询指定城市的天气情况。
🚀 快速开始
1. 下载 JAR 文件
从 发布页面下载 JAR 文件。
2. 编辑 claude_desktop_config.json
如果你使用的是 MacOS 或 Linux 系统的 Claude Desktop 应用,可以在以下路径找到配置文件:
~/Library/Application\ Support/Claude/claude_desktop_config.json
你可以使用以下配置在 claude_desktop_config.json 中运行 MCP 服务器。要求 Java 版本为 21.0.2 或更高。
{
"mcpServers": {
"weather": {
"command": "/path/to/java/21.0.2/bin/java",
"args": [
"-jar",
"/path/to/us-weather-mcp-1.0-SNAPSHOT-all.jar"
]
}
}
}
配置完成后,你就可以在 Claude Desktop 应用中运行 MCP 服务器啦。
3. 查询天气
你可以使用以下格式查询天气:
How's the weather in New York?
Scan to contact