Skip to content
LangChain

mcp thinkgate for LangChain

io.github.tjp2021/mcp-thinkgate

Auto-classifies prompt complexity and routes to the right Claude thinking mode. No API key needed.

client:LangChain transport:stdio runtime:npm

Install mcp thinkgate in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

mcp thinkgate in other clients