StatHead
MCP serverDatabases & dataThis integration gives your AI fantasy football analytics, covering player stats, projections, dynasty value, and prospects. It works with your Sleeper leagues and can read and write Excel files, so your AI can turn raw numbers into ready-to-use spreadsheets.
Unavailable. This server has no hosted endpoint yet, so Ahel can't serve it.
Add to setup to save this item as a reference. Ahel cannot run it, and signing in will not install it.
What your AI can do with it
- Pull player stats and projections
- Evaluate dynasty league value
- Research football prospects
- Work with your Sleeper leagues
- Read and write Excel spreadsheets
Getting started
- Save this item in Your setup as a reference.
- Read the source or reference documentation for its setup requirements. Saving it here does not connect it to your AI.
- Check this page for availability before trying to install it through Ahel.
From the project's README
As published by dachhack/stathead in README.md.
An open NFL fantasy-football analytics platform β live data, machine-learned projections, dynasty values, and prospect grades, served as a web app and as an MCP server you can plug straight into Claude or any AI client.
- π Web app β stathead.app (QA mirror)
- π€ MCP server β 30 NFL tools for AI projects β
mcp/ - π§ ML pipeline β projection / dynasty-value / prospect models trained from 10+ seasons of data
- π¦ MIT-licensed code. β οΈ The data has its own terms β
see
DATA_SOURCES.mdbefore redistributing anything.
Use it in your own AI project (MCP)
The fastest way to build on StatHead. No clone, no build:
npx -y stathead-mcp
Claude Code:
claude mcp add stathead -- npx -y stathead-mcp
Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"stathead": { "command": "npx", "args": ["-y", "stathead-mcp"] }
}
}
Then ask things like "Compare Bijan Robinson's and Jahmyr Gibbs' weekly
consistency in 2024" or "Top 10 dynasty WRs by StatHead value, with their
ages." Full tool list and configuration: mcp/README.md.
Run the web app locally
npm install
npm run dev # Vite dev server
Other useful scripts:
| Script | What it does |
|---|---|
npm run build | Production build (semantic layer β features β tsc β vite β Pages post-build) |
npm run build:mcp | Bundle the MCP server β mcp/dist/server.mjs |
npm run mcp | Run the MCP server from source (tsx) |
npm run lint | ESLint |
npm run data:local | Download data sources for local work |
The repo is a TypeScript/React (Vite) front end plus a TypeScript + Python data
& ML pipeline under scripts/ and python/. The same
tool layer (src/tools.ts β src/data.ts) backs both the app and the MCP
server.
Data
StatHead pulls from many upstreams β open data (nflverse, DynastyProcess, CFBD), public APIs (Sleeper, ESPN, FantasyFootballCalculator), proprietary community values (KeepTradeCut, FantasyCalc), and derived features from paid scouting products. Licensing varies a lot by source.
π Read DATA_SOURCES.md before redistributing data,
publishing a dataset, or shipping a commercial product. The short version:
share the open sources and StatHead's own model outputs freely; fetch the rest
from the original source under your own access rather than rebundling it.
Data proxies (self-hosting)
Live KeepTradeCut, FantasyCalc, and ESPN data is fetched through small
Cloudflare Worker CORS proxies, because those upstream APIs block direct
browser requests. The worker source lives under workers/ and a
deploy workflow is in
.github/workflows/deploy-workers.yml.
By default the app points at the upstream project's workers, so it works as
soon as you clone it. If you deploy your own copy, stand up your own workers
(so you don't depend on β or get rate-limited by β someone else's) and override
the URLs via env vars. Copy .env.example to .env.local and set:
| Var | Proxies |
|---|---|
VITE_KTC_PROXY | KeepTradeCut dynasty values (workers/ktc-proxy) |
VITE_FC_PROXY | FantasyCalc values (workers/fc-proxy) |
VITE_ESPN_NEWS_PROXY | ESPN player news/overview (workers/espn-news-proxy) |
VITE_VISIT_TRACKER | Visitor analytics beacon (workers/visit-tracker) |
Each falls back to the project's worker when unset. Deploy a worker with
cd workers/<name> && npx wrangler deploy (or use the deploy workflow).
Visitor analytics
The app sends a first-party, cookie-less pageview beacon per tab view to
workers/visit-tracker, which writes to Cloudflare
Workers Analytics Engine. No third parties, no identifiers stored in the
browser, no raw IPs kept β visitors are counted with a daily-rotating
anonymous hash, and Do Not Track / Global Privacy Control are honored.
Aggregates (daily views/visitors, top pages, referrers, countries) are served
by the worker's /stats endpoint and a small dashboard at its root URL. See
the worker's header comment for the data layout and the one-time
CLOUDFLARE_ANALYTICS_API_TOKEN setup.
Environments
Two deploy targets, fed by the same codebase:
| Env | URL | Host | Base path | Trigger |
|---|---|---|---|---|
| QA | dachhack.github.io/stathead/ | GitHub Pages | /stathead/ | push to the dev branch (deploy.yml) |
| Production | stathead.app | Cloudflare Pages | / | push to production (deploy-prod.yml) |
The base path is set by the BASE_PATH env var in
vite.config.ts (default /stathead/); the prod
workflow builds with BASE_PATH=/. Everything in the app reads
import.meta.env.BASE_URL, so that one switch repoints every asset and
data URL.
Promote QA β prod by merging the dev branch into production. That
push builds for the root domain and uploads to Cloudflare Pages. See the
header of deploy-prod.yml for the
one-time Cloudflare Pages + DNS setup.
License
Code is MIT. Data is not covered by that license β see
DATA_SOURCES.md. The name "Stathead" may conflict with
Sports Reference's Stathead trademark; see the note in
that file.
Signals
- GitHub stars
- 1
- Last commit
- Oct 2026
- Weekly downloads
- 3k
- Weekly_downloads
- 3k weekly_downloads
Advanced
- Delivery
- stathead-mcp MCP server β your Ahel connector (mcp.ahel.ai) β your AI.
- Item type
- mcp-server
- Key
io-github-dachhack-stathead-mcp- Source
- github.com/dachhack/stathead
More in Databases & data
MCP server
More in Databases & dataAIOProductOS MCP
MCP server Β· aioproductos
More in Databases & dataQuantRisk
MCP server Β· 78degrees
More in Databases & dataPostHog MCP Server
MCP server Β· posthog
More in Databases & dataAppfigures
MCP server Β· appfigures
More in Databases & dataRun402
MCP server Β· kychee-com
More in Databases & data