Skip to content
LangChain

alaya mcp for LangChain

io.github.securityronin/alaya-mcp

Local memory engine for AI agents with knowledge graphs, forgetting, and semantic recall

client:LangChain transport:stdio runtime:npm

Install alaya mcp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

alaya mcp in other clients