Skip to content
LangChain

Omnicost for LangChain

com.omnicost/catalog

Construction unit prices with source and date for Spain, the US and the EU. OAuth or API key.

client:LangChain transport:streamable-http tools:4

Install Omnicost in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "catalog": {
            "transport": "streamable_http",
            "url": "https://omnicost.com/api/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

Omnicost in other clients