Skip to content
LangChain

GridLabs for LangChain

io.github.rodriguem75/gridlabs

French energy data, electricity and gas consumption, tariff scenarios and public discovery tools.

client:LangChain transport:streamable-http tools:8

Install GridLabs in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "gridlabs": {
            "transport": "streamable_http",
            "url": "https://www.gridlabs.fr/mcp",
        }
})

tools = await client.get_tools()

get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs

What LangChain can do once it is connected

GridLabs in other clients