Skip to content
LangChain

diceport for LangChain

io.github.cloudcorprecords/diceport

Dice rolls, coin flips, and random numbers, reproducible with a seed.

client:LangChain transport:stdio runtime:npm

Install diceport in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

diceport in other clients