
joscaz/sleeper-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
MCP server for Sleeper fantasy football — leagues, rosters, matchups, players, stats and projections, plus optional account tools (lineups, IR, waivers, trades, league chat) over stdio or Streamable...
概要
A Model Context Protocol server for Sleeper fantasy football, built so an AI assistant can actually answer fantasy questions instead of handing you a wall of player IDs. Ask Claude, Cursor, or any MCP client things like: - "Who should I start this week in my dynasty league?" - "Show me the standings and who's on the waiver wire at RB." - "Was the Bijan-for-Chase trade fair? Who won it?" - "Who did I draft in round 1 the last three years?" - "Am I going to win this week? What are my playoff odds, and how many wins do I need?" - "Would trading for Justin Jefferson actually raise my playoff odds? What about picking up a backup RB?" - "Are any of my lineups broken this week?" (one check across all your leagues: empty slots, byes, players ruled out) - "Move Jacobs to IR, start Corum, and put a claim in for Kaelon Black." (with a Sleeper session, see Account tools) No login, no API key for reads: Sleeper's public API covers everything above the "Account" line.
README
以下は原文 README の抜粋です。原文を見る。
sleeper-mcp
A Model Context Protocol server for Sleeper fantasy football, built so an AI assistant can actually answer fantasy questions instead of handing you a wall of player IDs.
Ask Claude, Cursor, or any MCP client things like:
- “Who should I start this week in my dynasty league?”
- “Show me the standings and who’s on the waiver wire at RB.”
- “Was the Bijan-for-Chase trade fair? Who won it?”
- “Who did I draft in round 1 the last three years?”
- “Am I going to win this week? What are my playoff odds, and how many wins do I need?”
- “Would trading for Justin Jefferson actually raise my playoff odds? What about picking up a backup RB?”
- “Are any of my lineups broken this week?” (one check across all your leagues: empty slots, byes, players ruled out)
- “Move Jacobs to IR, start Corum, and put a claim in for Kaelon Black.” (with a Sleeper session, see Account tools)
No login, no API key for reads: Sleeper’s public API covers everything above the “Account” line. Add your Sleeper session and the same server can also set lineups, manage IR/taxi, submit waiver claims and propose trades.
Why another Sleeper MCP?
There are several community Sleeper MCP servers. This one focuses on the things that make the difference between “it works” and “it’s useful in a conversation”:
| sleeper-mcp (this) | typical alternatives | |
|---|---|---|
| Player IDs resolved to names/positions/teams/injury flags in every response | ✅ everywhere (rosters, matchups, transactions, drafts, brackets) | usually raw IDs, or names only in one or two tools |
| Roster IDs resolved to team + manager names | ✅ | rarely |
| Computed standings (rank, record, PF/PA, streak, FAAB left, divisions) | ✅ | raw roster settings |
| Matchups paired with per-player points and margins | ✅ | raw matchup arrays |
| Trades summarized as “gave / got” per side, picks and FAAB included | ✅ | raw adds/drops maps |
| Free agents for a league (unrostered, ranked, trending-annotated) | ✅ | ❌ |
| Projections & stats scored with the league’s exact scoring settings | ✅ | ❌ (or PPR only) |
| Start/sit: optimal lineup with slot eligibility (FLEX, SUPER_FLEX, IDP) | ✅ | ❌ |
| Live win probability, Monte Carlo playoff odds and trade/waiver what-ifs over the real schedule, under league scoring | ✅ | rare |
| League history across seasons with champions | ✅ | ❌ |
| Select a team by username, user_id, roster_id or team name | ✅ | user_id / roster_id only |
| “Current week/season” defaults from Sleeper’s NFL state | ✅ | manual |
インストール
docker run --rm -p 127.0.0.1:3000:3000 -e SLEEPER_MCP_AUTH_TOKEN -v sleeper-cache:/data sleeper-mcp node dist/index.js --http --read-only設定
{
"mcpServers": {
"sleeper": {
"command": "node",
"args": ["/absolute/path/to/sleeper-mcp/dist/index.js", "--read-only"],
"env": { "SLEEPER_USERNAME": "your_sleeper_username" }
}
}
}