Paleobiology Mcp Server

io.github.cyanheadsPublished by GitHub account cyanheadsv0.5.0Updated Nov 1, 2026

Search fossil occurrences, taxon ranges, diversity through deep time, and the geologic time scale.

VerifiedStreamable HTTPWeb executableDatabasesKnowledge & MemoryData & Analytics

Overview

AI-generated overview

Queries the Paleobiology Database for fossil occurrences, taxon ranges, diversity curves and the geologic time scale.

What you can do
  • Search fossil occurrences by taxon, geologic time, geography, formation or environment, with modern and paleo coordinates
  • Resolve taxa by name or ID to classification, status and first/last appearance ranges
  • Compute diversity, origination and extinction curves for a clade binned by period, epoch or age
  • Look up the geologic time scale and translate named intervals to absolute Ma boundaries
  • Find fossil collections and localities by area, time, formation or lithology
  • Resolve reference numbers to full citations, and run read-only SQL over staged occurrence sets
When to use it
Useful for paleontology, geology and evolution questions: where and when a clade appears in the fossil record, how diversity changed through deep time, or which publications back a set of fossil records. Also handy for large occurrence sets that need grouping or counting rather than re-fetching.
Requirements
Works as a public hosted HTTP endpoint or as a local process via npx (Node.js) or Docker; Bun 1.4+ or Node.js 24+ for a source build. No API key or account is needed. Network access to the Paleobiology Database API is required; all environment variables are optional.
Before you install
Read-only: it queries public data and does not write or delete anything. Diversity counts reflect sampling and collection effort, not true past diversity, and origination/extinction figures are first and last appearances in the selected data. Data is CC BY 4.0 and must be credited downstream. Optional failure-payload logging can record tool arguments and results.

Installation

In SourceWeft

  1. Open Paleobiology Mcp Server in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.cyanheads%2Fpaleobiology-mcp-server/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "paleobiology": {
      "type": "http",
      "url": "https://paleobiology.caseyjhand.com/mcp"
    }
  }
}

README

@cyanheads/paleobiology-mcp-server

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.

9 Tools • 3 Data Resources • 1 Skill


Overview

Fossil biodiversity over the Paleobiology Database (PBDB), spanning roughly 540 million years. Resolve taxon fossil ranges, search fossil occurrences and collections by taxon, geologic time, and location, and plot diversity through deep time.

Tools

ToolDescription
paleobiology_search_occurrencesSearch fossil occurrences by taxon, geologic time, geography, and depositional environment. Every row carries both modern and paleo coordinates; with DataCanvas on, broad results spill to a canvas for SQL.
paleobiology_get_taxonResolve a taxon by name or taxon_no to matched and accepted identities, status, classification, and FAD/LAD range.
paleobiology_get_diversityCompute a diversity / origination / extinction curve for a clade across geologic time.
paleobiology_list_intervalsLook up the geologic time scale — named intervals ↔ absolute Ma boundaries.
paleobiology_search_collectionsFind fossil collections (localities) by area, geologic time, formation, and lithology.
paleobiology_get_referencesResolve the reference_no on occurrence and collection rows to full citations — authors, year, title, publication, pages, DOI.
paleobiology_dataframe_queryRun a read-only SQL SELECT over occurrence sets staged on a DataCanvas. Listed only when DataCanvas is on.
paleobiology_dataframe_describeList the tables and columns staged on a DataCanvas. Listed only when DataCanvas is on.
paleobiology_dataframe_dropDrop a single staged table to free memory before its TTL expires. Opt-in; also needs DataCanvas.

Resources

ResourceDescription
paleobiology://occurrence/{occurrence_no}One fossil occurrence with full detail — modern + paleo coordinates, classification, strata, locality.
paleobiology://taxon/{taxon_no}One taxon record with its fossil range and classification.
paleobiology://reference/{reference_no}One bibliographic reference — the formatted citation plus its structured fields.

