Skip to content
LangChain

Dr Strange for LangChain

io.github.wangyingsm/dr-strange

Code graph for coding agents: who calls this, what a change reaches, in one round trip.

client:LangChain transport:stdio runtime:npm

Install Dr Strange in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "dr-strange": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "@yingge/drsg"],
        }
})

tools = await client.get_tools()

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

Dr Strange in other clients