Skip to content
LangChain

nuthatch for LangChain

io.github.nuthatch-org/nuthatch

Query an EVM contract's indexed history with SQL, via a local nuthatch nest and nuthatch dev.

client:LangChain transport:stdio runtime:oci

Install nuthatch in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "nuthatch": {
            "transport": "stdio",
            "command": "docker",
            "args": ["run", "-i", "--rm", "ghcr.io/nuthatch-org/nuthatch:5.24.0"],
        }
})

tools = await client.get_tools()

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

nuthatch in other clients