Back to MCP directory
publicPublicdnsLocal runtime

us-weather-mcp

基于Kotlin开发的天气查询MCP服务器,可通过Claude桌面应用查询美国各地天气情况

article

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?
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client