Skip to content
LangChain

Football xG: Understat Matches, Shots & Tables for LangChain

io.github.serenido/football-xg

Understat football xG data: xG tables, matches, shots, players and lineups for top 5 leagues + RFPL.

client:LangChain transport:streamable-http

Install Football xG: Understat Matches, Shots & Tables in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "football-xg": {
            "transport": "streamable_http",
            "url": "https://mcp.apify.com/?tools=serenido/football-xg-scraper",
        }
})

tools = await client.get_tools()

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

Football xG: Understat Matches, Shots & Tables in other clients