Skip to main content
Glama
sdotj
by sdotj

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 build

Sleeperリーグ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

list_leagues

設定済みリーグ(設定から取得、API呼び出しなし)

get_league_info

設定、スコアリング、シーズン、ロースターのポジション

get_rosters

すべてのロースター:先発、ベンチ、IR(プレイヤー名を解決済み)、成績

get_my_roster

設定されたusernameから識別される自分のロースター

get_matchups

週ごとの対戦とスコア(デフォルトは現在の週)

get_standings

勝利数、次に得点でランク付け

get_transactions

トレード、ウェイバー、追加/ドロップ(デフォルトは現在の週)

search_players

名前でプレイヤーを検索、ポジション/チームでフィルタリング

get_trending_players

Sleeperで最も追加された/最もドロップされたプレイヤー

すべてのツールはleagueIdラベルを受け取るため、マルチリーグ対応は「別のIDを渡す」だけです。設定でsleeper.usernameを設定すると、ロースター/順位/対戦がisYouでフラグ付けされ、SleepBotは尋ねることなくどのチームがあなたのものかを認識します。

npm testでテストを実行します。

ロードマップ

  • フェーズ2 — Sleeperの書き込みアクション(デフォルトで確認)+ ルールエンジン(src/rules、スタブ)

  • フェーズ3 — 同じツールを使用したローカルGUI(Vite/React)

  • フェーズ4 — ESPNのクッキーベースAPIに対するEspnAdapter、同じインターフェース

F
license - not found
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • F
    license
    B
    quality
    C
    maintenance
    Enables 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.
    6
    12
    1
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables 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
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables AI models to manage and query fantasy sports leagues through the Sleeper API, supporting tasks like player lookups, league activity, and draft management.
    50
    MIT

View all related MCP servers

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

View all MCP Connectors

Latest Blog Posts

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