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
| Name | Type | Required | Description |
|---|---|---|---|
start_time | string | no | ISO date/time lower bound. Defaults to 30 days ago. |
end_time | string | no | ISO date/time upper bound. Defaults to now. |
min_magnitude | number | no | Minimum magnitude (e.g. 5 for M5+). |
max_magnitude | number | no | Maximum magnitude. |
latitude | number | no | Center latitude for a circular search. |
longitude | number | no | Center longitude for a circular search. |
max_radius_km | number | no | Search radius in km around latitude/longitude. |
Example call
Arguments
{
"start_time": "2026-05-09",
"end_time": "2026-06-09",
"min_magnitude": 5
}
curl
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":{"start_time":"2026-05-09","end_time":"2026-06-09","min_magnitude":5}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('count_earthquakes', {
"start_time": "2026-05-09",
"end_time": "2026-06-09",
"min_magnitude": 5
});
More examples
{
"latitude": 35,
"longitude": 139,
"max_radius_km": 200,
"min_magnitude": 6.5,
"start_time": "2026-01-01"
}
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.