Skip to main content
Glama
GoalGorithm MCP Server

GoalGorithm MCP Server

by tohoanganhai

GoalGorithm MCP Server

Soccer match predictions using xG data and Poisson distribution, exposed as MCP tools for Claude Desktop/Code.

Proven in production — This prediction model is actively used on BongdaNET, a football analytics platform that combines expert analysis with data science to deliver accurate match predictions. BongdaNET also serves as a comprehensive football data hub — offering odds from top bookmakers, live results, fixtures, and standings for leagues worldwide — providing a smart betting experience for punters and football enthusiasts alike.

Install

pip install goalgorithm-mcp

Or run directly:

uvx goalgorithm-mcp

Related MCP server: football-data-mcp

Claude Desktop Config

Add to your Claude Desktop config (claude_desktop_config.json):

{
  "mcpServers": {
    "goalgorithm": {
      "command": "goalgorithm-mcp"
    }
  }
}

Example Usage

Once configured, just ask Claude naturally:

You: "Predict Arsenal vs Chelsea this weekend"

Claude will call the predict_match tool and respond with something like:

Claude: Here's the prediction for Arsenal vs Chelsea (Premier League):

Outcome

Probability

Arsenal Win

52.4%

Draw

22.7%

Chelsea Win

24.9%

  • Expected Goals: Arsenal 1.85 — Chelsea 1.23

  • Over 2.5 Goals: 58.3% | Under 2.5: 41.7%

  • Both Teams to Score: Yes 52.1% | No 47.9%

  • Most Likely Scores: 1-0 (12.8%), 1-1 (11.2%), 2-1 (10.5%)

Arsenal are clear favorites at home with stronger attacking xG.

Other things you can ask:

  • "Show me the La Liga xG table" — calls get_league_table

  • "Which leagues are available?" — calls list_leagues

  • "Who's more likely to win, Bayern or Dortmund?" — calls predict_match

Tools

predict_match

Predict soccer match outcome using xG-based Poisson model.

predict_match(home_team="Arsenal", away_team="Chelsea", league="EPL")

Returns: win/draw/loss %, over/under 2.5, BTTS, top 3 scores, expected goals, score matrix.

list_leagues

List all supported soccer leagues with IDs and slugs.

get_league_table

Get all teams in a league with their xG statistics, sorted by attacking strength.

get_league_table(league="EPL")

Supported Leagues

ID

League

Slug

9

Premier League

EPL

12

La Liga

LaLiga

11

Serie A

SerieA

20

Bundesliga

Bundesliga

13

Ligue 1

Ligue1

How It Works

  1. Fetches team xG/xGA stats from Understat.com

  2. Computes attack/defense strength relative to league average

  3. Applies Poisson distribution to calculate goal probabilities

  4. Builds 6x6 score matrix for all possible scorelines (0-5 goals each)

  5. Derives match outcomes: W/D/L, Over/Under 2.5, BTTS

Data Source

All data from Understat.com public JSON API. Results cached locally for 12 hours.

License

GPL v2 or later

Available Tools

3 tools
get_league_tableA

Get all teams in a league with their xG statistics.

Returns teams sorted by attacking strength (xG per 90 minutes).

Args: league: League slug, name, or ID (default: EPL)

Inputs: league. Returns: object

list_leaguesA

List all supported soccer leagues with IDs and slugs.

Inputs: no named parameters. Returns: result

predict_matchA

Predict soccer match outcome using xG-based Poisson model.

Returns win/draw/loss probabilities, over/under 2.5 goals, both teams to score, and top 3 most likely scores.

Args: home_team: Home team name (e.g. "Arsenal") away_team: Away team name (e.g. "Chelsea") league: League slug, name, or ID (default: EPL)

Inputs: home_team (required), away_team (required), league. Returns: object

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: get_league_table retrieves team statistics, list_leagues provides league metadata, and predict_match forecasts match outcomes. There is no overlap in functionality, making tool selection straightforward for an agent.

    Naming Consistency5/5

    All tools follow a consistent verb_noun naming pattern (get_league_table, list_leagues, predict_match). The verbs are descriptive and appropriate for their actions, and the snake_case style is uniformly applied across all tools.

    Tool Count3/5

    With only 3 tools, the server feels thin for a soccer analytics domain. While the tools cover key areas (leagues, tables, predictions), additional operations like historical match data or player statistics could enhance completeness, making the count borderline for the apparent scope.

    Completeness4/5

    The tools provide a solid foundation for soccer analytics with league listing, table retrieval, and match prediction. However, there are minor gaps, such as missing update or delete operations for leagues or teams, and no tools for deeper statistical analysis or historical data, which agents might need to work around.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Provides AI agents with access to football match predictions for Premier League and Champions League, including half-time/full-time scores, goal scorers, corner counts, and key player insights.
      1
      80 npm
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides football analytics tools including player scouting, comparisons, market-value filters, expected-goals tables, match-by-match form, team attacking profiles, match search, shot maps, and more for 10 leagues.
      6
      GPL 3.0
    • A
      license
      A
      quality
      D
      maintenance
      Live football/soccer data from top European leagues, enabling queries for standings, fixtures, scorers, and team comparisons via natural language.
      6
      7 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Provides comprehensive soccer/football data including standings, team search, league search, match predictions, and head-to-head records via the API-Football service.
      79 npm
      1
      MIT