Skip to content
LangChain

Nephyr Risk for LangChain

io.github.clm-studios/nephyr-risk

Prediction market risk management — Kelly sizing, EV calculation, drawdown protection

client:LangChain transport:stdio runtime:pypi

Install Nephyr Risk in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

Nephyr Risk in other clients