@cyanheads/paleobiology-mcp-server
Click on "Install 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.
Tools
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 |
| 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. |
| Resolve a taxon by name or |
| Compute a diversity / origination / extinction curve for a clade across geologic time, binned by period, epoch, or age. Returns the full bin set inline. |
| 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. |
| Find fossil collections (localities) by area and geologic time, with their formation, lithology, depositional environment, and co-occurring-fossils count. Paged inline. |
| Run a read-only SQL |
| List the tables and columns staged on a DataCanvas. Call before |
| Drop a single staged table to free memory before its TTL expires. Opt-in — registered only when |
paleobiology_search_occurrences
Search fossil occurrences filtered by taxon, geologic time, geography, and environment — the flagship.
base_name(a clade and all its descendants) ortaxon_name(exact) for the taxon filterbase_idfilters the same clade by its resolved PBDBtaxon_no— take it frompaleobiology_get_taxon(oraccepted_noon an occurrence row) and skip the name ambiguity.base_nameandbase_idare mutually exclusive; sending both is rejected at the tool boundaryAge by a named interval (e.g.
Maastrichtian) or amax_ma/min_marange, and/or a lng/lat bounding boxcollection_noscopes the search to a single locality — drill from apaleobiology_search_collectionsrow into the fauna found thereenvironmentenum:marine,terrestrial,freshwaterAt least one filter (taxon, time, place, environment, or
collection_no) is required — an unfiltered call is rejected before the upstream request, not reported as PBDB being unavailablelngmin/lngmaxare a closed pair (both or neither), andmin_mamust be strictly less thanmax_ma— both are rejected at the tool boundary with a recovery hint, before the upstream request. A lonelatminorlatmaxis valid and filters as a half-planeEvery row carries two distinct coordinate systems — 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 through genus)
Broad queries return many rows: an inline preview answers the immediate question, and when the set outgrows that preview the matching occurrences — up to the per-call cap (
limit, further bounded byPBDB_MAX_OCCURRENCES) — stage on a DataCanvas for SQL viapaleobiology_dataframe_query.canvas_idandtable_namecome back only on that spill path; a result that fits inline stages nothingResults page inline via
limit/offsetagainst 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 filtersReusing a
canvas_idreplaces that canvas's occurrence table — each search restages its result, it does not accumulate across calls
paleobiology_get_taxon
Resolve 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.
Returns accepted name, rank, higher classification, immediate parent, occurrence count, and FAD/LAD range in Ma
The
taxon_noit returns is thebase_idaccepted bypaleobiology_search_occurrences,paleobiology_get_diversity, andpaleobiology_search_collectionsshow_childrenalso lists immediate child taxa, up to 200 per call.children_truncatedsays whether more remain andchildren_offsetsays where the page started — advancechildren_offsetby 200 whilechildren_truncatedis true to walk the whole child list. A taxon with over 200 immediate children returns a page, never a silently clipped listPBDB taxonomy is opinionated and can differ from GBIF's backbone, so the accepted name may differ from the searched name — the response surfaces both
paleobiology_get_diversity
Compute a diversity / origination / extinction curve for a clade across geologic time.
Clade-inclusive
base_nameorbase_id(exactly one is required; both together, or neither, is rejected at the tool boundary), bound by a named interval (e.g.Mesozoic) or amax_ma/min_marange (min_mamust be strictly less thanmax_ma)countenum:genera,species,families;resolutionenum:period,epoch,ageThe full bin set returns inline (a diversity series is a bounded set of geologic intervals)
Counts reflect sampled diversity, biased by collection effort and rock availability — not true past diversity
paleobiology_search_collections
Find fossil collections (localities) by area and geologic time — "what has been dug up here, and from what rock."
Each locality returns location, age (named interval and Ma), formation and strata, lithology, depositional environment, and co-occurring-fossils count
Filter by
base_nameorbase_id(mutually exclusive), a named interval ormax_ma/min_marange, a lng/lat bounding box, aformationorlithologyname, and/orenvironment— at least one filter is required (an unfiltered call is rejected before the upstream request)Same bounding-box and Ma-ordering rules as
paleobiology_search_occurrences:lngmin/lngmaxboth or neither,min_mastrictly less thanmax_maResults page inline via
limit/offset; the response discloses when more remainTake a
collection_nofrom a row — or the same bbox+interval — intopaleobiology_search_occurrencesto see the fauna found together
Related MCP server: usa-npn-mcp-server
Resources and prompts
Type | Name | Description |
Resource |
| One fossil occurrence with full detail — modern + paleo coordinates, classification, strata, locality, and the CC BY source credit. |
Resource |
| 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.
Features
Built on @cyanheads/mcp-ts-core:
Declarative tool, resource, and prompt definitions — single file per primitive, framework handles registration and validation
Unified error handling — handlers throw, framework catches, classifies, and formats
Pluggable auth:
none,jwt,oauth(runsnoneby default — PBDB is keyless)Swappable storage backends:
in-memory,filesystem,Supabase,Cloudflare KV/R2/D1Structured logging with optional OpenTelemetry tracing
STDIO and Streamable HTTP transports
Paleobiology-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, 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 scaleDataCanvas 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)
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
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. |
|
| 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)
Contributing
Issues and pull requests are welcome. Run checks and tests before submitting:
bun run devcheck
bun run testLicense
Apache-2.0 — see LICENSE for details.
Data is from the Paleobiology Database, licensed CC BY 4.0 — credit it in downstream use.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables Claude to query comprehensive geologic data from the Macrostrat API, including geologic units, columns, minerals, and timescales through natural language.Last updated88MIT
- AlicenseAqualityBmaintenanceEnables querying and exporting phenology data from the USA National Phenology Network, including raw data, phenometrics, and mapping capabilities.Last updated103MIT
- Alicense-qualityCmaintenanceEnables querying Ensembl genomic data including gene lookup, sequence retrieval, homology, variation, and variant effect prediction via MCP tools.Last updated15MIT
- Alicense-qualityAmaintenanceSearch GBIF species taxonomy, occurrence records, datasets, and publishers via MCP.Last updated1311Apache 2.0
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.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/cyanheads/paleobiology-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server