BoxerbookAI

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 Code
claude mcp add --transport http boxerbook https://mcp.boxerbook.com/mcp
Claude Desktop, claude.ai, ChatGPT
Settings → Connectors → Add custom connector → https://mcp.boxerbook.com/mcp
Cursor, VS Code and other clients
{ "mcpServers": { "boxerbook": { "url": "https://mcp.boxerbook.com/mcp" } } }
ToolWhat it returns
boxing_schedulecards by day, weekend or 30 days, with start times (UTC) and broadcasters
boxing_resultscompleted bouts of the last days, with sources
boxera boxer card: record, division, rating, next fight, last result
next_fightthe next scheduled bout of a boxer
boutone bout: records going in, result, forecast with its signals, market consensus
where_to_watchbroadcasters and start time of a card
rankingstop 15 of a division: the Boxerbook rating or a publisher list
search_boxersfind a boxer by name
gyms_nearboxing gyms near a place
search / fetchgeneric 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.

EndpointParametersKeyReturns
/v1/schedulewhen, country, divisionnoneUpcoming cards with start times, broadcasters and, per bout, forecast and market
/v1/resultsdays, country, divisionnoneCompleted bouts of the last N days with sources
/v1/boxers/searchqnoneFind boxers by name
/v1/rankings/{division}publishernoneTop 15 of a division: Boxerbook rating or a publisher list
/v1/statusnoneData freshness: last rating run, counts
/v1/boxers/{id}free keyBoxer card: record, division, rating, next fight
/v1/boxers/{id}/boutslimit, offsetfree keyA boxer's bouts, newest first, with both records going in
/v1/bouts/{id}free keyOne bout: result, forecast, market, pre-fight signals of both corners
/v1/events/{id}free keyOne card: its bouts and broadcasters
/v1/bouts/{id}/model-dataModel planOfficials 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

python · model_vs_market.py
"""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.

python · bout_signals.py
"""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.

python · implied_probability.py
"""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

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.