NWS Weather Alerts
Active weather alerts and warnings from the National Weather Service
我该使用它吗
质量与安全性
发现(2)
- HIGH
- INFO在 get_alert_detail 中
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"nws-alerts": {
"url": "https://mcp.olyport.com/nws-alerts/mcp"
}
}
}远程端点
https://mcp.olyport.com/nws-alerts/mcpstreamable-http它能做什么
工具清单
工具(3)
🟢get_alerts(state, severity, event, limit)
Get active NWS weather alerts for a US state. Returns current weather alerts including watches, warnings, and advisories issued by the National Weather Service. Args: state: Two-letter US state abbreviation (e.g. 'CA', 'TX', 'NY'). severity: Filter by severity level: 'Extreme', 'Severe', 'Moderate', or 'Minor'. event: Filter by event type (e.g. 'Tornado Warning', 'Flash Flood Watch'). limit: Maximum number of alerts to return (default 25, max 500).
输入模式
{
"type": "object",
"properties": {
"state": {
"title": "State",
"type": "string"
},
"severity": {
"default": null,
"title": "Severity",
"type": "string"
},
"event": {
"default": null,
"title": "Event",
"type": "string"
},
"limit": {
"default": 25,
"title": "Limit",
"type": "integer"
}
},
"required": [
"state"
],
"title": "get_alertsArguments"
}输出模式
{
"type": "object",
"properties": {
"result": {
"title": "Result",
"type": "string"
}
},
"required": [
"result"
],
"title": "get_alertsOutput"
}🟢get_alert_detail(alert_id)
Get full details of a specific NWS weather alert by its ID. Returns the complete alert including description, instructions, and affected areas. Use alert IDs from get_alerts results. Args: alert_id: The full NWS alert ID (e.g. 'urn:oid:2.49.0.1.840.0.xxx').
输入模式
{
"type": "object",
"properties": {
"alert_id": {
"title": "Alert Id",
"type": "string"
}
},
"required": [
"alert_id"
],
"title": "get_alert_detailArguments"
}输出模式
{
"type": "object",
"properties": {
"result": {
"title": "Result",
"type": "string"
}
},
"required": [
"result"
],
"title": "get_alert_detailOutput"
}🟢get_forecast(latitude, longitude)
Get the weather forecast for a specific latitude/longitude location. Returns a multi-day forecast from the National Weather Service. Works for any location within the United States and its territories. Args: latitude: Latitude of the location (e.g. 38.8894 for Washington DC). longitude: Longitude of the location (e.g. -77.0352 for Washington DC).
输入模式
{
"type": "object",
"properties": {
"latitude": {
"title": "Latitude",
"type": "number"
},
"longitude": {
"title": "Longitude",
"type": "number"
}
},
"required": [
"latitude",
"longitude"
],
"title": "get_forecastArguments"
}输出模式
{
"type": "object",
"properties": {
"result": {
"title": "Result",
"type": "string"
}
},
"required": [
"result"
],
"title": "get_forecastOutput"
}社区
证据