Skip to main content
Glama
tohoanganhai

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)

ParametersJSON Schema
NameRequiredDescriptionDefault
leagueNoEPL

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A3.7/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden. It discloses that results are sorted by 'attacking strength (xG per 90 minutes)', which is useful behavioral context beyond basic retrieval. However, it lacks details on rate limits, authentication needs, pagination, error conditions, or whether this is a read-only operation (implied by 'Get' but not explicit). The description doesn't contradict annotations (none exist).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is perfectly structured and concise: purpose statement first, behavioral detail second, parameter documentation third. Every sentence earns its place - no redundant information. The three-sentence format is front-loaded with the core functionality.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 1 parameter with 0% schema coverage, no annotations, but an output schema exists, the description does well. It explains the parameter semantics and sorting behavior. The output schema existence means return values don't need description. However, for a data retrieval tool, additional context about data freshness, source, or limitations would enhance completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It provides meaningful semantics for the single parameter: 'league: League slug, name, or ID (default: EPL)' - explaining what the parameter represents and acceptable formats. This adds substantial value beyond the bare schema. However, it doesn't provide examples of valid slugs/names/IDs beyond the default 'EPL'.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Get all teams in a league with their xG statistics' - a specific verb ('Get') and resource ('teams in a league with xG statistics'). It distinguishes from sibling tools (list_leagues, predict_match) by focusing on team statistics rather than league listing or match prediction. However, it doesn't explicitly contrast with siblings beyond this implicit differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage context through 'Returns teams sorted by attacking strength' and the league parameter, suggesting this is for analyzing team performance metrics. However, it provides no explicit guidance on when to use this tool versus alternatives like predict_match for match outcomes or list_leagues for league metadata. No when-not-to-use scenarios or prerequisites are mentioned.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

list_leaguesA

List all supported soccer leagues with IDs and slugs.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden. It describes the output format ('IDs and slugs') but does not disclose behavioral traits such as rate limits, authentication needs, or whether the list is static or dynamic. The description is accurate but lacks operational context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, front-loaded sentence that directly states the tool's function and output. Every word earns its place with no redundancy or waste, making it highly efficient and easy to understand.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (0 parameters, no annotations, but with an output schema), the description is complete enough for a list operation. It specifies the resource and output format, and the output schema will handle return values, so no additional detail is needed for basic functionality.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has 0 parameters, and schema description coverage is 100%. The description does not need to add parameter semantics, so a baseline of 4 is appropriate as it efficiently states the tool's purpose without unnecessary parameter details.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('List') and resource ('all supported soccer leagues'), specifying what information is returned ('with IDs and slugs'). It distinguishes from sibling tools like 'get_league_table' (which focuses on standings) and 'predict_match' (which focuses on match predictions).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for retrieving league metadata, but does not explicitly state when to use this tool versus alternatives like 'get_league_table' for standings or 'predict_match' for predictions. No exclusions or prerequisites are mentioned, leaving usage context somewhat open-ended.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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)

ParametersJSON Schema
NameRequiredDescriptionDefault
home_teamYes
away_teamYes
leagueNoEPL

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It describes the prediction model and outputs, but lacks details on limitations (e.g., accuracy, data recency), error handling, or performance traits like rate limits. It adequately covers the core behavior but misses deeper operational context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured and front-loaded, starting with the core purpose and outputs, followed by a clear parameter breakdown. Every sentence adds value without redundancy, making it efficient and easy to parse for an AI agent.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of a prediction tool with no annotations but an output schema, the description is mostly complete. It explains the model, outputs, and parameters, but could improve by addressing limitations or dependencies. The output schema likely covers return values, reducing the need for detailed output explanation here.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It adds meaningful semantics by explaining each parameter's purpose with examples (e.g., 'Home team name (e.g. "Arsenal")') and specifying the default for 'league'. This goes beyond the bare schema, though it could provide more on format constraints or valid values.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('predict soccer match outcome'), the method ('using xG-based Poisson model'), and the exact outputs (probabilities for win/draw/loss, over/under 2.5 goals, both teams to score, and top 3 most likely scores). It distinguishes itself from sibling tools like 'get_league_table' and 'list_leagues' by focusing on match prediction rather than data retrieval.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for predicting soccer match outcomes, but it does not explicitly state when to use this tool versus alternatives or provide any exclusions. There is no guidance on prerequisites or scenarios where other tools might be more appropriate, leaving usage context somewhat vague.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

TDQS

A3.9/5.0
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
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

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
    61
    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
    B
    maintenance
    Live football/soccer data from top European leagues, enabling queries for standings, fixtures, scorers, and team comparisons via natural language.
    6
    14
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Provides comprehensive soccer/football data including standings, team search, league search, match predictions, and head-to-head records via the API-Football service.
    10
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tohoanganhai/goalgorithm-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server