The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Paleobiology MCP Server listing page.
Search fossil occurrences, resolve taxon fossil ranges, plot diversity through deep time, and look up the geologic time scale via MCP. STDIO or Streamable HTTP.
Public Hosted Server: https://paleobiology.caseyjhand.com/mcp
Eight tools (seven by default) — five domain tools for the Paleobiology Database, plus a DataCanvas trio for SQL over staged occurrence sets. Large occurrence results spill to a canvas; the other domain tools return inline.
| Tool Name | Description |
|---|---|
paleobiology_search_occurrences | Search fossil occurrences by taxon, geologic time, geography, and depositional environment. Every row carries both modern and paleo coordinates. The flagship; broad results spill to a DataCanvas for SQL. |
paleobiology_get_taxon | Resolve a taxon by name or taxon_no to its accepted name, rank, classification, parent, occurrence count, and first/last-appearance (FAD/LAD) range. Run first to resolve names for the other tools. |
paleobiology_get_diversity | Compute a diversity / origination / extinction curve for a clade across geologic time, binned by period, epoch, or age. Returns the full bin set inline. |
paleobiology_list_intervals | Look up the geologic time scale — eons through ages with absolute-age (Ma) boundaries and nesting. Translates named intervals ↔ Ma. Served offline from a bundled ICS snapshot; a name outside it costs one PBDB lookup across the sub-stage and regional scales. |
paleobiology_search_collections | Find fossil collections (localities) by area and geologic time, with their formation, lithology, depositional environment, and co-occurring-fossils count. Paged inline. |
paleobiology_dataframe_query | Run a read-only SQL SELECT over occurrence sets staged on a DataCanvas by paleobiology_search_occurrences. SELECT only. |
paleobiology_dataframe_describe | List the tables and columns staged on a DataCanvas. Call before paleobiology_dataframe_query to discover table and column names. |
paleobiology_dataframe_drop | Drop a single staged table to free memory before its TTL expires. Opt-in — registered only when PALEOBIOLOGY_DATAFRAME_DROP_ENABLED=true. |
paleobiology_search_occurrencesSearch fossil occurrences filtered by taxon, geologic time, geography, and environment — the flagship.
base_name (a clade and all its descendants) or taxon_name (exact) for the taxon filterbase_id filters the same clade by its resolved PBDB taxon_no — take it from paleobiology_get_taxon (or accepted_no on an occurrence row) and skip the name ambiguity. base_name and base_id are mutually exclusive; sending both is rejected at the tool boundaryMaastrichtian) or a max_ma/min_ma range, and/or a lng/lat bounding boxcollection_no scopes the search to a single locality — drill from a paleobiology_search_collections row into the fauna found thereenvironment enum: marine, terrestrial, freshwatercollection_no) is required — an unfiltered call is rejected before the upstream request, not reported as PBDB being unavailablelngmin/lngmax are a closed pair (both or neither), and min_ma must be strictly less than max_ma — both are rejected at the tool boundary with a recovery hint, before the upstream request. A lone latmin or latmax is valid and filters as a half-planelimit, further bounded by PBDB_MAX_OCCURRENCES) — stage on a DataCanvas for SQL via paleobiology_dataframe_query. canvas_id and table_name come back only on that spill path; a result that fits inline stages nothinglimit/offset against the true upstream match count. When occurrences remain, the notice names the page bounds and the exact next offset (Showing occurrences 1–500 of 4170. Advance offset to 500 for the next page.); paging past the end reports the overshoot instead of blaming the filterscanvas_id replaces that canvas's occurrence table — each search restages its result, it does not accumulate across callspaleobiology_get_taxonResolve a taxon by name or integer taxon_no to its full record and fossil temporal range — the name-resolution gateway the occurrence and diversity tools depend on.
taxon_no it returns is the base_id accepted by paleobiology_search_occurrences, paleobiology_get_diversity, and paleobiology_search_collectionsshow_children also lists immediate child taxa, up to 200 per call. children_truncated says whether more remain and children_offset says where the page started — advance children_offset by 200 while children_truncated is true to walk the whole child list. A taxon with over 200 immediate children returns a page, never a silently clipped listpaleobiology_get_diversityCompute a diversity / origination / extinction curve for a clade across geologic time.
base_name or base_id (exactly one is required; both together, or neither, is rejected at the tool boundary), bound by a named interval (e.g. Mesozoic) or a max_ma/min_ma range (min_ma must be strictly less than max_ma)count enum: genera, species, families; resolution enum: period, epoch, agepaleobiology_search_collectionsFind fossil collections (localities) by area and geologic time — "what has been dug up here, and from what rock."
base_name or base_id (mutually exclusive), a named interval or max_ma/min_ma range, a lng/lat bounding box, a formation or lithology name, and/or environment — at least one filter is required (an unfiltered call is rejected before the upstream request)paleobiology_search_occurrences: lngmin/lngmax both or neither, min_ma strictly less than max_malimit/offset; the response discloses when more remaincollection_no from a row — or the same bbox+interval — into paleobiology_search_occurrences to see the fauna found together| Type | Name | Description |
|---|---|---|
| Resource | paleobiology://occurrence/{occurrence_no} | One fossil occurrence with full detail — modern + paleo coordinates, classification, strata, locality, and the CC BY source credit. |
| Resource | paleobiology://taxon/{taxon_no} | One taxon record with its fossil range, classification, and the CC BY source credit. |
All resource data is also reachable via tools — the resources mirror a single-record read of paleobiology_search_occurrences / paleobiology_get_taxon for clients that surface resources. Tool-only clients lose nothing. occurrence_no and taxon_no are bare integers from those tools' output.
Built on @cyanheads/mcp-ts-core:
none, jwt, oauth (runs none by default — PBDB is keyless)in-memory, filesystem, Supabase, Cloudflare KV/R2/D1Paleobiology-specific:
vocab=pbdb so readable field names come straight from upstream instead of hand-mapped terse codespaleobiology_list_intervals resolves the international scale's named intervals ↔ absolute Ma boundaries with no network call, and falls back to a PBDB lookup for the sub-stage and regional names that occurrence and collection rows report (Late Maastrichtian, Lancian), labeling each answer with its source and scaleclassification JSON column)Agent-friendly output:
reference_no, every PBDB-backed tool and resource carries the CC-BY attribution, sparse upstream fields (paleo-coords, formation, late_interval) are omitted rather than zeroed, and diversity counts are flagged as sampledA public instance is available at https://paleobiology.caseyjhand.com/mcp — no installation required. Point any MCP client at it via Streamable HTTP:
Add one of the following to your MCP client configuration file. PBDB is keyless — no API key required.
With bunx:
Or with npx (no Bun required):
Or with Docker:
For Streamable HTTP, set the transport and start the server:
To enable SQL over large occurrence sets, set CANVAS_PROVIDER_TYPE=duckdb (the @duckdb/node-api peer dep ships in dependencies). Without it, paleobiology_search_occurrences still returns its inline preview; the paleobiology_dataframe_* tools fail with a clear "canvas disabled" message.
All variables are optional — the server runs with no configuration against the public PBDB API.
| Variable | Description | Default |
|---|---|---|
PBDB_BASE_URL | Paleobiology Database API base. Override for a mirror/proxy or pinned API version. | https://paleobiodb.org/data1.2 |
PBDB_TIMEOUT_MS | Per-request timeout in milliseconds. Diversity queries over large clades can be slow. | 30000 |
PBDB_MAX_OCCURRENCES | Hard cap on rows pulled per occurrence/collection call. | 1000 |
CANVAS_PROVIDER_TYPE | Set to duckdb to enable the DataCanvas spill path and paleobiology_dataframe_* tools. | none |
PALEOBIOLOGY_DATAFRAME_DROP_ENABLED | Register paleobiology_dataframe_drop. Absent from tools/list when unset. | false |
MCP_TRANSPORT_TYPE | Transport: stdio or http. | stdio |
MCP_HTTP_PORT | Port for HTTP server. | 3010 |
MCP_AUTH_MODE | Auth mode: none, jwt, or oauth. | none |
MCP_LOG_LEVEL | Log level (RFC 5424). | info |
OTEL_ENABLED | Enable OpenTelemetry instrumentation (spans, metrics, completion logs). | false |
See .env.example for the full list of optional overrides.
Build and run:
Run checks and tests:
The Dockerfile defaults to HTTP transport, stateless session mode, and logs to /var/log/paleobiology-mcp-server. OpenTelemetry peer dependencies are installed by default — build with --build-arg OTEL_ENABLED=false to omit them.
| Directory | Purpose |
|---|---|
src/index.ts | createApp() entry point — registers tools/resources and inits services. |
src/config | Server-specific environment variable parsing and validation with Zod. |
src/mcp-server/tools | Tool definitions (*.tool.ts). |
src/mcp-server/resources | Resource definitions (*.resource.ts). |
src/services/pbdb | Paleobiology Database HTTP client, normalization, and domain types. |
src/services/intervals | In-memory index over the bundled ICS geologic time-scale snapshot. |
tests/ | Unit and integration tests mirroring src/. |
See CLAUDE.md/AGENTS.md for development guidelines and architectural rules. The short version:
try/catch in tool logicctx.log for request-scoped logging, ctx.state for tenant-scoped storagesrc/mcp-server/*/definitions/index.ts0,0)Issues and pull requests are welcome. Run checks and tests before submitting:
Apache-2.0 — see LICENSE for details.
Data is from the Paleobiology Database, licensed CC BY 4.0 — credit it in downstream use.