search_earthquakes

Pack: usgs-earthquakes · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/search_earthquakes for the schema, then POST the same URL with its arguments for the data.

Search the USGS earthquake catalog (FDSNWS event API) for real-time and historical seismic events. Filter by time window, magnitude, depth, and a circular geographic area. For “last N days/hours” questions pass days/hours rather than computing start_time yourself. Returns a compact list of quakes with magnitude, location, time, coordinates, depth, and significance, plus the exact start_time/end_time and magnitude filter actually queried. Keyless.

Parameters

NameTypeRequiredDescription
start_timestringno
end_timestringno
daysnumberno
hoursnumberno
min_magnitudenumbernoMinimum magnitude (e.g. 5 for M5+).
max_magnitudenumbernoMaximum magnitude.
latitudenumbernoCenter latitude for a circular search (use with longitude + max_radius_km).
longitudenumbernoCenter longitude for a circular search (use with latitude + max_radius_km).
max_radius_kmnumbernoSearch radius in km around latitude/longitude.
min_depth_kmnumbernoMinimum hypocenter depth in km.
max_depth_kmnumbernoMaximum hypocenter depth in km.
limitnumbernoMax events to return (default 20, max 100).
order_bystringnoSort order: “time” (newest first, default), “magnitude” (largest first), “time-asc”, or “magnitude-asc”.

Example call

Arguments

{}

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":"search_earthquakes","arguments":{}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('search_earthquakes', {});

More examples

{
  "min_magnitude": 6,
  "days": 30,
  "limit": 5
}
{
  "latitude": 35.68,
  "longitude": 139.69
}

Response shape

FieldTypeDescription
countnumberTotal number of earthquakes matching criteria
earthquakesarrayList of earthquakes matching search criteria
Full JSON Schema
{
  "type": "object",
  "properties": {
    "count": {
      "type": "number",
      "description": "Total number of earthquakes matching criteria"
    },
    "earthquakes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "USGS event ID"
          },
          "magnitude": {
            "type": "number",
            "description": "Earthquake magnitude"
          },
          "magType": {
            "type": "string"
          },
          "place": {
            "type": "string",
            "description": "Location description"
          },
          "time": {
            "type": "string",
            "description": "Event time in ISO 8601 format"
          },
          "longitude": {
            "type": "number",
            "description": "Epicenter longitude"
          },
          "latitude": {
            "type": "number",
            "description": "Epicenter latitude"
          },
          "depth_km": {
            "type": "number",
            "description": "Depth below surface in kilometers"
          },
          "felt_reports": {
            "type": [
              "null",
              "number"
            ]
          },
          "tsunami_flag": {
            "type": "boolean"
          },
          "significance": {
            "type": "number",
            "description": "Event significance score"
          },
          "url": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "description": "Event type (e.g., earthquake)"
          }
        }
      },
      "description": "List of earthquakes matching search criteria"
    }
  }
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the usgs-earthquakes pack
{
  "mcpServers": {
    "usgs-earthquakes": {
      "url": "https://gateway.pipeworx.io/usgs-earthquakes/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 23, 2026