Skip to main content
Glama

match-report

One-page football match reports from StatsBomb Open Data: both passing networks, both shot maps, an xG race chart and a stats comparison. Ask an AI assistant for "the 2022 World Cup final" and get this:

Argentina v France, 2022 World Cup final

It ships two ways, built on the same code:

  • An MCP server for any MCP client (Claude Code, Claude Desktop and others). Runs locally over stdio; nothing to host, no API key.

  • A Claude Code skill for people who would rather drop a folder into their project.

MCP server

Requires Python 3.10+.

pip install git+https://github.com/miguelmolina95/match-report

That puts a match-report-mcp command on your path. Register it with your client.

Claude Code:

claude mcp add --scope user match-report -- match-report-mcp

Claude Desktop, or any client that takes a JSON config:

{
  "mcpServers": {
    "match-report": { "command": "match-report-mcp" }
  }
}

If the client cannot find the command, use its absolute path (which match-report-mcp).

Tools

Tool

What it does

find_matches

Search by team, year, competition or stage; returns match ids

list_competitions

What competition-seasons exist, with match counts

match_summary

Score, scorers and minutes, xG, shots, passing for one match

match_shots

Every shot with player, minute, xG, outcome and location

match_report

The report image, plus the summary and a full-resolution PNG path

All tools are read-only. The server writes only to its cache, ~/.cache/match-report (override with MATCH_REPORT_CACHE).

Related MCP server: FotMoCP

Claude Code skill

Copy skills/match-report into ~/.claude/skills/ (all projects) or .claude/skills/ (one project), and install its dependencies:

pip install requests matplotlib mplsoccer

The scripts also work on their own:

python3 skills/match-report/scripts/find_match.py argentina france 2022
python3 skills/match-report/scripts/match_report.py 3869685 --home-color "#6CACE4" --away-color "#1D2A5B"

Try it

  • "Show me the match report for the 2022 World Cup final."

  • "What women's competitions have data?"

  • "Who had the better chances when Leverkusen beat Bayern 3-0 in 2024?"

What it covers, and what it doesn't

StatsBomb Open Data is a curated free sample: about 80 competition-seasons and 4,000 matches, including World Cups, Euros, Copa América, much of Messi's La Liga career, single seasons of a few leagues and a lot of women's football. It is not a live feed, and most recent club matches are not in it.

How the numbers are computed

  • Goals are counted from events and cross-checked against the official result.

  • Own goals count towards the score but carry no xG.

  • Extra time is included. Penalty shootouts are reported separately and excluded from goals, shots and xG.

  • Each passing network covers one settled XI: kick-off until that team's first substitution after half-time. A first-half replacement is swapped in.

  • Pass links use the receiver named in the data.

Known limits

  • Players with the same average position overlap in the passing network.

  • Name labels use the last word of a name, so some multi-word surnames are shortened.

  • The skill's scripts and the server package carry separate copies of the data and rendering code.

Attribution

Data is provided by StatsBomb under their open-data licence, which asks that published work credits them and shows their logo. The report image carries a "Data: StatsBomb Open Data" footer. This project is not affiliated with StatsBomb.

Available Tools

5 tools
find_matchesA

Search for matches and get their match_id, teams, score, date and competition.

Matching ignores case and accents. Team names are StatsBomb's ("Bayern Munich", "Spain Women's"). If several matches fit and the user's wording does not pick one, show the candidates and ask instead of guessing.

Inputs: query (required), limit.

list_competitionsA

List the competition-seasons that have free event data, with match counts.

Use this to answer "what can I look at?" or to explain why a match was not found.

Inputs: query.

match_reportA

Render a one-page match report image and return it with the numbers behind it.

The image shows both passing networks, both shot maps, an xG race with goal markers and a stats comparison. The data has no kit colours, so pass each team's recognisable colour; the two must differ clearly and both must show on an off-white background (for a team in white, use its secondary colour). Each passing network covers one settled XI, from kick-off to that team's first substitution after half-time.

Returns the PNG, the summary, and the path of a full-resolution copy on disk.

Inputs: match_id (required), away_color, home_color.

match_shotsA

Every shot in a match in order: player, minute, xG, outcome, type and location.

Coordinates are StatsBomb's: x 0-120 towards the goal being attacked, y 0-80 across, so both teams' shots sit near x = 120. Shootout kicks are excluded.

Inputs: match_id (required).

match_summaryA

Headline numbers for one match: score, scorers with minutes, xG, shots, passing.

Extra time is included; penalty shootouts are reported separately and excluded from goals, shots and xG. score_matches_listing is false if goals counted from events disagree with the official result, which should be mentioned to the user.

Inputs: match_id (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool occupies a distinct stage of a single workflow: discovery (list_competitions), search (find_matches), aggregate summary (match_summary), event detail (match_shots), and rendered output (match_report). The descriptions explicitly delineate scope, e.g. match_shots excludes shootout kicks and match_summary reports them separately, so boundaries are clear. An agent should have no trouble selecting the right tool.

    Naming Consistency4/5

    Two discovery tools use verb_noun (list_competitions, find_matches) while the three data tools share a clean match_* noun_prefix family. It is two conventions rather than one, but both are internally consistent and highly predictable given the server name.

    Tool Count5/5

    Five tools is tightly scoped to the match-report domain with no redundancy: discovery, lookup, summary, shot detail, and rendering. Every tool has an identifiable role in the pipeline and nothing appears vestigial.

    Completeness4/5

    The end-to-end workflow (find a match, inspect it, render a report) is fully covered, including competition discovery to explain misses. Minor gaps exist: passers/lineups and passing-network data are only available indirectly through match_report, with no standalone lineup or player-stat tool, and no competition- or season-level aggregation beyond the listing counts.

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      D
      maintenance
      Provides live football data through MCP tools, enabling users to fetch today's matches and top scorers for competitions like the Premier League or World Cup.
      2
      -
    • A
      license
      A
      quality
      D
      maintenance
      Enables MCP clients to access live football data from FotMob, including match stats, team form, injuries, and player workload, without making predictions.
      10
      1
      MIT
    • F
      license
      A
      quality
      B
      maintenance
      Enables querying FotMob football data including matches, match details, teams, leagues, players, and search through MCP-compatible LLM clients.
      6
      -
    • F
      license
      Not graded
      quality
      C
      maintenance
      Provides live football data from API-Football over HTTP, enabling queries for upcoming matches, recent results, current standings, injuries, live matches, and team search through MCP tools.
      -