count_earthquakes

Pack: usgs-earthquakes · Endpoint: https://gateway.pipeworx.io/usgs-earthquakes/mcp

Count earthquakes matching a filter without returning the events — fast for questions like “how many M5+ quakes in the last month near X”. Same filters as search_earthquakes (time, magnitude, circular area). Keyless.

Parameters

NameTypeRequiredDescription
start_timestringnoISO date/time lower bound. Defaults to 30 days ago.
end_timestringnoISO date/time upper bound. Defaults to now.
min_magnitudenumbernoMinimum magnitude (e.g. 5 for M5+).
max_magnitudenumbernoMaximum magnitude.
latitudenumbernoCenter latitude for a circular search.
longitudenumbernoCenter longitude for a circular search.
max_radius_kmnumbernoSearch radius in km around latitude/longitude.

Example call

curl -X POST https://gateway.pipeworx.io/usgs-earthquakes/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"count_earthquakes","arguments":{}}}'

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "usgs-earthquakes": {
      "url": "https://gateway.pipeworx.io/usgs-earthquakes/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build June 10, 2026