Skip to content
LangChain

pg checkup for LangChain

io.github.pgcheckup/pg-checkup

Read-only PostgreSQL checkups for your AI assistant. Lists what to fix, in order, with the SQL.

client:LangChain transport:stdio runtime:npm

Install pg checkup in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "pg-checkup": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "pg-checkup-mcp"],
        }
})

tools = await client.get_tools()

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

pg checkup in other clients