Pondlog Phenology (USA-NPN)

v0.1.6-1
io.github.andrewschristison/pondlog-npn Checked 2 days ago Published 1 month ago

USA National Phenology Network MCP.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_species Search USA-NPN Species Catalog

Search the USA-NPN species catalog (~1,900 species). Returns matching species with NPN species_id, scientific name, common name, kingdom (Plantae/Animalia/Fungi). Use this first to look up a species_id before calling other tools that take species filters. All filters are case-insensitive. Filters compound: passing query + kingdom narrows further.

ParameterTypeDescription
genusstringExact-match (case-insensitive) genus filter. Example: 'Acer' for maples, 'Quercus' for oaks. Optional.
kingdomstringKingdom filter. NPN data is dominated by Plantae (most phenology is plant-based) but also tracks Animalia (birds, insects, mammals) and a small set of Fungi. Optional.
querystringSubstring match against the common name OR scientific binomial. Example: 'maple' matches all maples; 'saguaro' matches saguaro cactus. Optional.

get_stations_in_state List NPN Stations in a US State

List all USA-NPN observation stations in a given US state. Returns each station's NPN station_id, name, coordinates, and (when applicable) network ID. Pass `state_code` to narrow. NPN's unfiltered list is ~50,000 stations. Use station_ids returned here to filter `get_observations` or `get_site_level_data`.

ParameterTypeDescription
state_code *stringUS two-letter state postal code (e.g. 'WA', 'CA', 'NY'). Required for narrowing station and observation queries. NPN's unfiltered station list is ~50,000 records.

get_station_count_by_state USA-NPN Station Count by State

Returns the number of USA-NPN stations per US state (a quick map of NPN's geographic coverage). Useful for deciding which state to query for phenology data, eastern US states (NY, MA, ME) and Arizona have the densest coverage; Pacific Northwest is sparser.

get_stations_with_species Find NPN Stations Observing Specific Species

Returns all NPN stations that have observations for any of the given species. Use to answer 'where in the US can I find phenology data for saguaro?' Note: due to a known upstream NPN bug, some species (notably species_id=3, red maple) return an empty result; the tool surfaces these as empty arrays rather than errors.

ParameterTypeDescription
species_ids *arrayArray of NPN species IDs (at least one). Use `search_species` first to look IDs up. Example: [210] for saguaro.

get_stations_by_location Find NPN Stations Inside a WKT Polygon

Returns NPN stations inside a Well-Known Text polygon. NPN's spatial filter is WKT-based, not lat/lng/radius. WKT format example: 'POLYGON((-123.7 47.9, -123.0 47.9, -123.0 48.3, -123.7 48.3, -123.7 47.9))', coordinate pairs are 'lng lat', the polygon must close (first point repeated as last). For most use cases prefer `get_active_phenology_nearby` which builds the WKT from coords + radius internally.

ParameterTypeDescription
wkt *stringWell-Known Text polygon string. Coordinate order is 'lng lat'. The polygon must close.

get_observations Get USA-NPN Phenology Status/Intensity Records

Status / intensity observation records, individual observer reports of whether a phenophase was 'yes' (1), 'no' (0), or 'uncertain' (-1) on a given date. This is the rawest NPN data type. REQUIRES a year filter and at least one narrowing filter (species/station/state/genus/family/order/class). Unfiltered queries can return tens of MB. For 'is this in phenology now?' aggregated answers prefer `get_site_level_data`. For a place-aware 'what's recently active' shortcut prefer `get_active_phenology_nearby`.

ParameterTypeDescription
years *arrayCalendar years to include, e.g. [2024] or [2023, 2024]. NPN data starts in 2009. Required.
phenophase_idsarrayNarrow to specific phenophases (e.g. 501 = open flowers, 371 = breaking leaf buds). Optional.
species_idsarrayNarrow to specific species. Optional.
statesarrayNarrow to one or more US state postal codes. Optional.
station_idsarrayNarrow to specific NPN stations. Note: a single station-year of observations can be 80+ MB for prolific stations; combine with `species_ids` when possible.

get_site_level_data Get USA-NPN Site-Level Phenometric Summaries

Per-site phenometric aggregates: for each (site, species, phenophase, year), returns the mean first/last 'yes' date (when phenophase began and ended on average across observed individuals). This is the right granularity for 'when do magnolias typically bloom in WA?', much smaller than `get_observations`. REQUIRES a year filter and at least one of species_ids/station_ids/states. Site-level dates are returned as both julian-day (mean*Julian) and ISO date (mean*Date). Sample size fields (firstYesSampleSize, lastYesSampleSize) tell you how many individuals contributed to the mean.

ParameterTypeDescription
years *arrayCalendar years to include. NPN phenometric records typically lag by a year, 2024 is the most recent year with broad coverage as of 2026. Required.
phenophase_idsarrayNarrow to specific phenophase IDs. Optional.
species_idsarrayNarrow to specific species. Optional.
statesarrayNarrow to one or more US state postal codes. Optional.
station_idsarrayNarrow to specific NPN stations. Note: parameter name is `station_id` (singular) on the wire, the tool handles that translation.

get_active_phenology_nearby Recently Recorded Phenology Near Coordinates

Place-aware shortcut: 'what phenology has been recorded near these coordinates?' Composes a WKT bounding box from coords+radius, finds NPN stations inside, haversine-filters to true radius, and returns the closest stations' site-level phenometric records over the requested years (sorted by most-recent meanLastYesDate). Each entry includes `distanceKm` from the query point. Note: NPN station coverage is patchy. Eastern US and Arizona are dense; the Pacific Northwest is sparser. Use `get_station_count_by_state` to gauge regional coverage. For raw observation records, use `get_observations`. For…

ParameterTypeDescription
lat *numberWGS84 latitude in decimal degrees, between -90 and 90. Example: 48.118 for Port Angeles, WA.
lng *numberWGS84 longitude in decimal degrees, between -180 and 180. Example: -123.4307 for Port Angeles, WA.
radius_km *numberSearch radius in km. Default 25.
max_stationsintegerMaximum stations to query (closest first). Default 40, max 50. Cap exists because NPN's URL length limit caps repeated `station_id` parameters.
years_backintegerHow many years of phenometric history to include. Default 2 (this year + last). Increase to 5 or 10 in regions with sparse coverage.