three.ws Brain for LangChain
io.github.nirholas/brain-mcp
List LLM providers and run chat completions through the three.ws multi-provider router.
client:LangChain
transport:stdio
runtime:npm
Install three.ws Brain in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"brain-mcp": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "@three-ws/brain-mcp"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs