Skip to content
LangChain

riv mcp for LangChain

io.github.christopher-as/riv-mcp

Riv MCP: spend authorization and governed trading (place_order, positions, market data, policies).

client:LangChain transport:stdio runtime:npm

Install riv mcp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

riv mcp in other clients