This MCP server implementation provides access to comprehensive college football statistics through the College Football Data API V2, allowing AI assistants to query and analyze college football data using natural language requests.
The simplest installation method is using Smithery:
npx -y @smithery/cli install cfbd --client claude
git clone https://github.com/yourusername/cfbd-mcp-server
cd cfbd-mcp-server
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
uv pip install -e .
.env
file in the project root with your API key:CFB_API_KEY=your_api_key_here
Start the MCP server with:
uv run cfbd-mcp-server
Locate your Claude Desktop configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
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"
}
}
}
}
If successfully installed, clicking the plus sign in the lower left corner of the text box will show "Add from cfbd-mcp-server" as a menu option.
cd cfbd-mcp-server
git pull
uv pip uninstall cfbd-mcp-server
Windows:
rmdir /s /q build dist
del /s /q *.egg-info
macOS:
rm -rf build dist *.egg-info
uv pip install -e .
uv sync --dev --all-extras
uv run cfbd-mcp-server
The server provides access to various data through schemas:
Query endpoints directly with tools like:
get-games
- Retrieve game dataget-records
- Get team recordsget-games-teams
- Access team game statisticsget-plays
- Query play-by-play dataget-drives
- Analyze drive informationget-play-stats
- View play statisticsget-rankings
- Check team rankingsget-pregame-win-probability
- See win probabilitiesget-advanced-box-score
- Access detailed game statisticsPre-built analysis templates:
analyze-game
- Get detailed analysis of a specific gameanalyze-team
- Comprehensive single team analysisanalyze-trends
- Analyze trends over a seasoncompare-teams
- Compare performance of two teamsanalyze-rivalry
- Analyze historical rivalry matchupsThe College Football Data API has rate limiting:
API Key Errors
.env
and claude_desktop_config.json
filesRate Limiting
Connection Issues
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "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"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"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"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"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"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect