count-earthquakes
Count earthquakes matching the given search parameters, without returning the events themselves. Useful for sizing a query before running it.
Search the USGS earthquake catalog by time, place, magnitude and depth — no key, no account.
LABSCO SUMMARY
USGS caps a single query at 20,000 events, and a broad search — a whole region across twenty years — will run into it. Counting first turns that from a failed call into a decision about how to narrow the window.
A three-tool client for the USGS FDSN event web service. Search the catalog with the full parameter set, count matches before running a query, and pull the detailed record for one event including its origin quality metrics.
The npm package usgs-quakes-mcp over stdio, run with npx -y usgs-quakes-mcp or installed globally. Node.js 20 or newer. No API key: the USGS service is free and public. The upstream service caps any single query at 20,000 events, which is what count-earthquakes exists for.
One command — npx -y usgs-quakes-mcp
USE CASES
Bounding box or radius, a date range, and a magnitude floor, answered from the official catalog.
Get the match count first, so a sweep does not run into the upstream result cap.
Depth, felt reports, magnitude type and the origin quality metrics behind the location estimate.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
count-earthquakesCount earthquakes matching the given search parameters, without returning the events themselves. Useful for sizing a query before running it.
find-earthquake-detailsGet detailed information about a single earthquake, including origin quality metrics, by its USGS event id (e.g. 'us6000d3zh').
find-earthquakesSearch the USGS earthquake catalog by time, location, magnitude, and depth. Returns a summary of each matching event.
BEFORE YOU INSTALL
3 tools when we connected. USGS caps any single query at 20,000 events; use count-earthquakes to check before running one.
npx on PATH
Both documented clients run the server on your machine.
CONTEXT COST
Rated by the size of the 3 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npx -y usgs-quakes-mcp{
"mcpServers": {
"usgs-quakes": {
"command": "npx",
"args": [
"-y",
"usgs-quakes-mcp"
]
}
}
}claude mcp add usgs-quakes -- npx -y usgs-quakes-mcp