Skip to content
LangChain

Postgres and REST twins for LangChain

com.cmdrvl/twinning

Twins for Postgres and REST: declared-subset Postgres, spec-defined REST, migration proof.

client:LangChain transport:stdio runtime:npm

Install Postgres and REST twins in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

Postgres and REST twins in other clients