AI Ball — AI football match analysis
RemoteAbout AI Ball — AI football match analysis
AI Ball is a read-only MCP server for football fans and analysis agents, providing pre-match outcome probabilities and recorded results. Its record preserves both hits and misses and can be reviewed by date or week.
Key features
- 01List matches by calendar day
- 02Retrieve pre-match outcome probabilities
- 03View scores and prediction results
- 04Review weekly or full-record statistics
- 05Return data in fixed fields
Use cases
- 01Check probabilities for today's matches
- 02Review the model's performance last week
- 03Compare with the favourite baseline
- 04Look back at matches the model missed
MCP support
It exposes three read-only tools to MCP clients for listing matches, retrieving an individual analysis, and reading the public record. The hosted version also provides a match-context tool.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://aiball.samagent.ai/mcpclaude mcp add --transport http aiballfooty-aiball https://aiball.samagent.ai/mcp{"mcpServers":{"aiballfooty-aiball":{"type":"http","url":"https://aiball.samagent.ai/mcp"}}}Open in Cursor{"servers":{"aiballfooty-aiball":{"type":"http","url":"https://aiball.samagent.ai/mcp"}}}Open in VS Code{"mcpServers":{"aiballfooty-aiball":{"type":"http","url":"https://aiball.samagent.ai/mcp"}}}{"mcpServers":{"aiballfooty-aiball":{"serverUrl":"https://aiball.samagent.ai/mcp"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
Tools
4| Parameter | Type | Required | Description |
|---|---|---|---|
| tz | string | No | IANA time zone used to decide which calendar day a match falls on. |
| date | string | No | YYYY-MM-DD. Defaults to today in tz. |
| lang | enum | No | Language of team and league names.en | ms |
| league | string | No | League name filter, optional. |
Details
From the project READMEAI 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
| Tool | What it returns |
|---|---|
list_matches | One calendar day: match_id, kick-off time, league, teams and status (upcoming, pending or finished) |
get_match_analysis | One 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_record | The 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.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.
Hosted version
Prefer not to install anything? The same record is served over MCP at:
https://aiball.samagent.ai/mcp
Streamable HTTP, no sign-in, read-only. It has the three tools below plus get_match_context (head-to-head, recent form, injuries and fixtures for finished matches only). Rate limit: 60 requests a minute per IP.
claude mcp add --transport http aiball https://aiball.samagent.ai/mcp
Install (local version)
Claude Desktop
Download aiball-mcp.mcpb from the latest release and open it.
Claude Code
claude mcp add aiball -- npx -y github:aiballfooty/aiball-mcp
Cursor, VS Code and other clients
{
"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
npm install
npm 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+.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.