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

  • 🌋 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 Pacific + Central Warning Centers Global ocean basins
🌋 Volcanoes Smithsonian GVP + USGS Global volcanic activity
☀️ Solar Events NOAA Space Weather Solar flares, CMEs, geomagnetic 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

  • check_earthquakes - Query recent earthquake activity ✅
  • check_solar - Monitor space weather events (K-index, solar flares, CMEs) ✅
  • check_volcanoes - Track volcanic activity alerts ✅ NEW!
  • check_tsunamis - Monitor tsunami warnings ✅ NEW!
  • configure_alerts - Update alert thresholds and webhooks ✅

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())')"

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.0.0.tar.gz (19.1 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.0.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for wems_mcp_server-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4731e0b60eeb83ea9b7b039afa46538e4641f7f6e9099271e1f1c3b979b7eab0
MD5 c91b4bcd3a183f597c4bd9ddabe0fab0
BLAKE2b-256 1ff635ff9a98869e5c693ff56194694a646d281308d94316dfa86518f95e9e14

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wems_mcp_server-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0b019757fd4e21adec62e9eeb7a5b92519978e611052c44a38b94787e12f5167
MD5 b37521a6a8f5890f93146f15dbf5a8d3
BLAKE2b-256 c316444e46434ebde5872129c6658ff6ffb339a46e9eb33cc27a58bc560a755b

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