Skip to content
LangChain

openInvest for LangChain

io.github.longsizhuo/openinvest

Investment runtime for AI agents — LLM investment committee, portfolio ledger, decision accounting

client:LangChain transport:stdio runtime:pypi

Install openInvest in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "openinvest": {
            "transport": "stdio",
            "command": "uvx",
            "args": ["openinvest"],
        }
})

tools = await client.get_tools()

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

openInvest in other clients