GnistAI GnistAI
Log in

GBIF Biodiversity

Global biodiversity data — species occurrences, taxonomy, and datasets from the Global Biodiversity Information Facility.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 6 tools tools 6 6 Science

Data source: GBIF (Global Biodiversity Information Facility)

MCP MCP Protocol

Endpoint https://context.gnist.ai/mcp/gbif/
claude_desktop_config.json
{
  "mcpServers": {
    "gnist-gbif": {
      "url": "https://context.gnist.ai/mcp/gbif/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
Shell
curl -X POST "https://context.gnist.ai/mcp/gbif/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "search_species", "arguments": {"query": "example"}}}'

API REST API

API Root https://context.gnist.ai/rest/gbif/

6 endpoints available:

Shell
curl "https://context.gnist.ai/rest/gbif/search_species?query=example" \
  -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx

resp = httpx.get(
    "https://context.gnist.ai/rest/gbif/search_species",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    params={
        "query": "example"
},
)
print(resp.json())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc gbif

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (6)

search_species
Search the GBIF taxonomy backbone for species, genera, families, or higher taxa.
ParameterTypeRequiredDescription
querystringrequiredSpecies name or keyword (e.g. "Panthera leo", "orchid", "Atlantic salmon", "pine").
rankanyoptionalTaxonomic rank filter: SPECIES, GENUS, FAMILY, ORDER, CLASS, PHYLUM, KINGDOM. Omit for all.
habitatanyoptionalHabitat filter: MARINE, FRESHWATER, TERRESTRIAL. Omit for all.
limitintegeroptionalNumber of results (1–50, default 20). (default: 20)
get_species
Get full taxonomic details for a species by its GBIF taxon key.
ParameterTypeRequiredDescription
taxon_keystringrequiredGBIF taxon key (numeric). Found in search_species results.
search_occurrences
Search 2.4B+ biodiversity occurrence records — species sightings, specimens, and observations.
ParameterTypeRequiredDescription
taxon_keyanyoptionalGBIF taxon key (numeric). Use search_species to find keys. Provide this or scientific_name.
scientific_nameanyoptionalScientific name (e.g. "Panthera leo"). Alternative to taxon_key.
countryanyoptionalISO 3166-1 alpha-2 country code (e.g. 'NO' for Norway, 'US', 'GB').
year_rangeanyoptionalYear or year range (e.g. '2023' or '2020,2024' for a range).
basis_of_recordanyoptionalRecord type: HUMAN_OBSERVATION, PRESERVED_SPECIMEN, MACHINE_OBSERVATION, FOSSIL_SPECIMEN, LIVING_SPECIMEN.
has_coordinateanyoptionalFilter to records with GPS coordinates.
limitintegeroptionalNumber of results (1–50, default 20). (default: 20)
search_datasets
Search 100K+ biodiversity datasets published through GBIF.
ParameterTypeRequiredDescription
querystringrequiredDataset search term (e.g. "birds Norway", "marine mammals", "eBird", "herbarium").
type_filteranyoptionalDataset type: OCCURRENCE, CHECKLIST, SAMPLING_EVENT, METADATA.
publishing_countryanyoptionalISO 3166-1 alpha-2 code of the publishing country.
limitintegeroptionalNumber of results (1–50, default 20). (default: 20)
get_species_distribution
Get the global distribution of a species — occurrence counts by country.
ParameterTypeRequiredDescription
taxon_keystringrequiredGBIF taxon key (numeric). Use search_species to find it.
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related