Skip to content
LangChain

locksmith for LangChain

io.github.cxk280/locksmith

Lints PostgreSQL migrations for dangerous locking operations and suggests safe rewrites.

client:LangChain transport:stdio runtime:npm

Install locksmith in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

locksmith in other clients