CBB MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
CBB Predictive Dashboard
NCAA Men's D1 College Basketball — Live Dashboard + Predictive Win Probability Engine
Dashboard Preview

A full-stack Python application that combines a live college basketball MCP server with an interactive dashboard and an in-game win probability predictor. Watch games in real time on an interactive US map, explore box scores and play-by-play, and get live win probability powered by an ensemble ML model.
Related MCP server: NBA MCP Server
Features
Live Dashboard
Interactive US Map — every D1 game plotted by venue with color-coded status (green = live, gray = final, blue = upcoming)
30-second auto-refresh — live scores update automatically
Game panel — click any marker to open a real-time box score and play-by-play feed
AP Top 25 + All Teams sidebar — 362 D1 teams browsable by conference with instant search
AI Chat — natural language queries backed by live data tools (scores, stats, rankings, comparisons)
Conference filter — narrow the map to a single conference
Predictive Engine
In-game win probability — live percentage updated every 30 seconds using current score, time remaining, and game period
Ensemble model — combines Logistic Regression (stable anchor) and XGBoost (non-linear patterns) with equal weighting
Features: score differential, time ratio, minutes remaining, period
Training pipeline — collect historical play-by-play snapshots and retrain with a single command
Model artifact — saved as
cbb_predictor_bundle.joblib(LR model + XGBoost + scaler + feature list)
MCP Server (16 tools)
Tool | Description |
| Live/final scores for any date, filterable by conference or Top 25 |
| Look up any team by name (fuzzy matched) |
| Search teams by name or conference |
| Full roster with player details |
| Complete schedule with results |
| Game info with scoring summary |
| Per-player and team box score |
| Play-by-play with timestamps |
| AP Top 25, Coaches Poll |
| Conference standings with streaks |
| Season team stats (PPG, FG%, RPG, etc.) |
| Individual player stats for a team |
| National stat leaders by category |
| Side-by-side team comparison |
| All games on a date with TV info |
| March Madness bracket and results |
Project Structure
├── src/cbb_mcp/ # MCP server (data layer)
│ ├── server.py # Tool registrations + entry point
│ ├── config.py # Environment-based configuration
│ ├── services/ # Business logic (games, teams, rankings, stats)
│ ├── sources/ # ESPN, NCAA, sportsdataverse, cbbpy adapters
│ ├── models/ # Pydantic data models
│ └── utils/ # Cache, rate limiter, HTTP client
├── dashboard/ # Dash web application
│ ├── app.py # Entry point
│ ├── layout.py # Full page layout
│ ├── components/ # Map, game panel, rankings sidebar, chat
│ ├── callbacks/ # Dash reactive callbacks
│ ├── ai/ # AI chat agent + tool dispatcher
│ ├── data/ # Venue coordinates for all 362 D1 schools
│ └── scripts/
│ ├── collect_historical_data.py # Fetch play-by-play training data
│ ├── train_predictor.py # Train + save ensemble model
│ └── build_venue_coords.py # Geocode venue locations
├── tests/ # 51 unit tests
├── Dockerfile
├── docker-compose.yml
└── pyproject.tomlQuick Start
Install
git clone https://github.com/RajaChaiban/CBB_Predictive_Dashboard.git
cd CBB_Predictive_Dashboard
pip install -e ".[dashboard]"Configure
Copy .env.example to .env and fill in your values:
cp .env.example .envKey variables:
Variable | Description |
| API key for the AI chat backend |
| Model name to use for chat |
| Dashboard port (default |
|
|
Run the Dashboard
python dashboard/app.pyOpen http://localhost:8050 in your browser.
Predictive Engine
1. Collect Training Data
For 2025-26 season (recommended), use the pre-built enhanced training data:
python dashboard/scripts/train_predictor.py --input enhanced_training_data_2025_26.csvFor custom date ranges, collect data first:
python dashboard/scripts/collect_historical_data.py \
--start 2025-11-01 \
--end 2026-02-27 \
--output cbb_training_data_2025_26.csv
python dashboard/scripts/train_predictor.py --input cbb_training_data_2025_26.csv⚠️ Note: Only use 2025-26 season data. College rosters change dramatically between seasons.
Each row is a game snapshot with: score_diff, momentum, strength_diff, time_ratio, mins_remaining, period, plus 12 contextual features.
Outputs:
Logistic Regression accuracy + Brier score (99.50% on 2025-26)
XGBoost accuracy + Brier score (99.75% on 2025-26)
Ensemble accuracy + Brier score (99.75% on 2025-26)
cbb_predictor_bundle.joblib— the saved model bundle
3. Live Predictions
Once cbb_predictor_bundle.joblib exists in the project root, the dashboard automatically loads it and displays win probability on every live game marker and in the game panel. Probabilities update every 30 seconds with the live score refresh.
How It Works
Live Score (ESPN)
│
▼
score_diff = home_score - away_score
time_ratio = elapsed_time / total_game_time
mins_remaining = minutes left in game
period = 1st half / 2nd half / OT
│
▼
Logistic Regression ──┐
├── average → Win Probability %
XGBoost ──────────────┘Data Sources
All sources are free and require no API keys:
Source | What it provides |
ESPN Hidden API | Live scores, teams, rankings, standings, schedules, box scores |
NCAA API | Scores, rankings, game details |
sportsdataverse | Historical play-by-play, team/player box scores |
cbbpy | Box scores, play-by-play, schedules |
The server tries ESPN first (most comprehensive), then falls back automatically.
Remote Hosting (HTTP)
CBB_TRANSPORT=streamable-http python -m cbb_mcp.server
# With API key authentication
CBB_TRANSPORT=streamable-http CBB_SERVER_API_KEY=your-secret python -m cbb_mcp.serverDocker
docker build -t cbb-dashboard .
docker run -p 8000:8000 -p 8050:8050 cbb-dashboard
# Or with docker-compose
docker compose upConfiguration
All config via environment variables or .env file:
Variable | Default | Description |
|
|
|
|
| MCP server bind address |
|
| MCP server port |
| (empty) | Bearer token for HTTP auth |
|
| Dashboard bind address |
|
| Dashboard port |
|
| Enable/disable caching |
|
| Disk cache directory |
|
| Logging level |
|
| ESPN requests/sec |
|
| NCAA requests/sec |
Development
pip install -e ".[dev]"
pytest51 tests covering services, models, caching, rate limiting, and source fallback logic.
Security
All inputs validated and length-limited
HTTP auth uses timing-safe comparison
API keys never logged or returned in responses
HTTP responses capped at 5 MB
Non-root Docker user
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.
17 pay-per-call web, finance, legal and onchain tools for AI agents. USDC on Base via x402/MPP.
185 tools: company jobs, token/wallet/company/website reports, crypto, EVM, SEC, FRED, weather, DNS.
16 Bitcoin, business, data, text, and developer tools for AI agents over one MCP endpoint.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn MCP server for accessing college basketball statistics through the SportsData.io CBB v3 Stats API, enabling AI agents to retrieve and analyze college basketball data through natural language interactions.-
- AlicenseAqualityDmaintenanceEnables MCP-compatible LLM clients to access live NBA data, including stats, standings, rosters, scores, and box scores via callable tools.9MIT
- AlicenseBqualityBmaintenanceEnables AI agents to query live and historical sports analytics, consensus betting odds, predictions, scores, schedules, standings, rosters, news, play-by-play, and win probabilities through structured tools and resources.52384 PyPIApache 2.0
- AlicenseBqualityBmaintenanceExposes 50 tools that let an existing AI agent act as a fantasy basketball general manager over a local deterministic engine, covering player valuation, projections, matchup simulations, lineup and IL planning, streaming, waivers, trades, and drafts. It returns insights, recommendations, and reviewer-checked proposals for the user to approve and execute in Yahoo themselves, without ever writing to the league.541MIT