AI Ball — AI football match analysis

io.github.aiballfootyv0.2.0更新于 Oct 4, 2026

Football match outcome probabilities recorded before kick-off, and an open record of results.

已验证STDIO仅桌面FinanceData & Analytics

概览

AI 生成的概览

只读访问 AI Ball 在开赛前记录的足球比赛概率,以及其公开的赛果记录。

功能
提供三个只读工具:list_matches 返回某个日历日的比赛,含 match_id、开赛时间、联赛、球队和状态;get_match_analysis 返回单场比赛开赛前记录的主胜/平/客胜概率、最可能结果、置信度和记录时间,赛后还会给出比分及是否命中;get_open_record 返回全部或某一周的记录,含比赛数、命中数、两个基准以及按置信度分组的计数。名称支持英文和马来文,响应由固定字段列表构成。
适用场景
适合让助手查询已记录的足球概率,或查看该模型最可能结果的真实表现,包括与热门基准和三分之一随机基准的对比。它是记录查询,不是实时赔率或投注数据源。
运行要求
通过 stdio 在本地运行,需要 Node.js 18 或更高版本。无需账号或 API 密钥。它会通过网络调用 AI Ball 的公开记录 API,因此需要联网。可用 AIBALL_API_BASE 指向其他基础地址。
安装前请注意
所有工具均为只读,不索取任何凭据。请求发往 AI Ball 的公开 API,携带工具参数(日期、时区、语言)和 User-Agent,不包含你的对话或文件;服务方保留常规访问日志。概率在开赛前记录,upcoming 比赛已锁定,pending 比赛所带读数仍可能变化。

安装

在 SourceWeft 中

  1. 打开 控制台中的 AI Ball — AI football match analysis,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

AI Ball MCP server

Read-only Model Context Protocol server for AI Ball, AI football match analysis.

It gives an AI assistant two things:

  • Pre-kick-off outcome probabilities. For each match, the model's home / draw / away probabilities as recorded before kick-off.
  • The open record. What happened afterwards: the final score and whether the model's most likely outcome came in. Misses are counted the same way as hits, and nothing is removed after the fact.

No account, no API key. The server only calls AI Ball's public record API.

Tools

ToolWhat it returns
list_matchesOne calendar day: match_id, kick-off time, league, teams and status (upcoming, pending or finished)
get_match_analysisOne match: home / draw / away probabilities recorded before kick-off, the most likely outcome, confidence, when the read was captured, and once played the score and whether it came in
get_open_recordThe whole record, or one week with week_start: matches counted, how many went the model's way, two baselines on the same matches, and the count by confidence band

Every tool is read-only (readOnlyHint: true). Names are available in English (lang: "en") and Malay (lang: "ms"). Responses are built from a fixed list of fields; nothing from the upstream API is passed through as-is.

Reading the numbers

  • models.balanced holds fractions for home, draw and away that sum to 1. This version returns the balanced model; models_available lists what is included.
  • result.hit is true when the model's most likely outcome happened.
  • hit_rate is a percentage. null means the sample is under min_band_sample, so use the counts hits and n instead.
  • favourite_baseline scores the same matches by always taking the pre-match favourite; random_baseline is one outcome in three.
  • upcoming matches are locked before kick-off. pending matches carry a current read that may still change.

The server caches each upstream response for five minutes and spaces its requests, so repeated questions do not hit AI Ball's API again.

Install

Claude Desktop

Download aiball-mcp.mcpb from the latest release and open it.

Claude Code

bash
claude mcp add aiball -- npx -y github:aiballfooty/aiball-mcp

Cursor, VS Code and other clients

json
{  "mcpServers": {    "aiball": {      "command": "npx",      "args": ["-y", "github:aiballfooty/aiball-mcp"]    }  }}

Requires Node.js 18 or later.

Example questions

  • "How did AI Ball's model do on last week's matches?"
  • "Which of last week's matches did the model get wrong?"
  • "What are the model's probabilities for today's matches, in Malaysia time?"
  • "Across the whole record, does the model do better than always taking the favourite?"

Privacy

The server runs on your machine and sends requests only to https://aiball.samagent.ai/api/v1. Requests carry the tool's parameters (a date, a time zone, a language) and a User-Agent of aiball-mcp/<version>. They do not carry your conversation, your files or any identifier. AI Ball's web server keeps standard access logs. Site privacy policy: https://aiball.samagent.ai/en/privacy

Development

bash
npm installnpm test        # starts the server and calls every tool against the live API

Set AIBALL_API_BASE to point the server at another base URL.

Licence

MIT. For information only. Not advice. 18+.

来源:README.md,提交 a80d82b

工具

0
工具元数据尚未被收录。

版本历史

1
  1. v0.2.0最新Oct 4, 2026