Skip to main content
Glama
Weather MCP Server

Weather MCP Server

by bobby169

天气 MCP 服务器

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

特征

  • 获取特定纬度和经度的当前天气预报。

  • 获取美国某个州的天气预警。

Related MCP server: Weather MCP Server

设置

  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 服务器。

Available Tools

2 tools
get-alertsC

Get weather alerts for a state

NameRequiredDescriptionDefault
stateYesTwo-letter state code (e.g. CA, NY)
get-forecastC

Get weather forecast for a location

NameRequiredDescriptionDefault
latitudeYesLatitude of the location
longitudeYesLongitude of the location

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 2 tool updates
    • First observedget-alerts
    • First observedget-forecast

TDQS

B3.1/5.0

Scored across 2 tools

Disambiguation5/5

The two tools have clearly distinct purposes: one retrieves weather alerts for a state, while the other provides forecasts for a location. There is no overlap in functionality, making it easy for an agent to choose the correct tool based on the need for alerts versus general weather predictions.

Naming Consistency5/5

Both tools follow a consistent verb_noun naming pattern with hyphens (get-alerts and get-forecast). This uniformity makes the tool set predictable and easy to understand, adhering to a clear convention throughout.

Tool Count2/5

With only 2 tools, the server feels thin for a weather domain, lacking essential operations like current conditions, historical data, or radar imagery. While the tools are well-defined, the count is too low to adequately cover typical weather-related use cases, suggesting an incomplete surface.

Completeness2/5

The tool set is severely incomplete for a weather server, missing core functionalities such as current weather conditions, historical data, or severe weather details. Agents will face significant gaps when trying to perform common weather-related tasks, leading to potential failures in broader workflows.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues

Related MCP Connectors

Related MCP Servers

Appeared in Searches