Fournit à un client IA des analyses de fantasy football NFL en direct, incluant les statistiques des joueurs, les valeurs dynasty, les données des ligues Sleeper et des projections Excel personnalisées.
Aussi connu sous dachhack/stathead
- Étoiles
- 3
- Outils
- —
- Téléchargements, 30 jours
- —
- Dernière version
- 1.0.126
- Dernier commit
- 15 nov. 2026
- Licence
- MIT
Qu'est-ce que StatHead MCP ?
StatHead est un serveur MCP. Fournit à un client IA des analyses de fantasy football NFL en direct, incluant les statistiques des joueurs, les valeurs dynasty, les données des ligues Sleeper et des projections Excel personnalisées.
Résumé généré à partir du README du projet
À propos du MCP server StatHead
Les passionnés et analystes de fantasy football peuvent accéder aux données NFL en direct et aux valeurs dynasty directement via des clients IA comme Claude Desktop, Cursor ou Claude Code. Ce serveur propose plus de 50 outils couvrant tous les aspects, des statistiques de saison et du nombre de snaps aux statistiques avancées Next Gen Stats et aux rapports de blessures. Il s'intègre profondément aux ligues Sleeper, permettant aux utilisateurs d'examiner les classements, les effectifs, les transactions et même l'exposition des managers entre les ligues.
Les utilisateurs peuvent gérer leurs propres classements et projections personnalisés en exportant les données vers Excel, en effectuant des modifications manuelles, puis en réimportant les fichiers pour écraser les modèles internes du serveur. La configuration est simple via npx pour une exécution locale via stdio, ou peut être utilisée comme connecteur distant via une URL hébergée. Bien que la plupart des données proviennent de sources ouvertes comme nflverse et Sleeper, certaines fonctionnalités comme les cotes de paris nécessitent une clé API externe.
Ce que vous pouvez faire avec
- 1Analyser l'activité des ligues SleeperDemandez à l'IA d'examiner les échanges récents et les mouvements sur le waiver wire au sein d'une ligue Sleeper spécifique.
- 2Évaluer la valeur d'un échange dynastyDéterminez la juste valeur marchande d'un joueur en utilisant l'historique des échanges Sleeper et les prévisions futures.
- 3Évaluer la difficulté des confrontations hebdomadairesIdentifiez les joueurs ayant les calendriers les plus faciles à venir en fonction des points concédés par la défense.
Extrait du README du projet. Chaque cas d'utilisation est vérifié par rapport à une citation du document.
Comment installer StatHead MCP
Formats vérifiés le 10 nov. 2026Ajouter à CursorAjouter à GooseInstaller StatHead MCP dans Claude Code
$ claude mcp add stathead-mcp -- npx -y stathead-mcpInstaller StatHead MCP dans Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"stathead-mcp": {
"command": "npx",
"args": [
"-y",
"stathead-mcp"
]
}
}
}Installer StatHead MCP dans VS Code
.vscode/mcp.json
{
"servers": {
"stathead-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"stathead-mcp"
]
}
}
}Installer StatHead MCP dans VS Code CLI
$ code --add-mcp '{"name":"stathead-mcp","type":"stdio","command":"npx","args":["-y","stathead-mcp"]}'Installer StatHead MCP dans Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"stathead-mcp": {
"command": "npx",
"args": [
"-y",
"stathead-mcp"
]
}
}
}Installer StatHead MCP dans Codex
$ codex mcp add stathead-mcp -- npx -y stathead-mcpInstaller StatHead MCP dans Codex config.toml
~/.codex/config.toml
[mcp_servers.stathead-mcp] command = "npx" args = ["-y", "stathead-mcp"]
Installer StatHead MCP dans Gemini CLI
$ gemini mcp add -s user stathead-mcp npx -- -y stathead-mcpInstaller StatHead MCP dans Gemini settings.json
~/.gemini/settings.json
{
"mcpServers": {
"stathead-mcp": {
"command": "npx",
"args": [
"-y",
"stathead-mcp"
]
}
}
}Vérifications automatisées
Exécuté le 14 nov. 2026Rapport complet →A passé nos vérifications automatisées. Il ne s'agit pas d'un audit de sécurité : lisez le code et donnez au serveur l'accès le plus restreint dont il a besoin. Fonctionnement des vérifications
- Dépôt source lié et accessibledachhack/stathead is public and reachablegithub.com/dachhack/stathead ↗Réussi
- Le nom du package correspond au dépôt sourcestathead-mcp names dachhack/stathead as sourcenpmjs.com/package/stathead-mcp ↗Réussi
- Provenance du build (attestation Sigstore)Sigstore attestation for stathead-mcpnpmjs.com/package/stathead-mcp/v/1.0.126#provenance ↗Réussi
- Licence open source (OSI)MITspdx.org/licenses/MIT.html ↗Réussi
- Commit ou version publiée au cours de l'année écouléeLast commit or release 2026-11-12github.com/dachhack/stathead ↗Réussi
- OpenSSF ScorecardNon vérifié
- Nom du package non proche d'un package populaireNo popular package one edit away from stathead-mcpRéussi
- Aucun avis critique dans le package ou ses dépendances1 resolved dependencies checked; no critical advisoryosv.dev ↗Réussi
- Aucune instruction cachée destinée au modèle0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersRéussi
- Les outils destructifs sont étiquetésNon vérifié
- Le point de terminaison distant répond à la poignée de main MCPNon vérifié
README
Voir sur GitHubstathead-mcp
An MCP server that exposes StatHead's NFL fantasy-analytics toolset to Claude (Desktop / Code), Cursor, or any MCP client — so you can ask natural-language questions and get live, structured NFL data back.
It ships as a single self-contained bundle with no runtime dependencies and
fetches all data on demand, so there's nothing to download or build — npx and
go.
What you get
50 tools spanning player and team data, including:
| Area | Tools |
|---|---|
| Discovery | get_metadata — sources, season coverage, and valid enums (call this first to scope a question) |
| Players | season stats, weekly/game logs, snap counts, injuries, advanced stats, Next Gen Stats, rosters, contracts, get_depth_charts (slot-aware team depth charts with roster status, StatHead depth order and view=changes for moves) |
| Games & plays | schedules/results, play-by-play, participation, FTN charting |
| Fantasy | StatHead blended dynasty values, get_trade_values (StatHead values fitted to millions of completed Sleeper dynasty trades: as-of weekly values with 90% ranges, movers, liquidity, scoring re-pricing, 1/3/6/12-month forecasts, rookie-pick classes and history), get_projections (StatHead's in-house season PPG model), get_weekly_projections (per-week matchup-adjusted points, weeks 1–18), get_matchups (weekly strength of matchup: fantasy points each defense allows per game to QB/RB/WR/TE, ranked 1–32 in your scoring and over expected, by week, per player, rest of schedule, or split by metric such as TE receptions or QB rushing), ADP (FFC / ESPN / Sleeper), get_adp_with_results (ADP vs actual finish), trending adds/drops |
| Sleeper leagues | get_sleeper_user_leagues, get_sleeper_league (standings + rosters), get_sleeper_league_users (cheap manager list), get_sleeper_matchups, get_sleeper_transactions (trades/waivers/adds), get_sleeper_waiver_wire (free agents × trending × projections), get_sleeper_draft, get_sleeper_user_snooper (cross-league exposure), get_sleeper_user_history (multi-season records + titles) — a connected graph: a username lists leagues, a league name (or id) opens that league, and each manager's owner_id/display name walks back to their leagues, exposure, and history |
| Draft & college | get_prospect_outcomes (calibrated boom/bust probabilities + grades), draft picks, get_rookie_class (draft+combine+rookie stats in one call), prospect profiles, combine, college stats (player or cohort), QBR |
| Model & methodology | get_model_docs (how the models work + per-position feature importance), get_player_features (why a player is scored the way they are — feature drivers, bands, direction) |
| Your own numbers | export_excel / import_excel / clear_overrides — download a styled projections / rankings / rookie-rankings workbook (or a by_team projection sheet with live PPR formulas), edit it, re-upload it, and have your values drive every later query |
Bring your own projections & rankings
The same boards the website lets you download are available over MCP as real
.xlsx files (built with zero extra dependencies — Node's own zlib):
export_excel kind="projections"(orrankings,rookie_rankings) writes a styled workbook to disk and returns its path. Edit the highlighted column — Proj PPG for projections, My Rank for rankings/rookies — in Excel or Google Sheets.import_excel path="…"reads it back and saves your values as overrides.get_projections,get_fantasy_rankings, andget_prospect_outcomesthen automatically use your numbers (flagged in the output) until you runclear_overrides.
Workbooks default to $STATHEAD_DIR (or the current working directory); pass
path to choose where they land. Overrides persist in
$STATHEAD_DIR/~/.stathead/overrides.json.
Quick start
Run it directly — no install, no clone:
npx -y stathead-mcp
It speaks MCP over stdio, so you normally wire it into a client rather than run it by hand.
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
(macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"stathead": {
"command": "npx",
"args": ["-y", "stathead-mcp"]
}
}
}
Claude Code
claude mcp add stathead -- npx -y stathead-mcp
Cursor / other MCP clients
Use the same command/args (npx -y stathead-mcp) in the client's MCP
config.
Claude mobile apps / claude.ai web / Claude Desktop (remote connector)
Prefer a URL over a local command? The same tools are hosted over MCP's
Streamable HTTP transport by a Cloudflare Worker (workers/stathead-mcp/,
deployed via deploy-workers.yml):
https://stathead-mcp.dachhack.workers.dev
Add it under Settings → Connectors → Add custom connector, paste the URL,
and save — no command, no API key. (A GET to that URL returns a small health
payload; clients POST JSON-RPC to it.) The npm/stdio package above stays the
path for Claude Code and Cursor.
The Worker records a privacy-respecting usage counter (MCP method + tool name
only — no IPs or request bodies) to a Cloudflare Analytics Engine dataset
(stathead_mcp_usage). View aggregates at GET /stats once you set the
CF_ACCOUNT_ID + CF_ANALYTICS_TOKEN worker secrets (wrangler secret put …),
or query the dataset in the Cloudflare dashboard. npm download counts don't see
remote-connector usage — this does.
Data sources & freshness
Most tools fetch live from open upstreams (nflverse, Sleeper, FantasyFootballCalculator, ESPN's public endpoints). A handful read committed daily snapshots (StatHead's blended dynasty values, ADP history, in-house season projections), which the server fetches from the hosted StatHead site by default.
Please review DATA_SOURCES.md before redistributing
any data this server returns — several upstreams are proprietary or paid and
carry their own terms.
Configuration
All optional, via environment variables:
| Var | Default | Purpose |
|---|---|---|
STATHEAD_DATA_BASE |
GitHub raw (data branch) | Base URL for committed snapshot data (<base>data/<file>). Defaults to GitHub raw, which serves every file uncompressed/reliably (the Cloudflare host gzips files over its 25 MiB cap, which Node can't decode). Override to point at your own deployment or a local http://localhost:5173/ dev server. |
VITE_KTC_PROXY |
project worker | CORS proxy for KeepTradeCut. Deploy your own (workers/ktc-proxy) to avoid shared rate limits. |
VITE_FC_PROXY |
project worker | CORS proxy for FantasyCalc (workers/fc-proxy). |
VITE_ODDS_API_KEY |
— | Enables betting-odds tools (the-odds-api.com). |
Running from a full repo checkout instead? The server reads snapshots straight
from local public/data/ and ignores STATHEAD_DATA_BASE.
Building from source
The bundle is produced from the StatHead monorepo:
# from the repo root
npm install
npm run build:mcp # → mcp/dist/server.mjs (esbuild, single file)
node mcp/dist/server.mjs
Publishing
Bump version in mcp/package.json and SERVER_VERSION in
mcp/dist/server.mjs (they must match), merge to the default branch, then
any one of:
git push -f origin <commit>:publish-mcp-now # branch-push trigger (works from Claude Code sessions)
git tag mcp-v1.2.3 && git push origin mcp-v1.2.3 # tag trigger
# or Actions → "Publish stathead-mcp to npm" → Run workflow
publish-mcp.yml refuses a version already on npm and a commit not yet on
the default branch, smoke-tests the bundle, publishes via npm Trusted
Publishing, then chains the MCP Registry publish. Manual fallback:
npm run build:mcp # repo root — refresh the bundle
cd mcp && npm publish --access public
The published tarball is just dist/server.mjs + this README (~220 KB).
Listing in the MCP Registry
server.json is the manifest for the official MCP Registry
(io.github.dachhack/stathead-mcp). After an npm publish, the
Publish to MCP Registry workflow (.github/workflows/publish-mcp-registry.yml)
pushes it — authenticating via GitHub OIDC for the io.github.dachhack/*
namespace (no secret). The npm package carries a matching mcpName field so the
registry can verify the package belongs to this entry, and the workflow syncs
server.json's version from package.json so they never drift.
Most community directories (Glama, mcp.so, PulseMCP) mirror the official
registry and/or auto-index public npm packages with the model-context-protocol
keyword (which package.json has), so a registry publish propagates to them.
License
MIT — see ../LICENSE. The code is MIT; the data it returns
is not necessarily redistributable. See
DATA_SOURCES.md.
Questions sur StatHead MCP
Comment ajouter StatHead MCP à Claude Code ?
Exécutez claude mcp add stathead-mcp -- npx -y stathead-mcp dans votre terminal. Ajoutez --scope user pour le rendre disponible dans tous les projets.
Comment ajouter StatHead MCP à Cursor ?
Ouvrez ~/.cursor/mcp.json et ajoutez le serveur sous mcpServers, avec la configuration Cursor indiquée dans la section d'installation ci-dessus.
Comment puis-je utiliser mes propres projections et classements ?
Vous pouvez exporter des projections ou des classements vers un fichier Excel, modifier les valeurs dans Excel ou Google Sheets, puis réimporter le fichier pour utiliser ces valeurs comme remplacements dans vos requêtes.
Ce serveur nécessite-t-il des dépendances d'exécution pour fonctionner ?
Non, il s'agit d'un bundle unique et autonome sans dépendances d'exécution qui récupère toutes les données à la demande.
Puis-je l'utiliser avec Claude Desktop ?
Oui, vous pouvez l'ajouter à votre fichier de configuration Claude Desktop en utilisant npx pour exécuter le serveur.
Comment puis-je accéder aux outils via une URL plutôt que par une commande locale ?
Les outils sont hébergés via le transport streamable HTTP de MCP par un Cloudflare Worker, que vous pouvez ajouter comme connecteur personnalisé dans Claude.