search_earthquakes
Pack: usgs-earthquake · Endpoint: https://gateway.pipeworx.io/usgs-earthquake/mcp
Search for earthquakes by date range, magnitude, and geographic location. Supports circular area search by lat/lon/radius. Example: search_earthquakes({ starttime: “2024-01-01”, endtime: “2024-01-31”, minmagnitude: 5.0 }) or search_earthquakes({ starttime: “2024-01-01”, endtime: “2024-12-31”, latitude: 35.68, longitude: 139.69, maxradius: 5, minmagnitude: 3.0 })
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
starttime | string | yes | Start date in YYYY-MM-DD format |
endtime | string | yes | End date in YYYY-MM-DD format |
minmagnitude | number | no | Minimum magnitude (optional) |
maxmagnitude | number | no | Maximum magnitude (optional) |
latitude | number | no | Center latitude for geographic search, -90 to 90 (optional) |
longitude | number | no | Center longitude for geographic search, -180 to 180 (optional) |
maxradius | number | no | Maximum search radius in degrees from lat/lon (max 180, optional) |
Example call
Arguments
{
"starttime": "2024-01-01",
"endtime": "2024-01-31",
"minmagnitude": 5
}
curl
curl -X POST https://gateway.pipeworx.io/usgs-earthquake/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_earthquakes","arguments":{"starttime":"2024-01-01","endtime":"2024-01-31","minmagnitude":5}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('search_earthquakes', {
"starttime": "2024-01-01",
"endtime": "2024-01-31",
"minmagnitude": 5
});
More examples
{
"starttime": "2024-01-01",
"endtime": "2024-12-31",
"latitude": 35.68,
"longitude": 139.69,
"maxradius": 5,
"minmagnitude": 3
}
Response shape
Always returns: count, earthquakes
| Field | Type | Description |
|---|---|---|
count | number | Total number of earthquakes matching criteria |
earthquakes | array | List of earthquakes matching search criteria |
Full JSON Schema
{
"type": "object",
"properties": {
"count": {
"type": "number",
"description": "Total number of earthquakes matching criteria"
},
"earthquakes": {
"type": "array",
"description": "List of earthquakes matching search criteria",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "USGS event ID"
},
"magnitude": {
"type": "number",
"description": "Earthquake magnitude"
},
"place": {
"type": "string",
"description": "Location description"
},
"time": {
"type": "string",
"description": "Event time in ISO 8601 format"
},
"latitude": {
"type": "number",
"description": "Epicenter latitude"
},
"longitude": {
"type": "number",
"description": "Epicenter longitude"
},
"depth_km": {
"type": "number",
"description": "Depth below surface in kilometers"
},
"type": {
"type": "string",
"description": "Event type (e.g., earthquake)"
},
"alert": {
"type": [
"string",
"null"
],
"description": "Alert level if applicable"
},
"tsunami": {
"type": "boolean",
"description": "Tsunami warning flag"
},
"significance": {
"type": "number",
"description": "Event significance score"
}
},
"required": [
"id",
"magnitude",
"place",
"time",
"latitude",
"longitude",
"depth_km",
"type",
"tsunami",
"significance"
]
}
}
},
"required": [
"count",
"earthquakes"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"usgs-earthquake": {
"url": "https://gateway.pipeworx.io/usgs-earthquake/mcp"
}
}
}
See Getting Started for client-specific install steps.