Skip to content
LangChain

Contrast for LangChain

io.github.contrastdata/contrast

Connect sources, query your warehouse, and build dashboards with Contrast.

client:LangChain transport:streamable-http

Install Contrast in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "contrast": {
            "transport": "streamable_http",
            "url": "https://contrastdb.com/api/mcp",
        }
})

tools = await client.get_tools()

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

Contrast in other clients