Sleeper API MCP
スリーパー API MCP
このモデルコンテキストプロトコル(MCP)サーバーは、Sleeper Fantasy Football APIへのアクセスを提供します。これにより、エージェントはSleeperプラットフォームからユーザー、リーグ、ドラフト、ロスター、対戦、選手情報に関するデータを取得できます。
特徴
ユーザー情報とリーグにアクセスする
リーグの詳細、名簿、ユーザーを取得する
対戦情報とプレーオフの組み合わせ表を入手する
取引と取引されたピックを表示する
ドラフト情報とピックにアクセスする
プレイヤーデータとトレンドプレイヤー情報を取得する
APIキーは不要です(Sleeper APIは読み取り専用です)
Related MCP server: Yahoo Fantasy MCP
設定
要件
pip install requests使用法
このMCPを
mcp_sleeperというディレクトリに配置します。次の
.cursor/mcp.jsonスニペットを使用して Cursor を構成します。
{
"mcpServers": {
"sleeper": {
"command": "python server.py"
}
}
}MCP を次のように開始します。
cursor run-mcp sleeperAPIメソッド
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回以下に抑える必要があります。
さらに読む
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
The official Model Context Protocol server for Ambee. It gives any MCP-compatible AI assistant — Claude, ChatGPT, Cursor, VS Code, Ollama, and more direct access to live air quality, pollen, and weather data. To get started, including information on signing up and obtaining your Ambee key, check out the Ambee documentation on https://docs.ambeedata.com
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceA server that integrates Sleeper fantasy sports data with Goose AI through the Machine Context Protocol (MCP), providing structured access to fantasy league information.-
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides read-only access to Yahoo Fantasy Sports data, enabling AI assistants to query league standings, player stats, matchups, and rosters.5MIT
- 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.135 npmMIT
- AlicenseAqualityCmaintenanceA 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