@cyanheads/paleobiology-mcp-server
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., "@@cyanheads/paleobiology-mcp-serverfind fossil occurrences of T. rex in the Hell Creek Formation"
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.
Public Hosted Server: https://paleobiology.caseyjhand.com/mcp
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 from any MCP client. Runs as a stdio process, a local Streamable HTTP server, or the public hosted endpoint above.
Tools
Tool | Description |
| Search fossil occurrences by taxon, geologic time, geography, and depositional environment. Every row carries both modern and paleo coordinates; broad results spill to a DataCanvas for SQL. |
| Resolve a taxon by name or |
| Compute a diversity / origination / extinction curve for a clade across geologic time. |
| Look up the geologic time scale — named intervals ↔ absolute Ma boundaries. |
| Find fossil collections (localities) by area, geologic time, formation, and lithology. |
| Run a read-only SQL |
| List the tables and columns staged on a DataCanvas. |
| Drop a single staged table to free memory before its TTL expires. Opt-in. |
Resources
Resource | Description |
| One fossil occurrence with full detail — modern + paleo coordinates, classification, strata, locality. |
| One taxon record with its fossil range and classification. |
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.
Related MCP server: GBIF Biodiversity MCP Server
Capability reference
paleobiology_search_occurrences tool
base_name(a clade and all its descendants) ortaxon_name(exact) filters the taxon;base_idfilters the same clade by its resolved PBDBtaxon_noinstead of a name — exactly one ofbase_name/base_id, never bothAge by a named
intervalor amax_ma/min_marange (min_mastrictly less thanmax_ma), plus an optional lng/lat bounding box (lngmin/lngmaxboth or neither; a lonelatmin/latmaxis valid) andenvironment(marine,terrestrial,freshwater);collection_noscopes to one locality. At least one filter is requiredEvery row carries both modern lng/lat (where the rock is today) and paleo lng/lat (where the landmass sat at deposition), plus formation, age interval, and higher classification (phylum–genus)
limit(max 500, default 100) andoffsetpage against PBDB's true match count; the response names the exact offset for the next pageBroad results spill to a DataCanvas —
canvas_idandtable_namereturn only when the page spills; reusing acanvas_idreplaces that canvas's occurrence table rather than accumulatingTyped errors:
missing_filter,conflicting_taxon_filter,incomplete_bbox,inverted_ma_range— all rejected at the tool boundary before the upstream request
paleobiology_get_taxon tool
Resolve by
nameortaxon_no(exactly one required) to accepted name, rank, higher classification, immediate parent, occurrence count, and FAD/LAD range in MaThe returned
taxon_nois thebase_idaccepted bypaleobiology_search_occurrences,paleobiology_get_diversity, andpaleobiology_search_collectionsshow_childrenpages immediate child taxa, up to 200 per call;children_truncatedandchildren_offsetsay whether and where to continuePBDB taxonomy can differ from GBIF's backbone — the accepted name may differ from the searched name
Typed errors:
taxon_not_found,missing_selector
paleobiology_get_diversity tool
Clade by
base_nameorbase_id(exactly one required), bounded by a namedintervalormax_ma/min_marange (min_mastrictly less thanmax_ma)countenum:genera(default),species,families;resolutionenum:period(default),epoch,ageReturns the full bin set inline, oldest-first, each bin carrying sampled/implied/origination/extinction/range-through counts and occurrence totals
Counts reflect sampled diversity, biased by collection effort and rock availability — not true past diversity
Typed errors:
missing_filter,conflicting_taxon_filter,inverted_ma_range
paleobiology_list_intervals tool
Filter by a case-insensitive
namesubstring, amin_ma/max_maoverlap window, and/or alevel(eon,era,period,epoch,age); no filters browses the full scaleEvery name on the bundled ICS international-scale snapshot resolves offline; a name outside it (sub-stage/regional names like "Late Maastrichtian") costs one PBDB lookup, and the response's
sourcefield (bundled_ics/pbdb_upstream) plussnapshot_versionsay which answeredEach interval returns its
level, Ma boundaries,parent_no, and — when resolved upstream — the originatingscalenameTyped errors:
interval_not_found(name matched nothing anywhere),interval_lookup_unavailable(retryable — PBDB unreachable for a non-bundled name)
paleobiology_search_collections tool
Filter by
base_name/base_id(mutually exclusive), a namedintervalormax_ma/min_marange, a lng/lat bounding box, aformationorlithologyname, and/orenvironment; at least one filter is requiredEach locality returns modern lng/lat, age (named interval and Ma), formation/group/member, lithology, depositional environment, and co-occurring-fossils count (
n_occs)limit(max 500, default 100) andoffsetpage results; the response discloses when localities remainTake a
collection_nointopaleobiology_search_occurrencesto see the fauna found at that localityTyped errors:
missing_filter,conflicting_taxon_filter,incomplete_bbox,inverted_ma_range
paleobiology_dataframe_query tool
Runs a read-only SQL
SELECTagainst occurrence sets staged on a DataCanvas bypaleobiology_search_occurrences; writes and file-reading functions are rejectedReference tables by the
table_namea spilled search returned; theclassificationcolumn is JSON — roll up by rank withjson_extract_string(classification, '$.family')(also$.phylum,$.class,$.order,$.genus)Output caps at the canvas row limit;
truncated: truemarks a trimmed resultTyped error:
canvas_disabledwhenCANVAS_PROVIDER_TYPEis notduckdb
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_queryto discover identifiersTyped error:
canvas_disabledwhenCANVAS_PROVIDER_TYPEis notduckdb
paleobiology_dataframe_drop tool
Drops one staged table by
canvas_id+table_nameto free memory before its TTL expires; dropping a nonexistent table returnsdropped: false, not an errorOpt-in — registered only when
PALEOBIOLOGY_DATAFRAME_DROP_ENABLED=true, absent fromtools/listotherwiseTyped error:
canvas_disabledwhenCANVAS_PROVIDER_TYPEis notduckdb
paleobiology://occurrence/{occurrence_no} resource
Path param
occurrence_nois a bare positive integer (regex-validated), frompaleobiology_search_occurrencesoutputReturns the same full occurrence detail as the tool — accepted/identified names, age, modern + paleo coordinates, formation/strata, locality — plus a CC BY 4.0
attributionfieldTyped error:
occurrence_not_found
paleobiology://taxon/{taxon_no} resource
Path param
taxon_nois a bare positive integer (regex-validated), frompaleobiology_get_taxonor an occurrence'saccepted_noMirrors
paleobiology_get_taxon's shape exactly — accepted name, rank, classification, parent, FAD/LAD range — plus a CC BY 4.0attributionfieldTyped error:
taxon_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, requesting
vocab=pbdbso readable field names come straight from upstream instead of hand-mapped terse codesBundled ICS geologic time-scale snapshot —
paleobiology_list_intervalsresolves the international scale's named intervals ↔ absolute Ma boundaries with no network call, falling back to a PBDB lookup for sub-stage and regional namesDataCanvas spill for broad occurrence queries: 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
classificationJSON column)No auth, no API key — PBDB is fully open (
MCP_AUTH_MODEdefaults tonone)
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 and honesty — every row carries its
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 sampled
Getting started
Public Hosted Instance
A public instance is available at https://paleobiology.caseyjhand.com/mcp — no installation required. Point any MCP client at it via Streamable HTTP:
{
"mcpServers": {
"paleobiology-mcp-server": {
"type": "streamable-http",
"url": "https://paleobiology.caseyjhand.com/mcp"
}
}
}Self-Hosted / Local
Add one of the following to your MCP client configuration file. PBDB is keyless — no API key required.
With bunx:
{
"mcpServers": {
"paleobiology-mcp-server": {
"type": "stdio",
"command": "bunx",
"args": ["@cyanheads/paleobiology-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info"
}
}
}
}Or with npx (no Bun required):
{
"mcpServers": {
"paleobiology-mcp-server": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@cyanheads/paleobiology-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info"
}
}
}
}Or with Docker:
{
"mcpServers": {
"paleobiology-mcp-server": {
"type": "stdio",
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "MCP_TRANSPORT_TYPE=stdio",
"ghcr.io/cyanheads/paleobiology-mcp-server:latest"
]
}
}
}For Streamable HTTP, set the transport and start the server:
MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 bun run start:http
# Server listens at http://localhost:3010/mcpTo 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.
Prerequisites
Bun v1.3 or higher (or Node.js v24+).
No API key — the Paleobiology Database is fully open.
Installation
Clone the repository:
git clone https://github.com/cyanheads/paleobiology-mcp-server.gitNavigate into the directory:
cd paleobiology-mcp-serverInstall dependencies:
bun installConfigure environment (optional):
cp .env.example .env
# edit .env to override defaults — all vars are optionalConfiguration
All variables are optional — the server runs with no configuration against the public PBDB API.
Variable | Description | Default |
| Paleobiology Database API base. Override for a mirror/proxy or pinned API version. |
|
| Per-request timeout in milliseconds. Diversity queries over large clades can be slow. |
|
| Hard cap on rows pulled per occurrence/collection call. |
|
| Set to |
|
| Register |
|
| Transport: |
|
| Port for HTTP server. |
|
| HTTP session posture: |
|
| Auth mode: |
|
| Log level (RFC 5424). |
|
| Enable OpenTelemetry instrumentation (spans, metrics, completion logs). |
|
See .env.example for the full list of optional overrides.
Running the server
Local development
Build and run:
# One-time build bun run rebuild # Run the built server bun run start:stdio # or bun run start:httpRun checks and tests:
bun run devcheck # Lint, format, typecheck, security bun run test # Vitest test suite bun run lint:mcp # Validate MCP definitions against spec
Docker
docker build -t paleobiology-mcp-server .
docker run --rm -p 3010:3010 paleobiology-mcp-serverThe 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.
Project structure
Directory | Purpose |
|
|
| Server-specific environment variable parsing and validation with Zod. |
| Tool definitions ( |
| Resource definitions ( |
| Paleobiology Database HTTP client, normalization, and domain types. |
| In-memory index over the bundled ICS geologic time-scale snapshot. |
| Unit and integration tests mirroring |
Development guide
See CLAUDE.md/AGENTS.md for development guidelines and architectural rules. The short version:
Handlers throw, framework catches — no
try/catchin tool logicUse
ctx.logfor request-scoped logging,ctx.statefor tenant-scoped storageRegister new tools and resources via the barrels in
src/mcp-server/*/definitions/index.tsWrap 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:
bun run devcheck
bun run testLicense
Apache-2.0 — see LICENSE for details.
This server cannot be deployed
Maintenance
Related MCP Connectors
Paleobiology Database (PBDB) MCP — the global fossil record. Keyless.
GBIF MCP — wraps the Global Biodiversity Information Facility API v1 (free, no auth)
Macrostrat MCP — geologic map / column / unit data for North America and beyond.
EPA ECHO MCP — wraps EPA ECHO Web Services (free, no auth)
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables querying and exporting phenology data from the USA National Phenology Network, including raw data, phenometrics, and mapping capabilities.103MIT
- AlicenseNot gradedqualityAmaintenanceSearch GBIF species taxonomy, occurrence records, datasets, and publishers via MCP.270 npm1Apache 2.0
- AlicenseNot gradedqualityBmaintenanceMacrostrat MCP — geologic map / column / unit data for North America and beyond.376 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables querying the Paleobiology Database for global fossil records via natural language or direct tools, without requiring an API key.367 npmMIT