defs
Routes giving access to standard fields and dictionaries used in Macrostrat
Ask what the bedrock is under any coordinate and get the stratigraphic column, the named formations and their ages back from Macrostrat.
LABSCO SUMMARY
The two location tools are the reason to install it: one question about a place comes back as an ordered stratigraphic history — basement, then each formation with its age range and depositional setting — rather than as a link to a map. The definitions tools matter more than they look, because geological queries fail on vocabulary; resolving the term first is what makes the unit lookup return the right thing. The map tiles are the weakest part and the author says so.
A client for the Macrostrat API — the geological database of stratigraphic columns, rock units, minerals and the geologic timescale. Eight tools, all reads, over a free and public API.
Node.js 20 or newer, and nothing else — npx -y macrostrat-mcp over stdio, with no API key because the Macrostrat API is free and public.
One command — npx -y macrostrat-mcp
USE CASES
Give the coordinates and get the units and columns beneath them, with ages and lithology.
The column comes back as an ordered sequence you can narrate from oldest to youngest.
Resolve the formation or lithology name against Macrostrat's own dictionaries first.
Look it up by a single property rather than by free text.
Convert the coordinates to tile x and y first, then request the tile URLs at that zoom.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
defsRoutes giving access to standard fields and dictionaries used in Macrostrat
defs-autocompleteQuickly retrieve all definitions matching a query. Limited to 100 results
find-columnsFind geological stratigraphic columns, rock layers, and geological history for any location worldwide. Use for geology, bedrock, formations, age dating, and stratigraphic analysis.
find-unitsFind geological rock units, formations, bedrock geology, and mineral information for any location worldwide. Use for geology questions, rock types, age dating, lithology, and geological analysis.
lat-lng-to-tileConvert latitude/longitude coordinates to map tile coordinates (x, y) for a given zoom level. Uses the same web mercator projection as MapKit.
map-tilesGet map tile URLs from the Macrostrat tiles server. Use lat-lng-to-tile tool first to get proper x,y coordinates. Defaults to 'carto' scale which automatically adapts detail level to zoom.
mineral-infoGet information about a mineral, use one property
timescaleGet information about a time period
BEFORE YOU INSTALL
8 tools when we connected. Names use hyphens, such as find-units and lat-lng-to-tile, and all eight tools only read from a public API.
npx on PATH
Both documented clients run the server on your machine.
CONTEXT COST
Rated by the size of the 8 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npx -y macrostrat-mcp{
"mcpServers": {
"macrostrat": {
"command": "npx",
"args": [
"-y",
"macrostrat-mcp"
]
}
}
}claude mcp add macrostrat -- npx -y macrostrat-mcp