Trefle
liveScienceBiologyGlobal plant database — 1M+ species, growth habit, edibility, distribution.
5tools
0msauth
free tier50 calls/day
Tools
search_plantsrequired: querySearch plants by common/scientific name.
Parameters
NameTypeDescription
queryreqstringFree-text queryedibleoptbooleanOnly ediblevegetableoptbooleanOnly vegetablespageoptnumber1-based pagepage_sizeoptnumber1-100Try it
Response
get_plantrequired: plant_idFull plant record by ID.
Parameters
NameTypeDescription
plant_idreqnumberTrefle plant IDTry it
Response
search_speciesrequired: querySearch species rank.
Parameters
NameTypeDescription
queryreqstringFree-text querypageoptnumber1-based pagepage_sizeoptnumber1-100Try it
Response
get_speciesrequired: species_idFull species record by ID.
Parameters
NameTypeDescription
species_idreqnumberTrefle species IDTry it
Response
list_distributionsrequired: zonePlants in a TDWG zone.
Parameters
NameTypeDescription
zonereqstringTDWG zone codepageoptnumber1-based pagepage_sizeoptnumber1-100Try it
Response
Test with curl
The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.
List available tools
bash
curl -X POST https://gateway.pipeworx.io/trefle/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'Call a tool
bash
curl -X POST https://gateway.pipeworx.io/trefle/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"search_plants","arguments":{"query": "hello"}}}'Use with the SDK
Install @pipeworx/sdk to call tools from any TypeScript/Node project.
TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("search_plants", {"query":"example"});ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("global plant database — 1m+ species, growth habit, edibility, distribution");