World Event Monitoring System - MCP server for natural hazard monitoring
Project description
๐ WEMS - World Event Monitoring System
๐จ 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
- ๐ 4 Authoritative Data Sources: USGS, NOAA (2x), Smithsonian GVP
- ๐ฏ 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 |
| ๐ Hurricanes | NHC + NWS | Atlantic & Pacific tropical cyclones |
| ๐ฅ Wildfires | NWS + NIFC | Fire weather alerts & active perimeters |
| โ๏ธ Severe Weather | NWS Alerts | Tornadoes, thunderstorms, floods, winter storms |
๐ 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)))
"
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 | Version |
|---|---|---|
check_earthquakes |
Query recent earthquake activity | 1.0.0 |
check_solar |
Monitor space weather (K-index, flares, CMEs) | 1.0.0 |
check_volcanoes |
Track volcanic activity alerts | 1.0.0 |
check_tsunamis |
Monitor tsunami warnings | 1.0.0 |
check_hurricanes |
Track tropical cyclones & forecast tracks | 1.1.0 |
check_wildfires |
Fire weather alerts & active perimeters | 1.1.0 |
check_severe_weather |
Monitor tornadoes, thunderstorms, flash floods | 1.2.0 |
configure_alerts |
Update alert thresholds and webhooks | 1.0.0 |
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
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())')"
๐บ๏ธ Roadmap
| Version | Feature | Data Source | Status |
|---|---|---|---|
| ๐ Earthquakes, โ๏ธ Solar, ๐ Volcanoes, ๐ Tsunamis | USGS, NOAA, Smithsonian | โ Shipped | |
| ๐ Hurricanes, ๐ฅ Wildfires | NHC, NWS, NIFC | โ Shipped | |
| โ๏ธ Severe Weather (tornadoes, thunderstorms, flash floods) | NWS Alerts API | โ Shipped | |
| 1.3.0 | ๐ Floods (river gauges, flood warnings) | USGS Water Services + NOAA | ๐ Planned |
| 1.4.0 | ๐จ Air Quality (AQI, smoke, pollution) | EPA AirNow | ๐ Planned |
| 1.5.0 | ๐ก๏ธ Threat Advisories (terrorism, travel risk) | DHS NTAS, State Dept | ๐ Planned |
All data sources are free, public, and require no API keys. Zero-config by design.
Built with โค๏ธ for the AI community by Helios ๐
Part of the expanding OpenClaw ecosystem
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wems_mcp_server-1.2.0.tar.gz.
File metadata
- Download URL: wems_mcp_server-1.2.0.tar.gz
- Upload date:
- Size: 35.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
569cc5045c98f05f22ae180d6c26a978f8b9a695784916b8341207236813bcc1
|
|
| MD5 |
d5fa29fc26df8e4979841d56b6cf6df5
|
|
| BLAKE2b-256 |
ac785c07a50b3d547b2da12e83ba5b4d8d1bee6f50d58d42d01062965a0d457a
|
File details
Details for the file wems_mcp_server-1.2.0-py3-none-any.whl.
File metadata
- Download URL: wems_mcp_server-1.2.0-py3-none-any.whl
- Upload date:
- Size: 17.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d18ef0bbe054bb467b92a51ee4663a18d842f8efb63d273790f4667fadd78117
|
|
| MD5 |
69812cf5548d0be4ae9149c7a9f9ad34
|
|
| BLAKE2b-256 |
74c0df4969b8125a8ca23a5ce26ae569e64a022bffe48d5ed7354e536e18309b
|