Weather MCP Server
天气 MCP 服务器
该项目是一个提供天气信息的模型上下文协议(MCP)服务器。
特征
获取特定纬度和经度的当前天气预报。
获取美国某个州的天气预警。
Related MCP server: Weather MCP Server
设置
安装依赖项:
pnpm install构建服务器:
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 toolsget-alertsC
Get weather alerts for a state
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | Two-letter state code (e.g. CA, NY) |
get-forecastC
Get weather forecast for a location
| Name | Required | Description | Default |
|---|---|---|---|
| latitude | Yes | Latitude of the location | |
| longitude | Yes | Longitude of the location |
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
2 tool updates
- First observed
get-alerts - First observed
get-forecast
TDQS
Scored across 2 tools
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.
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.
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.
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
Related MCP Connectors
Hosted MCP server for Xweather weather data: conditions, forecasts, alerts, and more.
MCP server for weather with reasoning — umbrella advice, outdoor checks, city comparisons.
An MCP server for weather information by @kulybaba
An MCP server for weather information by @kulybaba
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that provides tools to fetch weather alerts for US states and forecasts based on latitude/longitude coordinates using the US National Weather Service API.290 npm1MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables AI models to fetch weather alerts and detailed forecasts for US locations using the National Weather Service API.90 npmGPL 3.0
- AlicenseBqualityCmaintenanceA Model Context Protocol server that provides weather information and forecasts based on user location or address input.68 npm8MIT
- FlicenseBqualityDmaintenanceA Model Context Protocol (MCP) server that provides US weather forecasts and active alerts using the National Weather Service API.2-