SleepBot
SleepBot
Claudeをファンタジーフットボールリーグに接続するMCPサーバー。フェーズ1: Sleeperの公開APIを使用した読み取り専用ツール(認証不要)。ツールインターフェースを変更せずに、書き込みアクション、ESPN、複数リーグに拡張できるように構築されています。
アーキテクチャ
コアはプラットフォームに依存しません。すべてのツールはLeagueAdapterインターフェースと通信し、プラットフォームSDKに直接アクセスすることはありません:
tools ──▶ LeagueAdapter (interface) ◀── SleeperAdapter ──▶ api.sleeper.app
│ (EspnAdapter later)
└──▶ config (leagues[] registry)リーグやプラットフォームの追加は設定変更であり、コード変更ではありません。アーキテクチャはcairn.blueprint内でCairnを使用してマッピングされています。cairn scanを実行して、マップをコードと照合します。
Related MCP server: Yahoo Fantasy Baseball MCP
セットアップ
npm install
cp config/leagues.example.json config/leagues.json # then edit with your league
npm run buildSleeperリーグIDは、アプリのURLまたはhttps://api.sleeper.app/v1/user/<username>/leagues/nfl/<season>で見つけてください。
config/leagues.json
{
"leagues": [
{
"id": "my-main-league", // your own label, passed to every tool
"platform": "sleeper", // "sleeper" | "espn"
"sleeper": { "leagueId": "123456789012345678", "username": "yourusername" }
}
]
}シークレットはインラインで保存されることはありません。"env:ESPN_S2"のような値は、実行時に環境から解決されます(.env.exampleを参照)。フェーズ1ではシークレットは不要です。
実行
npm start # serves over stdio (built)
npm run dev # serves over stdio (tsx, no build)Claude Codeに登録
// .mcp.json / claude mcp add
{
"mcpServers": {
"sleepbot": { "command": "node", "args": ["dist/index.js"] }
}
}ツール(フェーズ1 — すべて読み取り専用)
Tool | Purpose |
| 設定済みリーグ(設定から取得、API呼び出しなし) |
| 設定、スコアリング、シーズン、ロースターのポジション |
| すべてのロースター:先発、ベンチ、IR(プレイヤー名を解決済み)、成績 |
| 設定された |
| 週ごとの対戦とスコア(デフォルトは現在の週) |
| 勝利数、次に得点でランク付け |
| トレード、ウェイバー、追加/ドロップ(デフォルトは現在の週) |
| 名前でプレイヤーを検索、ポジション/チームでフィルタリング |
| Sleeperで最も追加された/最もドロップされたプレイヤー |
すべてのツールはleagueIdラベルを受け取るため、マルチリーグ対応は「別のIDを渡す」だけです。設定でsleeper.usernameを設定すると、ロースター/順位/対戦がisYouでフラグ付けされ、SleepBotは尋ねることなくどのチームがあなたのものかを認識します。
npm testでテストを実行します。
ロードマップ
フェーズ2 — Sleeperの書き込みアクション(デフォルトで確認)+ ルールエンジン(
src/rules、スタブ)フェーズ3 — 同じツールを使用したローカルGUI(Vite/React)
フェーズ4 — ESPNのクッキーベースAPIに対する
EspnAdapter、同じインターフェース
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.
Related MCP Servers
- FlicenseBqualityCmaintenanceEnables comprehensive Sleeper Fantasy Football integration with Claude, providing real-time player projections, historical performance analytics, league management, and waiver wire analysis. Supports advanced NFL metrics, lineup optimization, and matchup analysis for fantasy football decision-making.6121
- FlicenseNot gradedqualityCmaintenanceConnects Claude to your Yahoo Fantasy Baseball team, enabling lineup management, roster analysis, and free agent scouting through natural conversation.
- FlicenseNot gradedqualityDmaintenanceEnables Claude to interact with Yahoo Fantasy Baseball and Basketball leagues, allowing roster analysis, matchup tracking, free agent browsing, and player stats retrieval via natural language.1
- AlicenseNot gradedqualityBmaintenanceEnables AI models to manage and query fantasy sports leagues through the Sleeper API, supporting tasks like player lookups, league activity, and draft management.50MIT
Related MCP Connectors
Read-only fantasy analysis for ESPN, Yahoo, and Sleeper leagues via MCP
WHOOP recovery, strain, sleep and workouts in Claude via official WHOOP OAuth. Free, open source.
Connect Claude to Fathom meeting recordings, transcripts, and summaries
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/sdotj/sleeper-bot'
If you have feedback or need assistance with the MCP directory API, please join our Discord server