Ask the Grid for LangChain
io.github.parisi-labs/askthegrid
Live U.S. electric-grid data, forecasts, alerts, and analysis across major grid regions.
client:LangChain
transport:streamable-http
Install Ask the Grid in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"askthegrid": {
"transport": "streamable_http",
"url": "https://mcp.askthegrid.com/v1/global",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs