Skip to content
LangChain

convexity mcp for LangChain

io.github.bayesian-energy/convexity-mcp

Build, edit, solve and analyse Convexity energy-system models from any MCP client; drives the app.

client:LangChain transport:stdio runtime:npm

Install convexity mcp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "convexity-mcp": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "convexity-mcp"],
        }
})

tools = await client.get_tools()

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

convexity mcp in other clients