Skip to main content

World Event Monitoring System - MCP server for natural hazard monitoring

Project description

๐ŸŒ WEMS - World Event Monitoring System

PyPI version License: MIT Python 3.8+ MCP Compatible

๐Ÿšจ 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.TOC first โ€” it's a 500-token project map. Then use AI.INDEX to find specific functions and AI.REGISTER for env vars, APIs, and config. This project uses the LBF AI Navigation Standard.

โšก Key Features

  • ๐ŸŒ‹ 7+ Authoritative Data Sources: USGS, NOAA, Smithsonian GVP, NHC, NIFC, OpenAQ, DHS, State Dept, CISA
  • ๐ŸŽฏ 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
๐Ÿ’จ Air Quality OpenAQ Global AQI, PM2.5, PM10, Oโ‚ƒ, NOโ‚‚, SOโ‚‚, CO
๐Ÿ›ก๏ธ 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)))
"

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
check_floods Flood warnings & USGS river gauge data 1.3.0
check_air_quality AQI monitoring with pollutant data 1.4.0
check_threat_advisories Terrorism, travel risk & cyber threat monitoring 1.5.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
  • 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())')"

๐Ÿ—บ๏ธ Roadmap

Version Feature Data Source Status
1.0.0 ๐ŸŒŠ Earthquakes, โ˜€๏ธ Solar, ๐ŸŒ‹ Volcanoes, ๐ŸŒŠ Tsunamis USGS, NOAA, Smithsonian โœ… Shipped
1.1.0 ๐ŸŒ€ Hurricanes, ๐Ÿ”ฅ Wildfires NHC, NWS, NIFC โœ… Shipped
1.2.0 โ›ˆ๏ธ Severe Weather (tornadoes, thunderstorms, flash floods) NWS Alerts API โœ… Shipped
1.3.0 ๐ŸŒŠ Floods (river gauges, flood warnings) USGS Water Services + NOAA โœ… Shipped
1.4.0 ๐Ÿ’จ Air Quality (AQI, smoke, pollution) OpenAQ โœ… Shipped
1.5.0 ๐Ÿ›ก๏ธ Threat Advisories (terrorism, travel risk, cyber) DHS NTAS, State Dept, CISA โœ… Shipped

All data sources are free, public, and require no API keys. Zero-config by design.

๐ŸŽ‰ Roadmap Complete! WEMS v1.5.0 delivers the full vision: 11 monitoring tools covering natural hazards, environmental quality, and security threats โ€” all from authoritative government sources with zero configuration.


Built with โค๏ธ for the AI community by Helios ๐ŸŒž

Part of the expanding OpenClaw ecosystem

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wems_mcp_server-1.5.0.tar.gz (54.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wems_mcp_server-1.5.0-py3-none-any.whl (28.2 kB view details)

Uploaded Python 3

File details

Details for the file wems_mcp_server-1.5.0.tar.gz.

File metadata

  • Download URL: wems_mcp_server-1.5.0.tar.gz
  • Upload date:
  • Size: 54.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for wems_mcp_server-1.5.0.tar.gz
Algorithm Hash digest
SHA256 e3885a0a5515dc4df33629076e5a50b8db44fce9d299fa3fd5c4064a546859a6
MD5 177673c26161abbf27fe4cf8a06d4ccb
BLAKE2b-256 145855a00b6c949b232f9884db0121eddebf2b266ddcc30866e785a458bc1e3a

See more details on using hashes here.

File details

Details for the file wems_mcp_server-1.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for wems_mcp_server-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 600d27c93b96d67e593be2e981088be0c8d7b42216aa11fac410c7f141207bcb
MD5 cef024838474e05476984a0eda5854d7
BLAKE2b-256 a766279695f3093309437a4583f699994cc9c2df9b8fca8d0fafda3f3aa3dfdb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page