get_recent
Pack: usgs-earthquake · Endpoint: https://gateway.pipeworx.io/usgs-earthquake/mcp
Get recent earthquakes worldwide, optionally filtered by minimum magnitude. Returns location, magnitude, depth, and time. Example: get_recent({ minmagnitude: 4.5, limit: 10 })
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
minmagnitude | number | no | Minimum magnitude to include, e.g. 2.5 for notable, 4.5 for significant (default: 2.5) |
limit | number | no | Maximum number of results, 1-20000 (default: 20) |
Example call
Arguments
{
"minmagnitude": 4.5,
"limit": 10
}
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":"get_recent","arguments":{"minmagnitude":4.5,"limit":10}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_recent', {
"minmagnitude": 4.5,
"limit": 10
});
More examples
{
"minmagnitude": 2.5
}
Response shape
Always returns: count, earthquakes
| Field | Type | Description |
|---|---|---|
count | number | Total number of earthquakes in response |
earthquakes | array | List of recent earthquakes |
Full JSON Schema
{
"type": "object",
"properties": {
"count": {
"type": "number",
"description": "Total number of earthquakes in response"
},
"earthquakes": {
"type": "array",
"description": "List of recent earthquakes",
"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.