Developers
Build on Boxerbook: MCP server and API
Two doors to the same read-only data. The MCP server is for AI assistants and agents; the JSON API is for code. Keys, plans and limits are managed on boxerbook.com/developers.
Boxing APIMCP serverPythonMarket oddsWin probabilityData set
MCP server
Endpoint https://mcp.boxerbook.com/mcp: Streamable HTTP, stateless, no sign-in.
claude mcp add --transport http boxerbook https://mcp.boxerbook.com/mcpSettings → Connectors → Add custom connector → https://mcp.boxerbook.com/mcp{ "mcpServers": { "boxerbook": { "url": "https://mcp.boxerbook.com/mcp" } } }| Tool | What it returns |
|---|---|
boxing_schedule | cards by day, weekend or 30 days, with start times (UTC) and broadcasters |
boxing_results | completed bouts of the last days, with sources |
boxer | a boxer card: record, division, rating, next fight, last result |
next_fight | the next scheduled bout of a boxer |
bout | one bout: records going in, result, forecast with its signals, market consensus |
where_to_watch | broadcasters and start time of a card |
rankings | top 15 of a division: the Boxerbook rating or a publisher list |
search_boxers | find a boxer by name |
gyms_near | boxing gyms near a place |
search / fetch | generic search and document fetch, as connector clients expect |
Guides for each client and one page per tool: mcp.boxerbook.com. Setup notes and example prompts: GitHub. In ChatGPT, Boxerbook is also in the plugin directory.
JSON API
Base URL https://boxerbook.com/v1. The full description is /v1/openapi.json (OpenAPI 3.1). Every answer carries attribution, as_of (UTC) and the url of its page.
| Endpoint | Parameters | Key | Returns |
|---|---|---|---|
/v1/schedule | when, country, division | none | Upcoming cards with start times, broadcasters and, per bout, forecast and market |
/v1/results | days, country, division | none | Completed bouts of the last N days with sources |
/v1/boxers/search | q | none | Find boxers by name |
/v1/rankings/{division} | publisher | none | Top 15 of a division: Boxerbook rating or a publisher list |
/v1/status | none | Data freshness: last rating run, counts | |
/v1/boxers/{id} | free key | Boxer card: record, division, rating, next fight | |
/v1/boxers/{id}/bouts | limit, offset | free key | A boxer's bouts, newest first, with both records going in |
/v1/bouts/{id} | free key | One bout: result, forecast, market, pre-fight signals of both corners | |
/v1/events/{id} | free key | One card: its bouts and broadcasters | |
/v1/bouts/{id}/model-data | Model plan | Officials with each judge's scorecard and the rest of the model data of a bout |
Send a key as Authorization: Bearer <key> or X-Api-Key. Without a key: 60 requests a minute and 50 a day per address. Plans and the data licence: pricing.
Examples
1. Model against market, no key
"""Model against market for the next cards: where do the Boxerbook forecast and the market consensus differ?
One request, no key.
python3 model_vs_market.py
"""
import json, urllib.request
URL = "https://boxerbook.com/v1/schedule?when=30d"
with urllib.request.urlopen(urllib.request.Request(URL, headers={"User-Agent": "model-vs-market-example"}), timeout=30) as r:
schedule = json.load(r)
# forecast.p_a is the model, market.p_a the consensus with the margin removed; both are the probability of side a.
rows = [b for event in schedule["events"] for b in event["bouts"] if b.get("forecast") and b.get("market")]
rows.sort(key=lambda b: -abs(b["forecast"]["p_a"] - b["market"]["p_a"]))
print("%-10s %-42s %6s %7s %5s" % ("date", "bout", "model", "market", "gap"))
for b in rows:
model, market = b["forecast"]["p_a"], b["market"]["p_a"]
name = "%s vs %s" % (b["a"]["name"], b["b"]["name"])
print("%-10s %-42s %5.0f%% %6.0f%% %+5.0f" % (b["date"], name[:42], 100 * model, 100 * market, 100 * (model - market)))
print("Source: Boxerbook, %s (as of %s)" % (schedule["attribution"]["url"], schedule["as_of"]))2. The signals of one bout
What the forecast reads for each corner. Needs a free key.
"""The pre-fight signals of one bout: what the forecast model reads for each corner.
export BOXERBOOK_API_KEY=... # free key: https://boxerbook.com/developers
python3 bout_signals.py 193203
"""
import json, os, sys, urllib.request
bout_id = int(sys.argv[1])
req = urllib.request.Request("https://boxerbook.com/v1/bouts/%d" % bout_id,
headers={"Authorization": "Bearer " + os.environ["BOXERBOOK_API_KEY"], "User-Agent": "bout-signals-example"})
with urllib.request.urlopen(req, timeout=30) as r:
bout = json.load(r)
signals = bout.get("signals") or {}
print("%s vs %s, %s" % (bout["a"]["name"], bout["b"]["name"], bout["date"]))
print("%-18s %14s %14s" % ("signal", "a", "b"))
for key in ("record", "age", "layoff_days", "last5", "ko_rate", "home", "stance", "height_cm", "reach_cm", "mu"):
print("%-18s %14s %14s" % (key, signals.get("a", {}).get(key), signals.get("b", {}).get(key)))
for name, block in (("rating only", {"p_a": signals.get("p_rating")}), ("model", bout.get("forecast")), ("market", bout.get("market"))):
if block and block.get("p_a") is not None:
print("%-18s P(a wins) = %.1f%%" % (name, 100 * block["p_a"]))
print("Cite:", bout["url"])3. Odds to probability
The same arithmetic as the converter, as a function.
"""Odds to implied probability, with the margin removed. No network, no dependencies."""
def implied(odds):
"""Decimal odds (1.25), American odds ("-400", "+300") or fractional odds ("1/4") -> raw implied probability."""
s = str(odds).strip()
if "/" in s:
num, den = s.split("/")
return float(den) / (float(num) + float(den))
if s[0] in "+-":
v = float(s)
return 100 / (v + 100) if v > 0 else -v / (-v + 100)
return 1 / float(s)
def no_margin(*odds):
"""Probabilities of all outcomes of one bout, scaled to sum to 1 (the proportional method)."""
raw = [implied(o) for o in odds]
return [p / sum(raw) for p in raw]
if __name__ == "__main__":
a, b = no_margin("-400", "+300")
print("raw: %.1f%% + %.1f%% = %.1f%%" % (100 * implied("-400"), 100 * implied("+300"), 100 * (implied("-400") + implied("+300"))))
print("margin removed: %.1f%% / %.1f%%" % (100 * a, 100 * b)) # 76.2% / 23.8%For agents
- Side a.
p_a,winneranda/balways keep their side;displaygives the order to name the boxers in. - Times.
start_utcis the start of the card, in UTC. Convert it for the user. - Records. A record on a bout is the record going into it.
- Probabilities.
forecastis the model,marketthe consensus with the margin removed. Both are information, not advice. - Cite. Each answer has the
urlof its boxerbook.com page: link it. - This site for machines. /llms.txt, every study as plain text (
/articles/<slug>.md), and JSON files listed on the data page.
Prompts that work
Tale of the tape with numbers
Use the Boxerbook tools. For the next fight of {boxer}: call next_fight, then bout for its id. Give a table of both corners (record, age, layoff, last five, stoppage share, height, reach, stance), then the model probability and the market probability, and say in one sentence where they differ. Cite the bout URL.Model against market this weekend
Use the Boxerbook tools. Call boxing_schedule for the weekend. For every bout that has both a forecast and a market, list model %, market % and the gap, largest gap first. No advice, numbers only. Cite boxerbook.com.Is the favourite as safe as the price says?
A favourite is priced at {odds}. Convert to implied probability and remove the margin using the other side {odds_b}. Then compare with the calibration table at https://boxerbook.ai/articles/how-accurate-are-boxing-odds.md and say how often favourites in that range won.