# Macrostrat [Health: Active]

**Category:** 🌳 Environment & Nature  
**Repository:** https://github.com/pipeworx-io/mcp-macrostrat  
**GitHub Stars:** 0  
**npm Downloads (last month):** 905  
**Views:** 5  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/macrostrat

## Description
Macrostrat MCP — geologic map / column / unit data for North America and beyond.

## Tools
Capabilities this server exposes over MCP:

- **find_units** — Find geologic rock units from Macrostrat by location + age, by stratigraphic name, or by lithology. Provide lat+lng (optionally with age in millions of years, Ma), or a strat_name (e.g. "Hell Creek"), or a lith (e.g. "granite"). Returns units with formation/group, stratigraphic column, bottom/top ages (Ma) and time intervals, lithology, and max thickness. Keyless. North America and beyond.
- **find_columns** — List Macrostrat stratigraphic columns near a geographic point. Provide lat and lng (decimal degrees). Returns the columns covering that location with column name, regional group, coordinates, unit count, and area. Keyless.
- **define_lithology** — Look up Macrostrat lithology definitions by name (e.g. "granite", "limestone") returning lith_id, name, type, group, and class; omit lith to list all lithologies (capped at 50 results).Returns lithology id, name, type, group, and class. Keyless.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "macrostrat": {
    "command": "npx",
    "args": ["-y","@pipeworx/mcp-macrostrat"]
  }
}
```

## Documentation

## What Macrostrat MCP server does

Macrostrat MCP server exposes selected Macrostrat data through the Model Context Protocol. It is intended for geological research, map interpretation, stratigraphic lookup, and location-based exploration of rock units. The covered region includes North America and other areas represented by Macrostrat.

Three domain tools are available:

- `find_units` searches for geologic rock units using latitude and longitude, an optional age in millions of years, a stratigraphic name, or a lithology term. Results can include formation or group, the associated stratigraphic column, bottom and top ages, time intervals, lithology, and maximum thickness.
- `find_columns` returns stratigraphic columns near a supplied geographic point. Results include column name, regional group, coordinates, unit count, and area.
- `define_lithology` looks up lithology terms such as granite or limestone. Supplying no term lists lithologies, with results capped at 50; returned fields include lithology ID, name, type, group, and class.

## How it works

The hosted connection uses the Pipeworx gateway at `https://gateway.pipeworx.io/macrostrat/mcp`. MCP clients can connect to that URL directly. A separate full-gateway URL, `https://gateway.pipeworx.io/mcp`, exposes the wider Pipeworx catalog directly, while the Macrostrat endpoint lists the Macrostrat pack tools directly.

The endpoint also exposes shared Pipeworx meta-tools, including `ask_pipeworx`, `discover_tools`, `search_within`, and memory-related tools. `ask_pipeworx` can route natural-language questions across the broader catalog, including from a Macrostrat pack connection. The exact tool scope is reported by the connection's `initialize` response.

For clients that use local processes, `@pipeworx/mcp-macrostrat` provides a Node.js stdio bridge. It forwards calls to the hosted gateway, so it requires network access and does not provide offline operation. The tools can also be called without an MCP client through the gateway's HTTP API, using endpoints such as `/v1/tools/find_units`.

## Setup and configuration

For a hosted MCP connection, add the gateway URL under an MCP server named `macrostrat`:

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

The local alternative uses `npx`:

```json
{
  "mcpServers": {
    "macrostrat": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-macrostrat"]
    }
  }
}
```

Anonymous use is available, with a limit of 50 calls per day. Setting `PIPEWORX_API_KEY` supplies a Pipeworx account key and raises the allowance to 200 calls per day. Set `PIPEWORX_META_TOOLS=1` for the local bridge if the shared gateway tools should also be listed. When using an HTTPS proxy, newer Node.js releases can use it when `NODE_USE_ENV_PROXY=1` is enabled.

## Tools and capabilities

- Search units by coordinates, geological age, stratigraphic name, or lithology.
- Inspect unit ages, time intervals, lithology, formations, groups, columns, and maximum thickness.
- Find stratigraphic columns covering a geographic point.
- Retrieve column location, regional grouping, unit count, and area.
- Resolve lithology names to Macrostrat IDs and classification fields.
- Query the tools through MCP, local stdio, or HTTP.

## Limitations and notes

All three Macrostrat tools are keyless at the tool level, but hosted and local calls still require network access. Anonymous gateway usage is limited to 50 calls per day; an account key increases that allowance to 200 calls per day. The local package forwards requests to the gateway rather than running a local copy of the data. Pack endpoints include shared Pipeworx meta-tools, so clients may display more tools than the three Macrostrat-specific tools. The integration is independent and unofficial, and is not affiliated with or endorsed by the upstream provider.

_Full upstream README: https://allmcps.com/mcp/macrostrat/readme_

