Skip to main content
Glama
README.md
# cfb-kit

College football's conference title races and playoff picture, for your AI assistant. It's the
engine behind [Title Paths](https://titlepaths.com) and [Gameday Stakes](https://gamedaystakes.com),
packaged as a local [MCP](https://modelcontextprotocol.io) server, so you can ask things like:

- "What does Utah need to make the Big 12 title game?"
- "If BYU loses to Baylor and Texas Tech wins out, who's in?"
- "Walk me through the tiebreaker if Houston, BYU and Texas Tech all finish 7-2."
- "I'm a Utah fan. Who should I root for this weekend, and why?"
- "Which games this week matter most for the playoff?"
- "Chart the Utah game's win probability with the score at each swing."

No account, no API key. It runs on your machine.

## Install

You need [Node.js](https://nodejs.org) 20 or newer.

**Claude Code**

```bash
claude mcp add cfb -- npx -y github:jacoblords/cfb-kit
```

**Claude Desktop, Cursor, and others:** add this to the client's MCP config
(Claude Desktop: Settings → Developer → Edit Config):

```json
{
  "mcpServers": {
    "cfb": { "command": "npx", "args": ["-y", "github:jacoblords/cfb-kit"] }
  }
}
```

## Tools

**What the engines say** (always on):

| Tool | What it answers |
|---|---|
| `title_odds` | A team's title-game odds, exact when few games are left, with clinched/eliminated proofs, the games that move them, its likeliest path, and a set of results that guarantees it a spot |
| `what_if` | Everyone's title-game odds if certain results happen, before vs. after |
| `tiebreak` | Final standings and each tiebreaker step that decides the title game, with the numbers |
| `root_for` | Who a fan should pull for in every game this week, 0–5 stars, and each reason |
| `odds_moves` | What one game does to title odds, playoff lines, and (title weekend) the playoff field |
| `playoff_field` | The projected 12-team field, everyone's odds in and of a bye, and what each title game swings |
| `top_games` | The week's games ranked by stakes times drama |
| `team` | Record, ranking, FPI, Strength of Record, colors and logo |

**Scores and stats from ESPN** (on by default):

| Tool | What it answers |
|---|---|
| `scoreboard` | A week's games: score, status, ranks, TV, line, down and distance for games under way |
| `game_summary` | One game: win probability over time, the score at every change, scoring plays, leaders |
| `rankings` | CFP, AP and coaches polls |
| `team_schedule` | A team's schedule and results |

Title odds cover the Big 12, SEC, ACC, Big Ten and Pac-12, each under its official tiebreaker
procedure. Every answer says whether its numbers are exact, simulated or estimated.

## Where the numbers come from

- **Title races:** Title Paths' published odds, which are exact over every possible finish once
  about 25 or fewer games are left. A what-if is recomputed here: exactly when it leaves 22 or
  fewer games (a second or two), otherwise by simulation.
- **Root-for, odds moves, the playoff field:** Gameday Stakes' published data and its scoring
  model. Rankings and playoff effects are estimates. The committee isn't modeled.
- **ESPN tools:** ESPN's public (undocumented) API, called from your machine only when you ask,
  cached for 30 seconds, at most four requests at a time. To turn them off, add `--no-espn`
  after `github:jacoblords/cfb-kit`, or set `CFB_KIT_NO_ESPN=1`.

Want deeper historical stats (play-by-play, drives, player stats going back years)? The
[College Football Data](https://collegefootballdata.com) API has them, with a free key, via
[cfbd-mcp-server](https://github.com/lenwood/cfbd-mcp-server). Add it alongside this one.

## Develop

```bash
npm install
npm test            # end to end over stdio, against fixtures; no network
node mcp/server.mjs # stdio; point a client at it
```

`CFB_KIT_TITLEPATHS` and `CFB_KIT_STAKES` point the server at other sources: a URL, or a
folder laid out like the sites (`<league>/page-data.json`, `data.json`).

`engine/` is copied from the two sites (see [engine/SOURCES.md](engine/SOURCES.md)).
Change it there first.

TDQS

A3.5/5.0

Scored across 12 tools

Disambiguation4/5

Most tools are distinct: team, scoreboard, game_summary, rankings, team_schedule, top_games and root_for are clearly separated by resource and intent. The odds cluster (odds_moves, playoff_field, title_odds, what_if, tiebreak) has genuine overlap—odds_moves vs what_if vs title_odds all compute odds shifts—but the descriptions draw useful lines (single-game domino impact vs. league-wide hypotheticals vs. one team's tiebreaker odds).

Naming Consistency4/5

Everything is snake_case and readable, with a predictable noun or verb_noun shape. It's not a single uniform verb_noun convention—some names are bare nouns (team, scoreboard, rankings, tiebreak) while others are verb-based (root_for, what_if)—but the deviation is minor and never confusing.

Tool Count5/5

Twelve tools is a well-scoped set for a college football analytics server, with each tool earning a distinct niche (odds, standings logic, rankings, scores, team data). No obvious filler or redundancy in the count.

Completeness4/5

The surface covers the core lifecycle—team info, schedule, scores, game detail, polls, playoff field, title odds, tiebreakers, and fan guidance—so an agent can run most college football workflows. Gaps are modest: there's no explicit current conference standings table, no player/roster or box-score-stat tool beyond leaders, and no historical/season-progression view.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues