Skip to content
LangChain

Octopus Energy (octopus-mcp) for LangChain

io.github.mattoddie/octopus-mcp

Octopus Energy usage and costs, tariffs, Agile prices, bills, EV charging and Saving Sessions

client:LangChain transport:stdio runtime:oci

Install Octopus Energy (octopus-mcp) in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "octopus-mcp": {
            "transport": "stdio",
            "command": "docker",
            "args": ["run", "-i", "--rm", "ghcr.io/mattoddie/octopus-mcp:0.3.2"],
        }
})

tools = await client.get_tools()

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

Octopus Energy (octopus-mcp) in other clients