GnistAI GnistAI
Log in

Earthquakes (USGS)

Recent and historical earthquake data — magnitude, location, depth, and alerts.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 4 tools tools 4 4 Environment

Data source: USGS Earthquake Hazards

MCP MCP Protocol

Endpoint https://context.gnist.ai/mcp/earthquakes/
claude_desktop_config.json
{
  "mcpServers": {
    "gnist-earthquakes": {
      "url": "https://context.gnist.ai/mcp/earthquakes/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
Shell
curl -X POST "https://context.gnist.ai/mcp/earthquakes/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "get_earthquake", "arguments": {"event_id": "example"}}}'

API REST API

API Root https://context.gnist.ai/rest/earthquakes/

4 endpoints available:

Shell
curl "https://context.gnist.ai/rest/earthquakes/get_earthquake?event_id=example" \
  -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx

resp = httpx.get(
    "https://context.gnist.ai/rest/earthquakes/get_earthquake",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    params={
        "event_id": "example"
},
)
print(resp.json())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc earthquakes

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (4)

search_earthquakes
Search earthquakes from the USGS seismic event database.
ParameterTypeRequiredDescription
min_magnitudeanyoptionalMinimum magnitude (e.g. 4.5 for significant quakes).
max_magnitudeanyoptionalMaximum magnitude.
start_timeanyoptionalStart date/time in ISO 8601 (e.g. "2024-01-01" or "2024-01-01T00:00:00").
end_timeanyoptionalEnd date/time in ISO 8601.
min_latitudeanyoptionalSouthern boundary (-90 to 90).
max_latitudeanyoptionalNorthern boundary (-90 to 90).
min_longitudeanyoptionalWestern boundary (-180 to 180).
max_longitudeanyoptionalEastern boundary (-180 to 180).
min_depthanyoptionalMinimum depth in km.
max_depthanyoptionalMaximum depth in km.
limitintegeroptionalMaximum results to return (1-200, default 20). (default: 20)
order_bystringoptionalSort order — "time" (newest first), "time-asc", "magnitude", "magnitude-asc". (default: "time")
get_earthquake
Get detailed information about a specific earthquake by its USGS event ID.
ParameterTypeRequiredDescription
event_idstringrequiredThe USGS event identifier (e.g. "us7000n7q6").
latest_earthquakes
Get the latest significant earthquakes globally or near a specific location.
ParameterTypeRequiredDescription
min_magnitudenumberoptionalMinimum magnitude threshold (default 4.5). (default: 4.5)
limitintegeroptionalMaximum results to return (1-100, default 10). (default: 10)
latitudeanyoptionalCenter latitude for geographic filter (-90 to 90). Requires longitude.
longitudeanyoptionalCenter longitude for geographic filter (-180 to 180). Requires latitude.
max_radius_kmanyoptionalSearch radius in kilometers from the center point (default 500 if lat/lon given).
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related