mcp-hazards
An MCP server that gives AI agents grounded access to US natural-hazard data — weather alerts, forecasts, earthquakes, and FEMA flood zones — from free, keyless US government APIs.
README
mcp-hazards
An MCP server that gives AI agents grounded access to US natural-hazard data — weather alerts, forecasts, earthquakes, and FEMA flood zones — from free, keyless US government APIs. Hazard questions ("Is this address in a flood zone?", "Any warnings near the job site today?") are exactly where an LLM should not guess: the answers exist, they're authoritative, and they change hourly. This server turns those questions into schema-validated tool calls with typed Pydantic outputs, bounded inputs, and honest error messages — no API keys, no scraping, no hallucinated risk assessments.
Tools
| Tool | Inputs | Source API |
|---|---|---|
geocode_address |
address |
US Census Geocoder |
weather_alerts |
lat, lon |
NWS API /alerts/active |
point_forecast |
lat, lon |
NWS API /points → gridpoint forecast |
recent_earthquakes |
lat, lon, radius_km=100, days=30, min_magnitude=2.5 |
USGS FDSN Event Service |
flood_zone |
lat, lon |
FEMA National Flood Hazard Layer (ArcGIS REST) |
flood_zone translates FEMA zone codes into plain English: A/AE/AH/AO/AR/A99 and V/VE are high-risk Special Flood Hazard Areas, shaded X (0.2% annual chance) is moderate, unshaded X is minimal, D is undetermined.
All tools validate inputs up front (latitude/longitude ranges, bounded radius/days/magnitude) and return explicit messages for empty results rather than empty payloads.
Install
Requires Python 3.11+.
git clone https://github.com/jsuich/mcp-hazards.git
cd mcp-hazards
python3 -m venv .venv
.venv/bin/pip install -e .
Use with Claude Code
claude mcp add hazards -- /absolute/path/to/mcp-hazards/.venv/bin/mcp-hazards
Use with Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"hazards": {
"command": "/absolute/path/to/mcp-hazards/.venv/bin/mcp-hazards"
}
}
}
Example prompts
- "Any active weather alerts for 123 Main St, Augusta GA?"
- "What's the forecast for the next few days at Lake Tahoe (39.09, -120.03)?"
- "List magnitude 3+ earthquakes within 200 km of San Jose in the last 90 days."
- "Is 400 Royal St, New Orleans in a FEMA flood zone? What does the zone mean?"
Testing
Tests are fully network-mocked with respx — pytest never touches a live API.
.venv/bin/pip install -e ".[dev]"
.venv/bin/python -m pytest -q
A separate live smoke script (not part of the test suite) exercises the real endpoints:
.venv/bin/python scripts/live_smoke.py
Data sources and disclaimer
Data is provided by the US Census Bureau, National Weather Service (NOAA), US Geological Survey, and FEMA via their public APIs. This project is not affiliated with or endorsed by any of these agencies. Upstream data can be delayed, incomplete, or revised.
Do not use this software for life-safety decisions. For emergencies and official guidance, rely on local authorities, NOAA Weather Radio, and official agency channels.
License
MIT © 2026 Josh Suich
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.