All resource data is also reachable via tools — the resources mirror a single-record read of paleobiology_search_occurrences / paleobiology_get_taxon / paleobiology_get_references for clients that surface resources. Tool-only clients lose nothing.


Capability reference

paleobiology_search_occurrences tool

  • Requires at least one taxon, time, geographic, formation, environment, or collection_no filter. Use base_name or base_id for a clade, taxon_name for an exact match; page with limit (default 100, maximum 10,000, subject to PBDB_MAX_OCCURRENCES) and offset. Every served row appears on both response surfaces
  • Returns modern and paleo coordinates, named intervals and Ma ages, strata, and higher classification, with totalCount for PBDB's true match count. Errors: missing_filter, conflicting_taxon_filter, incomplete_bbox, inverted_ma_range, and pbdb_invalid_parameter (with PBDB's reason) for a value PBDB cannot use
  • With DataCanvas on, a first page with further matches fetches and stages up to 50,000 matching occurrences from offset zero. The requested page stays inline; the notice reports staged versus total coverage. Later pages and complete pages stage nothing. Use canvas_id + table_name with paleobiology_dataframe_describe, then SQL. Reusing a canvas atomically replaces its occurrence table. At the canvas cap, reuse an existing canvas or narrow the matching set
  • Optional staging shares a 55-second deadline with the page request. A transient staging-fetch failure returns the valid inline page with an unavailable notice; caller cancellation propagates

paleobiology_get_taxon tool

  • Resolve by name or taxon_no to the matched record's name, rank, classification, parent, occurrence count, and FAD/LAD range in Ma. Accepted identity (accepted_no, accepted_name, accepted_rank) and PBDB's taxonomic status are separate; use accepted_no as base_id for an accepted-clade search
  • show_children adds up to 200 immediate child taxa per call; children_truncated and children_offset say whether and where to continue
  • Typed errors: taxon_not_found, missing_selector, conflicting_selector when both name and taxon_no are sent

paleobiology_get_diversity tool

  • Requires a clade (base_name or base_id), optionally bounded by time, country, formation, environment, or a geographic bounding box. Choose count (genera, species, families) and resolution (period, epoch, age); defaults are genera by period
  • Returns the full bin set inline, oldest-first, with sampled, implied, origination, extinction, range-through, and occurrence counts
  • Originations and extinctions are first/last appearances in the selected data, not established biological events. Notices identify possible truncation at the oldest and youngest bins. recent: true extends known extant ranges to the present; the default is false
  • Typed errors: missing_filter, conflicting_taxon_filter, incomplete_bbox, inverted_ma_range, pbdb_invalid_parameter for a value PBDB cannot use (an unknown interval)

paleobiology_list_intervals tool

  • Filter by name, a min_ma/max_ma overlap window, or level (eon, era, period, epoch, age); omit filters to browse the bundled ICS scale. Nonzero and single-bound windows require positive-duration overlap; an explicit equal-bound point includes both intervals meeting there
  • Returns interval rank, Ma boundaries, parent_no, and an upstream scale where available. source (bundled_ics / pbdb_upstream) and snapshot_version identify the source; names outside the snapshot use PBDB
  • Typed errors: interval_not_found for an unmatched name; retryable interval_lookup_unavailable when PBDB cannot resolve a name outside the snapshot; inverted_ma_range when max_ma is below min_ma

paleobiology_search_collections tool

  • Requires at least one taxon, time, geographic, country, formation, lithology, or environment filter. Page with limit (default 100, maximum 10,000, subject to PBDB_MAX_OCCURRENCES) and offset. Every served row appears on both response surfaces
  • Returns locality coordinates, age, strata, lithology, environment, and n_occs, with totals. Pass collection_no to paleobiology_search_occurrences for the fauna at that locality
  • Typed errors: missing_filter, conflicting_taxon_filter, incomplete_bbox, inverted_ma_range, pbdb_invalid_parameter for a value PBDB cannot use (an unknown interval, or an unknown lithology sent as the only filter)

