sleeper_mcp
Click on "Deploy 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., "@sleeper_mcpWhat are my matchups for this week?"
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.
sleeper_mcp
Local Model Context Protocol server for the Sleeper fantasy API. Tools are locked to a configured user, league allowlist, and optional season. The public API is read-only; no token is required.
Setup
Requires Node.js 20+.
cp .env.example .env
npm installnpm install is enough; Cursor compiles TypeScript on launch. Do not start the server with npx tsx — that pulls in a platform-specific esbuild binary and breaks when Cursor’s Node architecture differs from the one used to install dependencies.
Set identity in .cursor/mcp.json under the sleeper server env block:
"env": {
"SLEEPER_USER_ID": "your_numeric_user_id",
"SLEEPER_LEAGUE_IDS": "league_id_one,league_id_two",
"SLEEPER_SEASON": "2026"
}The same three variables can live in .env instead. Already-set environment variables win, then mcp.json, then .env.
Look up
SLEEPER_USER_IDwithGET https://api.sleeper.app/v1/user/<username>.SLEEPER_LEAGUE_IDSis a required comma-separated allowlist. Tools will not accept any other league.SLEEPER_USER_IDand each league id must be numeric Sleeper ids.SLEEPER_SEASONis optional. If set, it must be a 4-digit year. If omitted, the server usesleague_seasonfromGET /v1/state/nfl.
Never commit .env. mcp.json is tracked, so it will contain whatever ids you put there.
On start the server checks that the user exists and that every configured league belongs to that user for the season.
Related MCP server: sleeper-caffeine MCP
Cursor
.cursor/mcp.json launches the server and can set SLEEPER_USER_ID, SLEEPER_LEAGUE_IDS, and SLEEPER_SEASON in env. Cursor passes that block into the process. npm start reads the same file when those variables are not already set.
Cursor runs the launcher with its own Node (20+). The launcher compiles src/ to dist/ then starts the server, so you do not need tsx or a matching esbuild binary.
Enable the server in Cursor MCP settings. A Cursor user-level MCP env override still wins over the project file.
Tools
Tool | What it returns |
| Configured user ( |
| Allowlisted leagues only |
| Rosters with owner and player names |
| Week matchups paired by |
| Specific draft (order, settings, status). |
| Draft picks with player and owner names. |
| Current week / season |
If exactly one league is configured, league_id is optional on league-scoped tools.
Player IDs are resolved from a daily cache of GET /v1/players/nfl stored in gitignored .cache/players-nfl.json.
Scripts
npm start # compile + stdio MCP (same entry Cursor uses)
npm run build # compile only
npm test # mocked unit testsLog only to stderr. stdout is the MCP protocol channel.
Inspector
npx @modelcontextprotocol/inspector node scripts/launch.jsThis server cannot be deployed
Maintenance
Related MCP Connectors
SportsDataIO MCP — wraps SportsDataIO's Big-Six sports data API (sportsdata.io)
Fantasy analysis for your ESPN, Yahoo, and Sleeper leagues. Reads your leagues, never changes them.
ESPN MCP — keyless multi-sport live scores, teams, and news via ESPN's public site API.
Free fantasy sports AI: ESPN, Sleeper and Fantrax league data for Claude and ChatGPT. Read-only.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides read-only access to the Sleeper Fantasy Sports API for league info, rosters, matchups, drafts, transactions, and player data.18100 npm1MIT
- AlicenseNot gradedqualityDmaintenanceProvides read-only access to Sleeper fantasy football leagues, enabling team snapshots, available players, matchups, trade context, and league history through standardized MCP tools.MIT
- AlicenseAqualityDmaintenanceA read-only MCP server that supplies live context from Sleeper fantasy-football leagues, including rosters, trade analysis, draft picks, and league settings via Sleeper's public API.11MIT
- FlicenseAqualityCmaintenanceEnables read-only access to Sleeper fantasy sports data, including users, leagues, rosters, matchups, transactions, drafts, players, trending activity, playoff brackets, traded picks, and sport state via MCP tools.18-