Skip to main content
Glama

Sleeper API MCP

by einreke

スリーパー API MCP

このモデルコンテキストプロトコル(MCP)サーバーは、Sleeper Fantasy Football APIへのアクセスを提供します。これにより、エージェントはSleeperプラットフォームからユーザー、リーグ、ドラフト、ロスター、対戦、選手情報に関するデータを取得できます。

特徴

  • ユーザー情報とリーグにアクセスする
  • リーグの詳細、名簿、ユーザーを取得する
  • 対戦情報とプレーオフの組み合わせ表を入手する
  • 取引と取引されたピックを表示する
  • ドラフト情報とピックにアクセスする
  • プレイヤーデータとトレンドプレイヤー情報を取得する
  • APIキーは不要です(Sleeper APIは読み取り専用です)

設定

要件

pip install requests

使用法

  1. このMCPをmcp_sleeperというディレクトリに配置します。
  2. 次の.cursor/mcp.jsonスニペットを使用して Cursor を構成します。
{ "mcpServers": { "sleeper": { "command": "python server.py" } } }
  1. MCP を次のように開始します。
cursor run-mcp sleeper

APIメソッド

MCP は次のツールを提供します。

ユーザーデータ

  • getUserInfo : ユーザー名またはuser_idでユーザー情報を取得します
  • getUserLeagues : 指定されたスポーツとシーズンのユーザーのすべてのリーグを取得します
  • getUserDrafts : 特定のスポーツとシーズンのユーザーのすべてのドラフトを取得します

リーグデータ

  • getLeagueInfo : 特定のリーグに関する情報を取得します
  • getLeagueRosters : リーグ内のすべての選手名簿を取得します
  • getLeagueUsers : リーグ内のすべてのユーザーを取得します
  • getLeagueMatchups : 特定の週のリーグの対戦カードを取得します
  • getLeagueWinnersBracket : リーグのプレーオフ優勝者ブラケットを取得します
  • getLeagueLosersBracket : リーグのプレーオフ敗者側ブラケットを取得します
  • getLeagueTransactions : 特定の週のリーグのトランザクションを取得します
  • getLeagueTradedPicks : リーグ内のすべてのトレードされたピックを取得します
  • getLeagueDrafts : リーグのすべてのドラフトを取得します

ドラフトデータ

  • getDraftInfo : 特定のドラフトに関する情報を取得する
  • getDraftPicks : ドラフトのすべてのピックを取得する
  • getDraftTradedPicks : ドラフトでトレードされたすべてのピックを取得します

プレイヤーデータ

  • getAllPlayers : 特定のスポーツのすべての選手に関する情報を取得します
  • getTrendingPlayers : 追加/削除アクティビティに基づいてトレンドのプレイヤーを取得します

州データ

  • getNFLState : 現在のNFLの状態を取得する

使用例

エージェントがこの MCP を使用して Sleeper からデータを取得する方法は次のとおりです。

# Get user information user_info = getUserInfo({"username_or_user_id": "sleeper_username"}) # Get user's leagues for the 2023 NFL season leagues = getUserLeagues({"user_id": user_info["user_id"], "sport": "nfl", "season": "2023"}) # Get information about a specific league league_info = getLeagueInfo({"league_id": leagues[0]["league_id"]}) # Get rosters for a league rosters = getLeagueRosters({"league_id": league_info["league_id"]}) # Get matchups for a specific week matchups = getLeagueMatchups({"league_id": league_info["league_id"], "week": 1}) # Get trending players trending_players = getTrendingPlayers({"sport": "nfl", "type": "add", "lookback_hours": 24, "limit": 10})

レート制限

API呼び出しの頻度にご注意ください。Sleeperのドキュメントによると、IPブロックを回避するには、1分あたりのAPI呼び出し数を1,000回以下に抑える必要があります。

さらに読む

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

このモデル コンテキスト プロトコル サーバーは、Sleeper Fantasy Football API へのアクセスを提供し、エージェントが API キーを必要とせずに、ユーザー、リーグ、ドラフト、名簿、対戦、プレーヤー情報に関するデータを取得できるようにします。

  1. 特徴
    1. 設定
      1. 要件
      2. 使用法
    2. APIメソッド
      1. ユーザーデータ
      2. リーグデータ
      3. ドラフトデータ
      4. プレイヤーデータ
      5. 州データ
    3. 使用例
      1. レート制限
        1. さらに読む

          Related MCP Servers

          • A
            security
            F
            license
            A
            quality
            A Model Context Protocol (MCP) server that provides a simple sleep/wait tool, useful for adding delays between operations such as waiting between API calls or testing eventually consistent systems.
            Last updated -
            1
            0
            15
            JavaScript
          • A
            security
            A
            license
            A
            quality
            A Model Context Protocol server that provides access to Fantasy Premier League data, allowing users to compare players, find team information, view gameweek data, and get FPL-related advice through Claude for Desktop and other MCP-compatible clients.
            Last updated -
            16
            37
            Python
            MIT License
            • Apple
          • A
            security
            A
            license
            A
            quality
            A Model Context Protocol server that enables integration with the Teamtailor API, allowing users to list, filter, and retrieve candidate information from their Teamtailor recruitment platform.
            Last updated -
            2
            2
            2
            TypeScript
            MIT License
          • -
            security
            F
            license
            -
            quality
            A Model Context Protocol server that provides AI models with structured access to external data and services, acting as a bridge between AI assistants and applications, databases, and APIs in a standardized, secure way.
            Last updated -
            1
            Python

          View all related MCP servers

          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/einreke/sleeper-scraper-mcp'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server