iNaturalist Species Profile + Live Population Curve #11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally filed by @coilysiren on 2026-05-02T23:10:00Z - https://github.com/coilysiren/eco-mcp-app/issues/14
Task 5 — iNaturalist Species Profile + Live Population Curve
Prereq: read
todo/README.mdfirst.Goal
Build an MCP tool
get_eco_species(name)rendering a card combining real-world iNaturalist data with live in-server population.Data sources
Admin endpoints (header
X-API-Keyfrom SSM/eco-mcp-app/api-admin-token, regionus-east-1):GET http://eco.coilysiren.me:3001/api/v1/exporter/specieslistresp.text.splitlines().WheatSpecies,BisonSpecies,SnappingTurtleSpecies. Count varies by modset — don't hardcode a number.GET http://eco.coilysiren.me:3001/api/v1/exporter/species?speciesName={name}"Time","Value".Timeis seconds since cycle start at 600 s (10-min) sample cadence. When rendering a line chart, convert to days viaseconds / 86400.External, public:
GET https://api.inaturalist.org/v1/taxa?q={cleaned_name}&rank=species&per_page=1User-Agent: eco-mcp-app/0.1 (coilysiren@gmail.com).GET https://en.wikipedia.org/api/rest_v1/page/summary/{title}— used when iNat returns zero taxa.Name cleaning
Speciessuffix.WheatSpecies → "Wheat",BighornSheepSpecies → "Bighorn Sheep",MoonJellyfishSpecies → "Moon Jellyfish".JoshuaSpecies→ "Joshua" — iNat won't find it; real name is Joshua Tree. Either keep an override map or accept the Wikipedia fallback path.DwarfWillowSpecies,PacificSardineSpecies— clean normally.Card layout
Kingdom > Phylum > ... > Species), conservation status if iNat has it.Caching
~/.cache/eco-mcp-app/inat.sqlite.Out of scope
Acceptance
inv smokepasses.