Skip to content
LangChain

textgraph for LangChain

io.github.cloudcorprecords/textgraph

Text to knowledge graphs: topics, clusters, gaps, and research ideas via InfraNodus.

client:LangChain transport:stdio runtime:npm

Install textgraph in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "textgraph": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "@reneturcios/textgraph"],
        }
})

tools = await client.get_tools()

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

textgraph in other clients