Skip to content
LangChain

Project Brain for LangChain

io.github.gentleelephant/project-brain

Read-only source search and retrieval across configured GitHub repositories

client:LangChain transport:stdio runtime:oci

Install Project Brain in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "project-brain": {
            "transport": "stdio",
            "command": "docker",
            "args": ["run", "-i", "--rm", "ghcr.io/gentleelephant/project-brain:v2.0.3"],
        }
})

tools = await client.get_tools()

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

Project Brain in other clients