io.github.heliosarchitect/wems
编码与调试by heliosarchitect
提供实时自然灾害监测,涵盖地震、海啸、火山活动、solar weather 与空气质量等信息。
什么是 io.github.heliosarchitect/wems?
提供实时自然灾害监测,涵盖地震、海啸、火山活动、solar weather 与空气质量等信息。
README
🌍 WEMS - World Event Monitoring System
<!-- mcp-name: io.github.heliosarchitect/wems -->🚨 Real-time Natural Hazard Monitoring for AI Agents
A powerful Model Context Protocol (MCP) server that connects AI assistants to authoritative natural hazard data sources. Monitor earthquakes, tsunamis, volcanoes, and solar events with configurable alerts and webhooks.
🤖 AI Agents: Skip scanning this repo. Read
AI.TOCfirst — it's a 500-token project map. Then useAI.INDEXto find specific functions andAI.REGISTERfor env vars, APIs, and config. This project uses the LBF AI Navigation Standard.
⚡ Key Features
- 🌋 9+ Authoritative Data Sources: USGS, NOAA, Smithsonian GVP, NHC, NIFC, OpenAQ, DHS, State Dept, CISA, US Drought Monitor
- 🎯 Real-time Monitoring: Live data feeds with customizable thresholds
- 🔔 Smart Alerts: Webhook notifications for critical events
- 🗺️ Geographic Filtering: Target specific regions or global coverage
- 🔧 Zero Configuration: Works out-of-the-box, configure only what you need
- 🐳 Production Ready: Docker support, comprehensive error handling
Natural Hazards Covered
| Hazard Type | Data Source | Coverage |
|---|---|---|
| 🌊 Earthquakes | USGS | Global, magnitude filtering |
| 🌊 Tsunamis | NOAA PTWC + CTWC | Global ocean basins |
| 🌋 Volcanoes | Smithsonian GVP + USGS | Global volcanic activity |
| ☀️ Solar Events | NOAA SWPC | Solar flares, CMEs, geomagnetic storms |
| 🌞 Space Weather Alerts | NOAA SWPC | Active space weather alerts & warnings |
| 🌀 Hurricanes | NHC + NWS | Atlantic & Pacific tropical cyclones |
| 🔥 Wildfires | NWS + NIFC | Fire weather alerts & active perimeters |
| ⛈️ Severe Weather | NWS Alerts | Tornadoes, thunderstorms, floods, winter storms |
| 💨 Air Quality | OpenAQ | Global AQI, PM2.5, PM10, O₃, NO₂, SO₂, CO |
| 🌵 Drought Conditions | US Drought Monitor | US state drought levels (D0-D4) + trends |
| 🛡️ Threat Advisories | DHS NTAS + State Dept + CISA | Terrorism, travel risk, cyber threats |
🚀 Quick Start
Install via PyPI (Recommended)
pip install wems-mcp-server
Or install from source
git clone https://github.com/heliosarchitect/wems-mcp-server.git
cd wems-mcp-server
pip install -r requirements.txt
Basic Usage
# Run as MCP server (connects to AI assistants)
python -m wems_mcp_server
# Test earthquake monitoring
python -c "
import asyncio
from wems_mcp_server import check_earthquakes
print(asyncio.run(check_earthquakes(min_magnitude=6.0)))
"
One-command AI Alerting Setup (Relay + n8n)
bash scripts/setup_wems_alerting_ai.sh
This will:
- install/start
wems-unified-relay.service - upsert and activate the unified n8n ingest workflow
- wire tracker posting credentials automatically
Example Output
{
"earthquakes_found": 3,
"events": [
{
"magnitude": 7.2,
"location": "67 km SW of Tres Picos, Mexico",
"time": "2024-02-13T14:30:15Z",
"depth": 35.8,
"tsunami_threat": true
}
]
}
MCP Tools
| Tool | Description |
|---|---|
check_earthquakes | Query recent earthquake activity |
check_solar | Monitor space weather (K-index, flares, CMEs) |
check_volcanoes | Track volcanic activity alerts |
check_tsunamis | Monitor tsunami warnings |
check_hurricanes | Track tropical cyclones & forecast tracks |
check_wildfires | Fire weather alerts & active perimeters |
check_severe_weather | Monitor tornadoes, thunderstorms, flash floods |
check_floods | Flood warnings & USGS river gauge data |
check_air_quality | AQI monitoring with pollutant data |
check_threat_advisories | Terrorism, travel risk & cyber threat monitoring |
check_space_weather_alerts | Active space weather alerts & warnings from NOAA SWPC |
check_drought_status | US state drought conditions with D0-D4 levels (Premium) |
configure_alerts | Update alert thresholds and webhooks |
fuse_multi_source_incidents | Multi-source incident fusion (feature-flagged) |
Configuration
alerts:
earthquake:
min_magnitude: 6.0
regions: ["US", "Caribbean", "Pacific"]
webhook: "https://your-endpoint.com/earthquake"
solar:
min_kp_index: 7 # Geomagnetic storm threshold
webhook: "https://your-endpoint.com/solar"
volcano:
alert_levels: ["WARNING", "WATCH"]
webhook: "https://your-endpoint.com/volcano"
tsunami:
enabled: true
regions: ["pacific", "atlantic", "indian"]
webhook: "https://your-endpoint.com/tsunami"
Data Sources
- USGS Earthquake Hazards Program
- NOAA Pacific Tsunami Warning Center
- NOAA Central Tsunami Warning Center
- Smithsonian Global Volcanism Program
- NOAA Space Weather Prediction Center
- National Hurricane Center (NHC)
- National Interagency Fire Center (NIFC)
- NWS Alerts API
- OpenAQ (Global Air Quality)
- DHS National Terrorism Advisory System (NTAS)
- U.S. State Department Travel Advisories
- CISA Cybersecurity Advisories
OpenClaw Integration
Add to your OpenClaw configuration:
{
"mcpServers": {
"wems": {
"command": "python3",
"args": ["/path/to/wems-mcp-server/wems_mcp_server.py"],
"env": {
"WEMS_CONFIG": "/path/to/config.yaml"
}
}
}
}
🎯 Use Cases
- 🏢 Enterprise Risk Management: Automated threat assessment for global operations
- 📺 News Organizations: Real-time natural disaster reporting and alerts
- 🔬 Research Institutions: Data collection for scientific analysis
- 🏠 Personal Safety: Location-specific hazard monitoring for families
- 🤖 AI Emergency Response: Integration with disaster response chatbots
- 📱 Alert Systems: Custom notification workflows for critical events
🔧 Advanced Configuration
# config.yaml - Full customization example
alerts:
earthquake:
min_magnitude: 6.0
regions: ["US", "Caribbean", "Pacific"]
webhook: "https://your-endpoint.com/earthquake"
solar:
min_kp_index: 7 # G3+ geomagnetic storm
webhook: "https://your-endpoint.com/solar"
volcano:
alert_levels: ["WARNING", "WATCH"]
regions: ["Cascade Range", "Ring of Fire"]
webhook: "https://your-endpoint.com/volcano"
tsunami:
enabled: true
regions: ["pacific", "atlantic", "indian"]
webhook: "https://your-endpoint.com/tsunami"
📊 Monitoring Dashboard
Pair with monitoring tools for comprehensive coverage:
# Example: Send earthquake data to monitoring system
curl -X POST https://your-monitoring.com/api/events \
-H "Content-Type: application/json" \
-d "$(python -c 'import wems; print(wems.get_recent_earthquakes())')"
💳 Billing & Monetization (Current)
WEMS now includes Stripe metering scaffolding and affordable default pricing.
Current pricing defaults
- Free tier: 5,000 calls per rolling 30 days
- 0–100,000 calls: $0.0010/call
- 100,001–500,000 calls: $0.0008/call
- 500,001+ calls: $0.0006/call
Accessory call weights (default)
- Most tools:
1unit check_space_weather_alerts:2unitsfuse_multi_source_incidents:3units
Billing config
See: config/wems_stripe_billing.json
Key fields:
event_nameapi_key_to_customerbilling_units.defaultbilling_units.by_toolpricing.free_calls_per_rolling_30dpricing.tiers[]
Stripe key source
STRIPE_API_KEYorSTRIPE_SECRET_KEY(direct env)
WEMS uses best-effort lookup and never blocks alerting if billing key resolution fails.
Built with ❤️ for the AI community by Helios 🌞
Part of the expanding OpenClaw ecosystem
常见问题
io.github.heliosarchitect/wems 是什么?
提供实时自然灾害监测,涵盖地震、海啸、火山活动、solar weather 与空气质量等信息。
相关 Skills
前端设计
by anthropics
面向组件、页面、海报和 Web 应用开发,按鲜明视觉方向生成可直接落地的前端代码与高质感 UI,适合做 landing page、Dashboard 或美化现有界面,避开千篇一律的 AI 审美。
✎ 想把页面做得既能上线又有设计感,就用前端设计:组件到整站都能产出,难得的是能避开千篇一律的 AI 味。
网页应用测试
by anthropics
用 Playwright 为本地 Web 应用编写自动化测试,支持启动开发服务器、校验前端交互、排查 UI 异常、抓取截图与浏览器日志,适合调试动态页面和回归验证。
✎ 借助 Playwright 一站式验证本地 Web 应用前端功能,调 UI 时还能同步查看日志和截图,定位问题更快。
网页构建器
by anthropics
面向复杂 claude.ai HTML artifact 开发,快速初始化 React + Tailwind CSS + shadcn/ui 项目并打包为单文件 HTML,适合需要状态管理、路由或多组件交互的页面。
✎ 在 claude.ai 里做复杂网页 Artifact 很省心,多组件、状态和路由都能顺手搭起来,React、Tailwind 与 shadcn/ui 组合效率高、成品也更精致。
相关 MCP Server
GitHub
编辑精选by GitHub
GitHub 是 MCP 官方参考服务器,让 Claude 直接读写你的代码仓库和 Issues。
✎ 这个参考服务器解决了开发者想让 AI 安全访问 GitHub 数据的问题,适合需要自动化代码审查或 Issue 管理的团队。但注意它只是参考实现,生产环境得自己加固安全。
Context7 文档查询
编辑精选by Context7
Context7 是实时拉取最新文档和代码示例的智能助手,让你告别过时资料。
✎ 它能解决开发者查找文档时信息滞后的问题,特别适合快速上手新库或跟进更新。不过,依赖外部源可能导致偶尔的数据延迟,建议结合官方文档使用。
by tldraw
tldraw 是让 AI 助手直接在无限画布上绘图和协作的 MCP 服务器。
✎ 这解决了 AI 只能输出文本、无法视觉化协作的痛点——想象让 Claude 帮你画流程图或白板讨论。最适合需要快速原型设计或头脑风暴的开发者。不过,目前它只是个基础连接器,你得自己搭建画布应用才能发挥全部潜力。