Macrostrat MCP Server
The Macrostrat MCP Server enables querying and analyzing geological data from the Macrostrat API using natural language. With this server, you can:
Access geologic units and stratigraphic columns based on geographic coordinates (latitude and longitude)
Retrieve standard geologic definitions and dictionaries for lithologies, minerals, timescales, and environments
Perform autocomplete searches for definitions (up to 100 matching results)
Get detailed information about specific minerals by element, name, or type
Obtain data about geological time periods based on age
Facilitate analysis of geologic data
Support natural language querying of geological information
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Macrostrat MCP Server What rock formations are found near Denver, Colorado?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
macrostrat-mcp
MCP server for Macrostrat API
An MCP server providing access to the Macrostrat API from Claude Desktop, Claude Code, and any other MCP client.
npx -y macrostrat-mcpNo API key required — the Macrostrat API is free and public.
Overview
This Model Context Protocol (MCP) server enables AI assistants and applications to:
Query comprehensive geologic data and information provided by the Macrostrat API
Access geologic units, columns, minerals, timescales, and more
Get geologic map tiles that the LLM can interpret (questionable utility, but might be useful for some applications)
Analyze geologic data to improve geological understanding
Create graphics and perform data analysis from the data
Users can run queries using natural language.
Related MCP server: Qlik MCP Server
Sample Output
Q. What is the geologic history of Nashville, TN?
A. Let me check the geological data for Nashville's location.
View Result from find-units from macrostrat (local)
{
"lat": 36.1627,
"lng": -86.7816,
"responseType": "long"
}Geological History of Nashville, Tennessee
Mesoproterozoic Basement (1.6-1.1 billion years ago)
Igneous basement rocks (granite and rhyolite)
Part of the ancient North American craton
Early-Middle Cambrian (518-504 million years ago)
Rome Formation: Mixed carbonate-siliciclastic sediments
Shallow marine environment
Part of the developing continental shelf
Middle-Late Cambrian (504-498 million years ago)
Conasauga Formation: Limestone and mixed sediments
Continued marine deposition
Alternating limestone and shale indicating fluctuating sea levels
Late Cambrian-Early Ordovician (498-470 million years ago)
Knox Dolomite: Massive dolomite sequence
Extensive shallow marine platform
Up to 1,200 meters thick
Represents long period of stable marine conditions
Middle-Late Ordovician (470-443 million years ago) Several important formations:
Stones River Group (including Murfreesboro, Pierce, Lebanon Limestones)
Nashville Group (including Hermitage, Bigby-Cannon, Catheys Formations)
Primarily limestone deposits
Rich in fossils
Shallow marine environment
Multiple cycles of sea level change
Early-Middle Silurian (443-423 million years ago)
Brassfield through Decatur Formations
Continued marine limestone deposition
Various marine environments from shallow to deeper water
Middle Devonian-Early Mississippian (390-357 million years ago)
Pegram Formation through Chattanooga Shale
Shift to more clastic (shale) deposition
Chattanooga Shale represents deeper, oxygen-poor conditions
Early-Late Mississippian (357-331 million years ago) Several limestone formations:
Fort Payne Formation
Warsaw Limestone
St. Louis Limestone
Monteagle Limestone
Hartselle Formation
Return to carbonate platform conditions
Diverse marine environments
Cenozoic to Present
Long period of erosion and exposure
Development of the current landscape
Formation of the Nashville Dome structure
River and stream deposits
Key Features
The area was predominantly a marine environment for most of its geological history
Dominated by limestone formations indicating warm, shallow seas
Multiple cycles of sea level change
Rich fossil record, especially in Ordovician rocks
Part of the Nashville Dome structural feature
Long periods of erosion have removed younger rocks
Current topography shaped by differential erosion of various limestone units
Present Day Bedrock
The bedrock of Nashville today consists primarily of Ordovician limestone formations exposed at the surface, particularly the Stones River and Nashville Group limestones. These rocks are well exposed in many areas and have influenced the development of local karst topography, including caves and sinkholes that are common in the region.
Installation
Requires Node.js 20 or newer. No install step is needed — npx fetches the server on
first run.
Claude Desktop
Open your Claude Desktop configuration at:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Add the server configuration:
{
"mcpServers": {
"macrostrat": {
"command": "npx",
"args": ["-y", "macrostrat-mcp"]
}
}
}Close/Quit then restart Claude Desktop
Once you restart you should see an icon for search and tools. Click this button to see the MCP tools available.
Claude Code
claude mcp add macrostrat -- npx -y macrostrat-mcpAny other MCP client
The server speaks MCP over STDIO. Run it with npx -y macrostrat-mcp, or install it
globally with npm install -g macrostrat-mcp and run macrostrat-mcp.
Development
npm install # install dependencies
npm run dev # run from source over STDIO, no build step
npm run build # compile TypeScript to build/
npm run typecheck # type-check without emittingsrc/server.ts holds all the tools, prompts, and API calls — that is the file to edit.
src/index.ts is just the STDIO entry point.
To point Claude Desktop at a local build instead of the published package, use
"command": "node" with "args": ["/full/path/to/macrostrat/build/index.js"], and
restart Claude Desktop after each rebuild.
Using it as a library
The server factory is exported if you want to attach a different transport:
import createServer from "macrostrat-mcp";
const server = createServer();
await server.connect(yourTransport);Troubleshooting
If Claude Desktop cannot find npx, provide its full path (on macOS, typically
/usr/local/bin/npx or /opt/homebrew/bin/npx). The same applies to node if you are
running a local build.
Available Tools
8 toolsdefsDefinitionsC
Routes giving access to standard fields and dictionaries used in Macrostrat
Inputs: endpoint (required), parameters (required).
defs-autocompleteDefinitions AutocompleteB
Quickly retrieve all definitions matching a query. Limited to 100 results
Inputs: query (required).
find-columnsFind ColumnsB
Find geological stratigraphic columns, rock layers, and geological history for any location worldwide. Use for geology, bedrock, formations, age dating, and stratigraphic analysis.
Inputs: lat (required), lng (required), adjacents, responseType.
find-unitsFind UnitsB
Find 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.
Inputs: lat (required), lng (required), responseType.
lat-lng-to-tileLatitude/Longitude to TileA
Convert latitude/longitude coordinates to map tile coordinates (x, y) for a given zoom level. Uses the same web mercator projection as MapKit.
Inputs: lat (required), lng (required), zoom (required).
map-tilesMap TilesA
Get 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.
Inputs: z (required), x (required), y (required), scale, +2 more.
mineral-infoMineral InformationC
Get information about a mineral, use one property
Inputs: mineral, mineral_type, element.
timescaleTimescaleC
Get information about a time period
Inputs: age (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Most tools have distinct purposes, but 'find-columns' and 'find-units' overlap significantly in their descriptions (both for geological analysis of locations), which could cause confusion. Other tools like 'defs' and 'defs-autocomplete' are clearly related but serve different functions, while tools like 'lat-lng-to-tile' and 'map-tiles' are distinct but interdependent.
The naming is inconsistent with mixed conventions: some use snake_case ('lat-lng-to-tile'), some use kebab-case ('defs-autocomplete'), and others use plain words ('defs', 'timescale'). There is no predictable verb_noun pattern, making it harder for agents to infer tool purposes from names alone.
With 8 tools, the count is reasonable for a geological data server, covering definitions, location-based queries, mapping, and mineral/time information. It's slightly under the ideal 10-15 range for comprehensive coverage but not overly sparse, fitting the domain scope adequately.
The tool set covers core geological data access (definitions, units, columns, minerals, timescales) and mapping functions, but there are notable gaps such as missing update/delete operations for data manipulation and limited query capabilities (e.g., no advanced filtering or aggregation tools). It supports basic retrieval but lacks full lifecycle coverage.
Maintenance
Related MCP Connectors
Location tools for Claude and other MCP clients, strongest in the US and Great Britain. Geocode whole lists with a confidence score per row, filter by distance, get road distances and drive-time areas, and plan multi-driver routes with Google Maps links. Check flood zones, crime and live warnings, find nearby places and UK registers (NHS, CQC, food hygiene), and keep shareable maps. Reads and writes Google Sheets. Free: sign in with Google.
SEO research, Search Console, GA4 and PPC tools for Claude and ChatGPT.
Connect Claude to your Platform7n workspaces: chat, links, work and decks. One-click OAuth.
Connect Claude to your Platform7n workspaces: chat, links, work and decks. One-click OAuth.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides access to the USGS Quakes API within Claude Desktop, enabling users to retrieve earthquake data and details through natural language queries.330 npm1MIT
- AlicenseNot gradedqualityDmaintenanceEnables Claude to interact with Qlik Cloud applications and extract data from visualizations through the Qlik Cloud API.11MIT

GRID MCP Serverofficial
AlicenseNot gradedqualityFmaintenanceEnables Claude to query and manipulate GRID spreadsheets via the GRID API using natural language.137 npm3MIT- AlicenseNot gradedqualityCmaintenanceEnables querying the Paleobiology Database for global fossil records via natural language or direct tools, without requiring an API key.328 npmMIT