find_units

Pack: macrostrat · Endpoint: https://gateway.pipeworx.io/macrostrat/mcp

Find geologic rock units from Macrostrat by location + age, by stratigraphic name, or by lithology.

Parameters

NameTypeRequiredDescription
latnumbernoLatitude (decimal degrees). Must be paired with lng.
lngnumbernoLongitude (decimal degrees). Must be paired with lat.
agenumbernoGeologic age in millions of years (Ma). Optional; used with lat+lng.
strat_namestringnoStratigraphic name to match, e.g. “Hell Creek”.
lithstringnoLithology to match, e.g. “granite”, “sandstone”.
limitnumbernoMax units to return (default 20).

Example call

Arguments

{
  "lat": 40.8071,
  "lng": -104.9901
}

curl

curl -X POST https://gateway.pipeworx.io/macrostrat/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"find_units","arguments":{"lat":40.8071,"lng":-104.9901}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('find_units', {
  "lat": 40.8071,
  "lng": -104.9901
});

More examples

{
  "lat": 40.8071,
  "lng": -104.9901,
  "age": 66
}
{
  "strat_name": "Hell Creek"
}
{
  "lith": "granite",
  "limit": 10
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "macrostrat": {
      "url": "https://gateway.pipeworx.io/macrostrat/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build September 7, 2026