Skip to content
LangChain

dishmath for LangChain

io.github.cloudcorprecords/dishmath

Local restaurant math: food cost, menu price with VAT, recipe scaling and the EU allergen matrix.

client:LangChain transport:stdio runtime:npm

Install dishmath in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "dishmath": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "@reneturcios/dishmath"],
        }
})

tools = await client.get_tools()

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

dishmath in other clients