GridHub Electricity Market Data for LangChain
io.github.jalcodev/gridhub
Live and historical electricity prices and demand for 25 grids; carbon intensity for GB.
client:LangChain
transport:streamable-http
tools:6
Install GridHub Electricity Market Data in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"gridhub": {
"transport": "streamable_http",
"url": "https://api.grid-hub.app/mcp",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs