lain for LangChain
io.github.spuentesp/lain
High-performance knowledge graph MCP server for AI coding agents with semantic search.
client:LangChain
transport:stdio
runtime:npm
Install lain in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"lain": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "@spuentesp/lain-mcp"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs