nfl-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@nfl-mcpWho had the highest EPA per play among quarterbacks in 2024?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
nfl-mcp
MCP server for NFL data (2013–2025), powered by nflreadpy and DuckDB. Query play-by-play, rosters, injuries, stats, and more using natural language in Claude Code, VS Code, or Claude Desktop.
Ask Claude questions like:
"Who had the best EPA per play in 2024?"
"Show me Patrick Mahomes' completion % over expected by season"
"Compare 4th quarter red zone efficiency for KC vs PHI in 2023"
"Which defenses had the highest sack rate in 3rd & long situations?"
"Who was on IR for the Eagles in Week 10, 2023?"
"Show me snap count trends for the Chiefs receiving corps in 2024"
Quickstart
pip install nfl-mcp # or: uvx nfl-mcp
nfl-mcp init # configure, load data, and start the serverinit walks you through setup and offers to start the server immediately when done. No database server to install. No credentials to manage. Data is stored locally in DuckDB.
Related MCP server: Apple Health MCP Server
Deploy to Azure
Run the server in the cloud as an Azure Container App with one click:
The button opens the Azure portal's Custom deployment blade prefilled from infra/azuredeploy.json. Pick a resource group, then Create. It provisions a Container Apps Environment, a Log Analytics workspace, and the Container App (public HTTPS ingress on port 8000). When the deployment finishes, the mcpUrl output is your endpoint — point any MCP client at https://<app>.<region>.azurecontainerapps.io/mcp.
The data is baked into the image. The full DuckDB database is built into the container image at build time, so the app serves read-only with no runtime ingest — it starts instantly, never re-downloads data, needs no external storage, and runs comfortably on
0.5vCPU /1Gi. To refresh the data, rebuild the image (re-run the publish workflow); thePublish container imageworkflow also rebuilds weekly. The replica is pinned to a single instance (minReplicas = maxReplicas = 1).
One-time setup before the button works:
The
Publish container imageworkflow must have pushed an image toghcr.io/ebhattad/nfl-mcp(it runs weekly, on each GitHub release, or manually via Actions → Run workflow). The build ingests all default datasets, so it takes longer than a normal image build.Make that GHCR package public: repo → Packages →
nfl-mcp→ Package settings → Change visibility → Public. The ARM template pulls the image without credentials, so it must be public.
Prerequisites
Python 3.10+
uv (recommended) or pip
Setup
1. Initialize
nfl-mcp initThe wizard will:
Configure the local DuckDB database path
Download the default NFL datasets (play-by-play, rosters, stats, injuries, and more)
Auto-configure your IDE (Claude Desktop and/or VS Code)
Offer to start the server immediately
Options:
--skip-ingest Configure without loading data2. Start the server
init offers to start the server for you. If you need to start it manually later:
nfl-mcp serve
nfl-mcp serve --port 9000
nfl-mcp serve --host 0.0.0.0The server uses the MCP Streamable HTTP transport. Point any MCP client at http://<host>:<port>/mcp.
Note: The server must be running for your IDE to connect. Run
nfl-mcp servein a terminal and keep it open.
3. Verify
nfl-mcp doctorChecks database connectivity, loaded data, and IDE configuration.
4. Manual client configuration (optional)
If you skipped IDE setup during init, or need to reconfigure:
nfl-mcp setup-client # auto-detect clients
nfl-mcp setup-client --client vscode # VS Code only
nfl-mcp setup-client --client claude-desktopOr configure manually. Add to .vscode/mcp.json (VS Code):
{
"servers": {
"nfl": {
"url": "http://localhost:8000/mcp"
}
}
}Add to ~/Library/Application Support/Claude/claude_desktop_config.json (Claude Desktop):
{
"mcpServers": {
"nfl": {
"url": "http://localhost:8000/mcp"
}
}
}CLI Reference
nfl-mcp init Interactive setup wizard
nfl-mcp serve Start the MCP server (Streamable HTTP, default port 8000)
nfl-mcp ingest Load NFL data into the database
nfl-mcp setup-client Configure IDE MCP clients
nfl-mcp doctor Health checkServe options
nfl-mcp serve
nfl-mcp serve --port 9000
nfl-mcp serve --host 0.0.0.0Ingestion options
nfl-mcp ingest # default datasets, all available seasons
nfl-mcp ingest --dataset all # every dataset
nfl-mcp ingest --dataset schedules # one specific dataset
nfl-mcp ingest --dataset pbp --dataset injuries # multiple datasets
nfl-mcp ingest --start 2020 --end 2024 # limit to a season range
nfl-mcp ingest --fresh # re-ingest even if already loaded
nfl-mcp ingest --list # show all available dataset namesIngest is idempotent — re-running skips datasets and seasons already in the database.
Datasets
All data is sourced from nflverse via nflreadpy and stored locally in DuckDB. Every dataset below is ingested by default — nfl-mcp ingest loads the full nflverse family so any data a client might need is already there.
Season coverage: 2013 onward. Season-based tables are ingested from 2013 — the window where every nflverse source is complete and consistent — through the current season. Datasets that begin later (e.g. Next Gen Stats 2016, FTN charting 2022) start at their first available season. Non-seasonal reference tables (draft picks, combine, contracts, players) carry their full historical record.
Table | Loaded range |
| 2013–present |
| 2013–present |
| 2013–present |
| 2013–present |
| 2013–present |
| 2013–present |
| 2013–present |
| 2013–present |
| 2013–present |
| 2013–present |
| 2015–present |
| 2016–present |
| 2016–2024 |
| 2018–present |
| 2022–present |
| current |
| all-time |
| historical |
| historical |
| 1980–present |
| all-time |
| current |
| current |
| current |
nfl-mcp ingest # load the full nflverse family (default)
nfl-mcp ingest --list # see all dataset names
nfl-mcp ingest --dataset pbp # load just one datasetMCP Tools
Tool | Description |
| Database schema reference — compact summary by default, pass |
| Database health: total plays, loaded seasons, available tables |
| Raw SQL SELECT for custom queries (500 row cap, 10s timeout) |
| Find plays by player, team, season, season type, situation, touchdowns, etc. |
| Pre-aggregated team offense, defense, and situational stats |
| Player stats by season and season type — passing, rushing, or receiving |
| Side-by-side comparison of two teams or two players |
| Game schedule and results — scores, spread, weather, coaches |
| Team roster by season and position |
| Player injury report status by team, week, and designation |
| Offensive, defensive, and special teams snap counts per player |
| Target share, air yards share, carry share, and expected fantasy points per player per week (2013–present) |
| Expert consensus rankings (ECR) — draft/dynasty/best-ball ( |
| Aggregated FTN charting tendencies (2022–present) over scrimmage plays — play-action, RPO, screen, no-huddle, motion, trick-play rates, plus box/pass-rush/blitz counts |
| Actual vs expected touchdowns per player-season — surfaces TD-regression candidates (most "unlucky" first) |
| Rolling 3-week snap / target / carry / air-yards share with current-week delta — usage trending up or down |
| Next Gen Stats separation/YAC joined to fantasy opportunity (2016+) — flags receivers getting open but under-producing |
| Catchable-target drop rate per receiver-season from FTN charting (2022+), plus contested targets and created receptions |
| Fantasy points per $M of average per year (APY) — best value-for-money players |
| Post-return snap-share recovery (% of pre-injury baseline) at +1..+8 weeks, by normalized injury type and position |
| List all loaded tables with row counts and last refresh time |
Key columns in plays
epa— expected points added (the best single-play quality metric)wpa— win probability addedposteam/defteam— offensive/defensive team abbreviationspasser_player_name/rusher_player_name/receiver_player_nameplay_type—'pass'|'run'|'field_goal'|'punt'|'kickoff'| ...desc— raw play description (useILIKEfor text search)
Local Development
git clone https://github.com/ebhattad/nfl-mcp
cd nfl-mcp
pip install -e ".[dev]"
nfl-mcp ingest --dataset all --start 2024 --end 2024
nfl-mcp serve # server available at http://localhost:8000/mcp
pytest
pytest -m unit # unit tests
pytest -m integration # integration tests (requires loaded DB)Troubleshooting
nfl-mcp doctoris the fastest way to verify config, database, and client setup.If tools return database errors, run
nfl-mcp ingestto ensure data is loaded.You can override the DB location with
NFL_MCP_DB_PATH=/path/to/nflread.duckdb.Re-running
nfl-mcp ingestis safe — it skips anything already loaded.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ebhattad/nfl-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server