Skip to content
LangChain

stathead mcp for LangChain

io.github.dachhack/stathead-mcp

Fantasy football analytics: stats, dynasty, projections, prospects, Sleeper leagues, Excel I/O

client:LangChain transport:stdio runtime:npm

Install stathead mcp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

stathead mcp in other clients