
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.
概览
只读访问 AI Ball 在开赛前记录的足球比赛概率,以及其公开的赛果记录。
- 功能
- 提供三个只读工具:list_matches 返回某个日历日的比赛,含 match_id、开赛时间、联赛、球队和状态;get_match_analysis 返回单场比赛开赛前记录的主胜/平/客胜概率、最可能结果、置信度和记录时间,赛后还会给出比分及是否命中;get_open_record 返回全部或某一周的记录,含比赛数、命中数、两个基准以及按置信度分组的计数。名称支持英文和马来文,响应由固定字段列表构成。
- 适用场景
- 适合让助手查询已记录的足球概率,或查看该模型最可能结果的真实表现,包括与热门基准和三分之一随机基准的对比。它是记录查询,不是实时赔率或投注数据源。
- 运行要求
- 通过 stdio 在本地运行,需要 Node.js 18 或更高版本。无需账号或 API 密钥。它会通过网络调用 AI Ball 的公开记录 API,因此需要联网。可用 AIBALL_API_BASE 指向其他基础地址。
安装
在 SourceWeft 中
- 打开 控制台中的 AI Ball — AI football match analysis,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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
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.balancedholds fractions forhome,drawandawaythat sum to 1. This version returns the balanced model;models_availablelists what is included.result.hitistruewhen the model's most likely outcome happened.hit_rateis a percentage.nullmeans the sample is undermin_band_sample, so use the countshitsandninstead.favourite_baselinescores the same matches by always taking the pre-match favourite;random_baselineis one outcome in three.upcomingmatches are locked before kick-off.pendingmatches 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
Cursor, VS Code and other clients
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
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- v0.2.0最新Oct 4, 2026
