Skip to content
LangChain

dnd oracle for LangChain

io.github.gregario/dnd-oracle

D&D 5e SRD MCP server with monster, spell, equipment search and encounter building tools

client:LangChain transport:stdio runtime:npm

Install dnd oracle in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "dnd-oracle": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "dnd-oracle"],
        }
})

tools = await client.get_tools()

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

dnd oracle in other clients