paleobiology_get_references tool

  • Pass a nonempty list of positive integer reference_nos from occurrence or collection rows; the first 500 distinct IDs resolve in one PBDB request, and the rest come back in remaining_reference_nos for the next call
  • Returns references in request order: citation, title, and publication converted from PBDB HTML to plain text with one entity decode, plus year, authors, editors, volume, issue, pages, publisher, language, and doi where recorded
  • Ids PBDB has no reference for land in not_found with a notice — a miss is a result, not an error

paleobiology_dataframe_query tool

  • Runs a read-only SQL SELECT against occurrence sets staged by paleobiology_search_occurrences, using the table_name it returned; writes and file-reading functions are rejected
  • The classification column is JSON — roll up by rank with json_extract_string(classification, '$.family') (also $.phylum, $.class, $.order, $.genus)
  • Returns every row supplied by the canvas query. truncated: true means row_count stopped at the framework's row cap; use a stable ORDER BY with SQL LIMIT/OFFSET to continue
  • Listed only when DataCanvas is on (CANVAS_PROVIDER_TYPE=duckdb)

paleobiology_dataframe_describe tool

  • Lists the tables staged on a canvas, each with its row count and column names/types/nullability — call before paleobiology_dataframe_query to discover identifiers
  • Listed only when DataCanvas is on (CANVAS_PROVIDER_TYPE=duckdb)

paleobiology_dataframe_drop tool

  • Drops one staged table by canvas_id + table_name to free memory before its TTL expires; dropping a nonexistent table returns dropped: false, not an error
  • Opt-in — needs DataCanvas on and PALEOBIOLOGY_DATAFRAME_DROP_ENABLED=true
  • Typed error: canvas_not_found when the canvas has expired or never existed

paleobiology://occurrence/{occurrence_no} resource

  • Path param occurrence_no is a bare positive integer (regex-validated), from paleobiology_search_occurrences output
  • Returns the same full occurrence detail as the tool — accepted/identified names, age, modern + paleo coordinates, formation/strata, locality — plus a CC BY 4.0 attribution field
  • Typed error: occurrence_not_found

paleobiology://taxon/{taxon_no} resource

  • Path param taxon_no is a bare positive integer (regex-validated), from paleobiology_get_taxon or an occurrence's accepted_no
  • Mirrors paleobiology_get_taxon's shape exactly — matched and accepted identities, status, classification, parent, FAD/LAD range — plus a CC BY 4.0 attribution field
  • Typed error: taxon_not_found

paleobiology://reference/{reference_no} resource

  • Path param reference_no is a bare positive integer (regex-validated), from an occurrence or collection row
  • Returns the same record as one paleobiology_get_references entry plus a CC BY 4.0 attribution field
  • Typed error: reference_not_found

Features

Built on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.

PBDB-specific:

  • Type-safe client for the Paleobiology Database (PBDB) REST API. Most endpoints use readable vocab=pbdb; taxon endpoints use compact records to preserve matched rank separately from accepted rank
  • Bundled ICS geologic time-scale snapshot — paleobiology_list_intervals resolves the international scale's named intervals ↔ absolute Ma boundaries with no network call, falling back to a PBDB lookup for sub-stage and regional names
  • DataCanvas spill for broad occurrence queries (on by default; CANVAS_PROVIDER_TYPE=none turns it off): an inline preview plus a staged table queryable with read-only SQL (count by interval, group by formation/country, roll up by family from the classification JSON column)
  • No auth, no API key — PBDB is fully open (MCP_AUTH_MODE defaults to none)
  • Diversity counts reflect sampling and collection effort, not true past diversity

Agent-friendly output:

  • Two coordinate systems on every occurrence — modern lng/lat and paleo lng/lat, distinctly labeled, so an agent never plots a deep-time fossil on a modern coastline
  • Both temporal representations on every age — the named interval and its Ma boundaries
  • Provenance on every row: reference_no for paleobiology_get_references, plus CC BY attribution on tools and resources
  • Sparse upstream fields (paleo-coords, formation, late_interval) are omitted rather than zeroed

