Skip to content
LangChain

tablex for LangChain

io.github.tablex-org/tablex-mcp

Governed AI agent access to saved database connections: off until enabled, risky changes ask you.

client:LangChain transport:stdio runtime:npm

Install tablex in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

tablex in other clients