Cfbd
    Cfbd

    Cfbd

    An MCP server enabling CFBD API queries within Claude Desktop.

    4.3

    GitHub Stats

    Stars

    15

    Forks

    10

    Release Date

    5/12/2025

    about a month ago

    Detailed Description

    college football data mcp server

    an mcp server implementation providing access to college football statistics sourced from the college football data api v2 within claude desktop.

    python version cfbd api version mit license smithery badge

    overview

    this model context protocol (mcp) server enables ai assistants and applications to:

    • query comprehensive college football statistics and data
    • access game results, team records, and player statistics
    • analyze play-by-play data and drive summaries
    • view rankings and win probability metrics
    • compare team performances and generate insights

    users can run queries using natural language.

    sample output

    q. what was the largest upset among fcs games during the 2014 season?

    a. let me help find the biggest fcs upset from 2014. i'll look through the games data, focusing on games between fcs teams where there was a significant gap in team strength and an unexpected outcome.

    the data suggests there were several notable upsets in fcs during 2014, but one that stands out was eastern washington defeating washington 52-59 on september 6th, 2014. this was particularly significant because:

    1. washington was an fbs team from the pac-12 conference
    2. the game was played at washington's home stadium (husky stadium)
    3. eastern washington's win probability was only 1.4% according to the post-game stats
    4. the 59 points eastern washington scored was the most ever by an fcs team against a pac-12 opponent
    5. washington had been favored by multiple scores going into the game

    other notable fcs upsets from that season included:

    • north dakota state defeating iowa state 34-14
    • bethune-cookman defeating fiu 14-12
    • northern iowa nearly upsetting iowa (lost 31-23)

    however, eastern washington over washington appears to be the largest upset of the 2014 fcs season when considering:

    • the difference in divisions (fcs vs fbs)
    • the caliber of the fbs opponent (power 5 conference)
    • the scoring margin and offensive performance by the underdog
    • the historical significance as one of the highest-scoring fcs wins over a power 5 team
    • the fact it happened on the road in a hostile environment

    prerequisites

    installation

    installing via smithery

    to install college football data server for claude desktop automatically via smithery:

    npx -y @smithery/cli install cfbd --client claude
    
    1. clone this repository:
    git clone https://github.com/yourusername/cfbd-mcp-server
    cd cfbd-mcp-server
    
    1. create and activate a virtual environment:
    uv venv
    source .venv/bin/activate  # on windows: .venv\scripts\activate
    
    1. install dependencies:
    uv pip install -e .
    
    1. create a .env file in the project root and add your api key:
    cfb_api_key=your_api_key_here
    

    manual installation

    1. clone this repository:
    git clone https://github.com/yourusername/cfbd-mcp-server
    cd cfbd-mcp-server
    
    1. create and activate a virtual environment:
    uv venv
    source .venv/bin/activate  # on windows: .venv\scripts\activate
    
    1. install dependencies:
    uv pip install -e .
    
    1. create a .env file in the project root and add your api key:
    cfb_api_key=your_api_key_here
    

    usage

    running the server

    start the server:

    uv run cfbd-mcp-server
    

    connecting with claude desktop

    1. open your claude desktop configuration at:

      • macos: ~/library/application support/claude/claude_desktop_config.json
      • windows: %appdata%\claude\claude_desktop_config.json
    2. add the server configuration:

    {
        "mcpservers": {
            "cfbd-mcp-server": {
                "command": "uv",
                "args": [
                    "--directory",
                    "/full/path/to/cfbd-mcp-server",
                    "run",
                    "cfbd-mcp-server"
                ],
                "env": {
                    "cfb_api_key": "xxx",
                    "path": "/full/path/to/python"
                }
            }
        }
    }
    
    1. close then restart claude desktop

    once you restart you can confirm the installation by clicking on the plus sign in the lower left corner of the text box. if successful you'll see "add from cfbd-mcp-server" as one of the menu options. here's an example screenshot.

    !screenshot of successful install

    updating after install

    1. download the updated files
    cd cfbd-mcp-server
    git pull
    
    1. uninstall the existing package:
    uv pip uninstall cfbd-mcp-server
    
    1. delete existing build artifacts and metadata

    for windows:

    rmdir /s /q build dist
    del /s /q *.egg-info
    

    for macos:

    rm -rf build dist *.egg-info
    
    1. install the revised package and its dependencies
    uv pip install -e .
    uv sync --dev --all-extras
    
    uv run cfbd-mcp-server
    
    1. close and restart claude desktop

    features

    resources

    access schema documentation for all endpoints:

    • schema://games - game information and scores
    • schema://records - team season records
    • schema://games/teams - detailed team game data
    • schema://plays - play-by-play information
    • schema://drives - drive summaries and results
    • schema://play/stats - individual play statistics
    • schema://rankings - team rankings across polls
    • schema://metrics/wp/pregame - pregame win probabilities
    • schema://game/box/advanced - advanced box score statistics

    tools

    query endpoints directly:

    • get-games - retrieve game data
    • get-records - get team records
    • get-games-teams - access team game statistics
    • get-plays - query play-by-play data
    • get-drives - analyze drive information
    • get-play-stats - view play statistics
    • get-rankings - check team rankings
    • get-pregame-win-probability - see win probabilities
    • get-advanced-box-score - access detailed game statistics and analytics

    prompts

    pre-built analysis templates:

    • analyze-game - get detailed analysis of a specific game
    • analyze-team - comprehensive single team analysis
    • analyze-trends - analyze trends over a season
    • compare-teams - compare performance of two teams
    • analyze-rivalry - analyze historical rivalry matchups

    api limits

    the college football data api is free to use but has rate limiting:

    • free tier: limited requests per minute
    • cfbd patreon subscribers get higher rate limits
    • use efficient querying patterns to avoid hitting limits
    • handle rate limit errors gracefully

    development

    project structure

    cfbd-mcp-server/
    ├── readme.md
    ├── pyproject.toml
    └── src/
        └── cfbd_mcp_server/
            ├── .env
            ├── __init__.py
            ├── cfbd_schema.py
            ├── schema_helpers.py
            └── server.py
    

    setting up for development

    1. clone the repository
    2. install development dependencies:
    uv pip install -e ".[dev]"
    
    1. run tests:
    pytest
    

    contributing

    1. fork the repository
    2. create a feature branch
    3. commit your changes
    4. push to your fork
    5. submit a pull request

    troubleshooting

    common issues

    1. api key errors

      • verify your api key is correctly set in both the .env and claude_desktop_config.json files
      • check the key is valid at collegefootballdata.com
    2. rate limiting

      • space out requests when possible
      • consider patreon subscription for higher limits
      • implement caching for frequently accessed data
    3. connection issues

      • verify internet connectivity
      • check api status at collegefootballdata.com
      • ensure proper error handling in your code

    getting help

    license

    this project is licensed under the mit license - see the license file for details.

    acknowledgments

    Star History

    Star History

    Dec 22Jan 12Feb 17Mar 8Mar 31Jun 6Jun 19Jul 20481216
    Powered by MSeeP Analytics

    About the Project

    This app has not been claimed by its owner yet.

    Claim Ownership

    Receive Updates

    Security Updates

    Get notified about trust rating changes

    to receive email notifications.