Occurrence, collection, and diversity searches accept country as comma-separated two-letter country codes or PBDB continent codes, with leading ! exclusion and ^ subtraction. Formation filters preserve PBDB's stored-name, list, and wildcard matching; do not automatically remove words such as “Formation” or “Member”.

The bundled paleobiology-guide covers identifier chaining, coverage checks, sampled turnover, and citation workflows. It ships with plugins, npm, Docker, and MCPB, and is served through MCP skill resources.


Getting started

Connect to the hosted instance:

sh
claude mcp add --transport http paleobiology-mcp-server https://paleobiology.caseyjhand.com/mcp

Or run it locally:

sh
claude mcp add paleobiology-mcp-server -- npx -y @cyanheads/paleobiology-mcp-server

For other clients, add this to the MCP config file:

json
{  "mcpServers": {    "paleobiology-mcp-server": {      "command": "npx",      "args": ["-y", "@cyanheads/paleobiology-mcp-server"]    }  }}

PBDB is keyless. For Docker or a source build, see Running the server.

SQL over large occurrence sets is on by default (the @duckdb/node-api peer dep ships in dependencies). With CANVAS_PROVIDER_TYPE=none, paleobiology_search_occurrences still returns its complete requested page, and the paleobiology_dataframe_* tools are left off tools/list (the HTTP landing page shows them as disabled, with the setting that enables them).

Configuration

All variables are optional — the server runs with no configuration against the public PBDB API.

VariableDescriptionDefault
PBDB_BASE_URLPaleobiology Database API base. Override for a mirror/proxy or pinned API version.https://paleobiodb.org/data1.2
PBDB_TIMEOUT_MSPer-request timeout in milliseconds. Diversity queries over large clades can be slow.30000
PBDB_MAX_OCCURRENCESCap on rows per inline occurrence/collection page. Separate from the 50,000-row staging bound.1000
CANVAS_PROVIDER_TYPEDataCanvas spill path and the paleobiology_dataframe_* tools. none disables both.duckdb
PALEOBIOLOGY_DATAFRAME_DROP_ENABLEDEnable paleobiology_dataframe_drop (DataCanvas must also be on).false
MCP_TRANSPORT_TYPETransport: stdio or http.stdio
MCP_HTTP_PORTPort for HTTP server.3010
MCP_SESSION_MODEHTTP session mode: stateless, stateful, or auto.stateless
MCP_AUTH_MODEAuth mode: none, jwt, or oauth.none
MCP_LOG_LEVELLog level (RFC 5424).info
OTEL_ENABLEDEnable OpenTelemetry instrumentation (spans, metrics, completion logs).false
OTEL_EXPORTER_OTLP_ENDPOINTBase OTLP URL for traces and metrics. Logs require their own endpoint.unset
OTEL_EXPORTER_OTLP_LOGS_ENDPOINTEnable OTLP log export to this exact URL.unset
LOG_TOOL_FAILURE_PAYLOADSLog failed tool arguments and results, with key-name redaction; secrets in free-form values remain.false
LOG_TOOL_FAILURE_PAYLOAD_MAX_BYTESUTF-8 byte cap per logged payload.16384

See .env.example for the full list of optional overrides.

Running the server

Local development

Requires Bun v1.4 or higher (or Node.js v24+). No API key is required.

sh
git clone https://github.com/cyanheads/paleobiology-mcp-server.gitcd paleobiology-mcp-serverbun installcp .env.example .env # optional overrides
  • Build and run:

    sh
    # One-time buildbun run rebuild
    # Run the built serverbun run start:stdio# orbun run start:http
  • Run checks and tests:

    sh
    bun run devcheck   # Lint, format, typecheck, securitybun run test       # Vitest test suitebun run lint:mcp   # Validate MCP definitions against spec

Docker

sh
docker run --rm -p 3010:3010 ghcr.io/cyanheads/paleobiology-mcp-server:latest

