Trefle for LangChain
io.github.pipeworx-io/trefle
Trefle MCP — global plant database (1M+ species)
client:LangChain
transport:streamable-http
Install Trefle in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"trefle": {
"transport": "streamable_http",
"url": "https://gateway.pipeworx.io/trefle/mcp",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs