Skip to content
LangChain

theoddsapi mcp for LangChain

io.github.mrfentmen/theoddsapi-mcp

MCP server for The Odds API: sports, events, betting odds. Free key.

client:LangChain transport:stdio runtime:npm

Install theoddsapi mcp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

theoddsapi mcp in other clients