OilPriceAPI hosted energy data for LangChain
io.github.oilpriceapi/hosted-energy
Hosted energy prices: crude, gas, refined products, marine fuels, futures. Keyless demo.
client:LangChain
transport:streamable-http
tools:9
Install OilPriceAPI hosted energy data in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"hosted-energy": {
"transport": "streamable_http",
"url": "https://mcp.oilpriceapi.com/mcp",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs