Weather MCP Server

by bobby169

天气 MCP 服务器

该项目是一个提供天气信息的模型上下文协议(MCP)服务器。

特征

  • 获取特定纬度和经度的当前天气预报。
  • 获取美国某个州的天气预警。

设置

  1. 安装依赖项:
    pnpm install
  2. 构建服务器:
    pnpm run build

运行服务器

该服务器设计为由 MCP 客户端(例如 Claude for Desktop)运行。

要配置 Claude for Desktop(或类似的 MCP 客户端)使用此服务器,您需要将其指向已构建的服务器。典型的配置包括:

  • 命令node
  • 参数["/ABSOLUTE/PATH/TO/YOUR/PROJECT/mcptest/build/index.js"]

/ABSOLUTE/PATH/TO/YOUR/PROJECT/替换为系统上mcptest目录的实际绝对路径。

例如,如果您的项目位于/Users/bohe/Desktop/mcptest ,则参数将是["/Users/bohe/Desktop/mcptest/build/index.js"]

有关如何添加和配置 MCP 服务器的具体说明,请参阅 MCP 客户端的文档。

发展

  • 源代码位于src目录中。
  • 主要的服务器逻辑位于src/index.ts中。
  • 构建输出位于build目录中。

MCP 配置

.vscode/mcp.json文件可供 VS Code 识别并可能调试此 MCP 服务器。

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

模型上下文协议服务器提供特定位置的当前天气预报和美国各州的有效天气警报。

  1. 特征
    1. 设置
      1. 运行服务器
        1. 发展
          1. MCP 配置

            Related MCP Servers

            • -
              security
              F
              license
              -
              quality
              This is a Model Context Protocol (MCP) server that provides weather information using the National Weather Service (NWS) API. Features Get weather alerts for a US state Get weather forecast for a specific location (using latitude and longitude)
              Last updated -
              Python
              • Linux
              • Apple
            • -
              security
              -
              license
              -
              quality
              Provides a Model Context Protocol server that enables large language models to query and retrieve real-time weather forecasts for cities and regions across China.
              Last updated -
              Python
            • A
              security
              F
              license
              A
              quality
              A Model Context Protocol server that provides AI agents with tools to retrieve weather alerts and detailed forecasts for US locations using the National Weather Service API.
              Last updated -
              2
              115
              TypeScript
            • A
              security
              F
              license
              A
              quality
              A Model Context Protocol server that provides comprehensive weather data querying capabilities based on the Caiyun Weather API, supporting real-time weather, forecasts, and alerts with multi-language support.
              Last updated -
              7
              1
              TypeScript

            View all related MCP servers

            ID: zbeuxph7bl