Purple Grain for LangChain
com.purplegrain/api
Search and book agricultural contracting services on the Purple Grain marketplace.
client:LangChain
transport:streamable-http
Install Purple Grain in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"api": {
"transport": "streamable_http",
"url": "https://api.purplegrain.com/mcp",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs