Skip to content
LangChain

BackendGen for LangChain

io.github.sitouhemi/backendgen

Validate compact backend specs and generate tested NestJS, Prisma, and PostgreSQL repositories.

client:LangChain transport:stdio runtime:npm

Install BackendGen in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

BackendGen in other clients