The image defaults to HTTP transport, stateless session mode, and logs to /var/log/paleobiology-mcp-server. For stdio in an MCP client, use "command": "docker" and "args": ["run", "-i", "--rm", "-e", "MCP_TRANSPORT_TYPE=stdio", "ghcr.io/cyanheads/paleobiology-mcp-server:latest"]. Build locally with docker build -t paleobiology-mcp-server .; OpenTelemetry peers are installed unless built with --build-arg OTEL_ENABLED=false.

Project structure

DirectoryPurpose
src/index.tscreateApp() entry point — registers tools/resources and inits services.
src/configServer-specific environment variable parsing and validation with Zod.
src/mcp-server/toolsTool definitions (*.tool.ts).
src/mcp-server/resourcesResource definitions (*.resource.ts).
src/services/pbdbPaleobiology Database HTTP client, normalization, and domain types.
src/services/intervalsIn-memory index over the bundled ICS geologic time-scale snapshot.
tests/Unit and integration tests mirroring src/.

Development guide

See CLAUDE.md/AGENTS.md for development guidelines and architectural rules. The short version:

  • Handlers throw, framework catches — no try/catch in tool logic
  • Use ctx.log for request-scoped logging, ctx.state for tenant-scoped storage
  • Register new tools and resources via the barrels in src/mcp-server/*/definitions/index.ts
  • Wrap external API calls: validate raw → normalize to domain type → return output schema; never fabricate missing fields (a missing paleo-coordinate is "unknown", not 0,0)

Data attribution

Data is from the Paleobiology Database, licensed CC BY 4.0 — credit it in downstream use.

Contributing

Issues are welcome. Run checks and tests before submitting:

sh
bun run devcheckbun run test

License

Apache-2.0 — see LICENSE for details.

Source: README.md at commit dcec93a

Tools

8

paleobiology_search_occurrences

paleobiology-mcp-server: search fossil occurrences

Search fossil occurrences by clade-inclusive base_name or base_id, exact taxon_name, interval or max_ma/min_ma, modern geographic bounds, country, formation, environment, or collection_no. At least one filter is required. Formation matches PBDB stored names and preserves list/wildcard syntax; suffixes are not removed. Resolve uncertain taxon names with paleobiology_get_taxon. Rows carry modern lng/lat, reconstructed paleolng/paleolat, age, strata, classification, and source reference_no; keep the coordinate systems distinct. Every served page row is returned, with total matches and the offset that continues the page. When this deployment has DataCanvas enabled, a first page with additional matches stages up to 50,000 occurrences on a canvas: use paleobiology_dataframe_describe for columns, then paleobiology_dataframe_query for SQL over the staged set; the notice distinguishes complete from partial coverage. Later offsets and complete pages stage nothing and leave any supplied canvas untouched.

Parameterslimitlatmaxlatminlngmaxlngminmax_mamin_maoffsetbase_idcountryintervalbase_name+5 more

paleobiology_get_taxon

paleobiology-mcp-server: get taxon record and fossil range

Resolve a taxon by name (e.g. "Tyrannosaurus") or integer taxon_no. The matched name, rank, parent, occurrence count and first/last appearance range describe taxon_no; accepted_no, accepted_name and accepted_rank identify PBDB's accepted taxon separately, and status carries its taxonomic opinion verbatim. Pass accepted_no as base_id to paleobiology_search_occurrences, paleobiology_get_diversity or paleobiology_search_collections for accepted-clade searches. Set show_children to page immediate child taxa with their own ranks and statuses.

Parametersnametaxon_noshow_childrenchildren_offset

paleobiology_get_diversity

paleobiology-mcp-server: diversity through time

Compute a diversity / origination / extinction curve for a clade across geologic time, binned by period, epoch, or age — answers "plot dinosaur genus diversity across the Mesozoic." Pass a clade-inclusive base_name (or base_id, the same clade by resolved taxon id — exactly one of the two) and bound the span by a named interval (e.g. "Mesozoic") or a max_ma/min_ma range; choose what to count (genera, species, or families) and the bin resolution. The full bin set returns inline — a diversity series is a bounded set of geologic intervals — so you read the curve, the turnover, and the per-bin origination/extinction directly. Counts reflect SAMPLED diversity, biased by collection effort and rock availability, not true past diversity.

Parameterscountlatmaxlatminlngmaxlngminmax_mamin_marecentbase_idcountryintervalbase_name+3 more

paleobiology_list_intervals

paleobiology-mcp-server: list geologic intervals

Look up the geologic time scale — eons, eras, periods, epochs, and ages with their absolute-age boundaries in millions of years (Ma) and nesting. This is the reference that grounds every temporal filter on the other tools and translates a named interval like "Late Cretaceous" to its 100.5–66.0 Ma boundaries (and back). Filter by a name substring, a Ma range (overlap match), and/or a level; call with no filters to browse the full scale. Browsing and every name on the bundled ICS international-scale snapshot are answered offline. A name the snapshot does not carry — the sub-stage and regional names that occurrence and collection rows report, such as "Late Maastrichtian" or "Lancian" — costs one PBDB lookup across its other time scales; the response names which source answered and which scale the interval belongs to.

Parametersnamelevelmax_mamin_ma

paleobiology_search_collections

paleobiology-mcp-server: search fossil collections

Find fossil collections (localities) by area and geologic time — "what has been dug up here, and from what rock." Each locality returns its location, age (named interval and Ma), formation and strata, lithology, depositional environment, and the count of co-occurring fossils. Filter by a clade-inclusive base_name (or base_id, the same clade by resolved taxon id), a named interval or max_ma/min_ma range, a lng/lat bounding box, a formation or lithology name, and/or an environment. Results page inline via limit/offset (the response discloses when more remain). Take a collection_no from a row and pass it — or the same bbox+interval — to paleobiology_search_occurrences to see the actual fauna found together.

Parameterslimitlatmaxlatminlngmaxlngminmax_mamin_maoffsetbase_idcountryintervalbase_name+3 more

paleobiology_get_references

paleobiology-mcp-server: get bibliographic references

Resolve PBDB reference_no values — the source publication on every paleobiology_search_occurrences and paleobiology_search_collections row — to full citations with authors, year, title, publication, volume, pages, and DOI. Pass the ids from a page of rows in one call: the first 500 distinct ids are resolved and any beyond that come back in remaining_reference_nos for a follow-up call. Ids PBDB has no reference for are listed in not_found. Results keep the order the ids were given.

Parametersreference_nosrequired

paleobiology_dataframe_query

paleobiology-mcp-server: query staged occurrences with SQL

Run a read-only SQL SELECT against occurrence result sets staged on a DataCanvas by paleobiology_search_occurrences. This is how you analyze a large fossil set without re-fetching it: count occurrences by early_interval, group by formation, country (cc), or accepted_name, or filter by a paleo/modern coordinate range. The classification column is JSON — roll up by rank with json_extract_string(classification, '$.family') (also $.phylum, $.class, $.order, $.genus). Staged rows are occurrences, so collection-only fields such as lithology are not present. Reference tables by the table_name that paleobiology_search_occurrences returned — call paleobiology_dataframe_describe first if you do not know the table or column names. Every row supplied by the canvas is returned; choose smaller pages with SQL LIMIT/OFFSET. Results exceeding the canvas row cap include a notice naming the stable ORDER BY … LIMIT/OFFSET continuation. SELECT only; writes and file-reading functions are rejected.

Parameterssqlrequiredcanvas_idrequired

paleobiology_dataframe_describe

paleobiology-mcp-server: describe staged canvas tables

List the tables and their columns staged on a DataCanvas by paleobiology_search_occurrences. Call this before paleobiology_dataframe_query to discover the exact table_name and column names to reference in SQL.

Parameterscanvas_idrequired

Version history

5
  1. v0.5.0LatestNov 1, 2026
  2. v0.4.0Oct 16, 2026
  3. v0.3.7Oct 4, 2026
  4. v0.3.6Sep 20, 2026
  5. v0.3.5Sep 16, 2026

Score

100% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts