Nhost for LangChain
io.github.nhost/mcp
Let your users work with their own data through an AI assistant, limited to what they can see.
client:LangChain
transport:stdio
runtime:oci
Install Nhost in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"mcp": {
"transport": "stdio",
"command": "docker",
"args": ["run", "-i", "--rm", "docker.io/nhost/mcp:0.3.0"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs