get_occurrences

Pack: gbif · Endpoint: https://gateway.pipeworx.io/gbif/mcp

Get georeferenced observation records for a species with coordinates, dates, and sources. Filter by country code (e.g., ‘US’, ‘BR’, ‘AU’) to narrow results geographically.

Parameters

NameTypeRequiredDescription
keynumberyesGBIF taxon key (integer)
limitnumbernoMaximum records to return (1-300, default 20)
countrystringnoISO 3166-1 alpha-2 country code to filter occurrences (e.g., “US”, “DE”)

Example call

Arguments

{
  "key": 2436436,
  "limit": 100
}

curl

curl -X POST https://gateway.pipeworx.io/gbif/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_occurrences","arguments":{"key":2436436,"limit":100}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('get_occurrences', {
  "key": 2436436,
  "limit": 100
});

More examples

{
  "key": 2436436,
  "country": "US",
  "limit": 50
}

Response shape

Always returns: total, end_of_records, occurrences

FieldTypeDescription
totalnumberTotal number of occurrence records
end_of_recordsbooleanWhether all available records have been returned
occurrencesarrayArray of occurrence records
Full JSON Schema
{
  "type": "object",
  "properties": {
    "total": {
      "type": "number",
      "description": "Total number of occurrence records"
    },
    "end_of_records": {
      "type": "boolean",
      "description": "Whether all available records have been returned"
    },
    "occurrences": {
      "type": "array",
      "description": "Array of occurrence records",
      "items": {
        "type": "object",
        "properties": {
          "key": {
            "type": "number",
            "description": "GBIF occurrence key identifier"
          },
          "scientific_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Scientific name recorded for occurrence"
          },
          "latitude": {
            "type": [
              "number",
              "null"
            ],
            "description": "Decimal latitude coordinate"
          },
          "longitude": {
            "type": [
              "number",
              "null"
            ],
            "description": "Decimal longitude coordinate"
          },
          "country": {
            "type": [
              "string",
              "null"
            ],
            "description": "Country where occurrence was recorded"
          },
          "state_province": {
            "type": [
              "string",
              "null"
            ],
            "description": "State or province of occurrence"
          },
          "locality": {
            "type": [
              "string",
              "null"
            ],
            "description": "Specific locality description"
          },
          "event_date": {
            "type": [
              "string",
              "null"
            ],
            "description": "Date of occurrence observation"
          },
          "basis_of_record": {
            "type": [
              "string",
              "null"
            ],
            "description": "Type of record (specimen, observation, etc.)"
          },
          "institution": {
            "type": [
              "string",
              "null"
            ],
            "description": "Institution code maintaining the record"
          },
          "collection": {
            "type": [
              "string",
              "null"
            ],
            "description": "Collection code within institution"
          },
          "catalog_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Catalog number in collection"
          }
        },
        "required": [
          "key",
          "scientific_name",
          "latitude",
          "longitude",
          "country",
          "state_province",
          "locality",
          "event_date",
          "basis_of_record",
          "institution",
          "collection",
          "catalog_number"
        ]
      }
    }
  },
  "required": [
    "total",
    "end_of_records",
    "occurrences"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "gbif": {
      "url": "https://gateway.pipeworx.io/gbif/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026