SS

sourknives/sleeper-mcp-server

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

25 stars 15 forks 品質 63 トレンド 4

スリーパーFantasy Football APIデータにアクセスできるClaude Desktopを提供するモデルコンテキストプロトコル(MCP)サーバー.

概要

スリーパーFantasy Football APIデータにアクセスできるClaude Desktopを提供するモデルコンテキストプロトコル(MCP)サーバー。 このサーバーは、ユーザーは、Claudeと自然言語の相互作用を通じて、リーグ情報、プレーヤーデータ、マッチアップ、および結果をドラフトすることができます。 - : クエリーリーグ、ロスター、ユーザー、およびリーグ設定 - : ピックポジション、キーパーステータス、チームアトリビューションによる完全なドラフト結果 - すべてのラウンドとピックの完全な歴史 - 元のドラフト位置とチームを示すプレーヤーのドラフトデータ - Keeper のインディケーターと識別 - 不正なプレーヤーを追跡する無料のエージェント - : 検索プレーヤー、統計情報を取得し、トレンディングデータ - : リアルタイムのスコアリングで現在のおよび履歴のマッチアップを表示 - : API キャッシュバックを最適化する - TTL API バックリパーシャルを最適化する - - Python 3.10以上 - Claudeデスクトップアプリケーション 3.

概要(AI 翻訳)

スリーパーFantasy Football APIデータにアクセスできるClaude Desktopを提供するモデルコンテキストプロトコル(MCP)サーバー。 このサーバーは、ユーザーは、Claudeと自然言語の相互作用を通じて、リーグ情報、プレーヤーデータ、マッチアップ、および結果をドラフトすることができます。

##特徴

  • League Management: リーグ、ロスター、ユーザー、リーグ設定の問い合わせ -Draft Analysis:ピックポジション、キーパーステータス、チームアトリビューションによる完全なドラフト結果
  • すべてのラウンドとピックで完全な草案の歴史
  • 元のドラフト位置とチームを示すプレーヤードラフトメタデータ
  • Keeper を Keeper で識別できるインジケーター
  • 不正なプレーヤーを追跡する無料のエージェント -プレイヤー情報: プレイヤーを検索し、統計情報を取得し、データをトレンディング
  • マッチアップ分析:リアルタイムのスコアリングで現在のおよび歴史的マッチアップを見る
  • インテリジェントキャッシング:TTLベースのキャッシュで最適化されたAPIの使用 -Rate Limiting:Sleeper APIを指数関数的なバックオフで制限する

インストール

前提条件

  • Python 3.10以上
  • クロードデスクトップアプリケーション

ソースからインストールする

  1. リポジトリのクローン化:

  2. パッケージを取付けて下さい:

  3. テストおよびライニング用具の開発のため:

設定

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Sleeper MCP Server

A Model Context Protocol (MCP) server that provides Claude Desktop with access to Sleeper Fantasy Football API data. This server enables users to query league information, player data, matchups, and draft results through natural language interactions with Claude.

Features

  • League Management: Query leagues, rosters, users, and league settings
  • Draft Analysis: Complete draft results with pick positions, keeper status, and team attribution
    • Full draft history with all rounds and picks
    • Player draft metadata showing original draft position and team
    • Keeper identification with 🔒 indicators
    • Free agent tracking for undrafted players
  • Player Information: Search players, get statistics, and trending data
  • Matchup Analysis: View current and historical matchups with real-time scoring
  • Intelligent Caching: Optimized API usage with TTL-based caching
  • Rate Limiting: Respects Sleeper API limits with exponential backoff

Installation

Prerequisites

  • Python 3.10 or higher
  • Claude Desktop application

Install from Source

  1. Clone the repository:
git clone 
cd sleeper-mcp-server
  1. Install the package:
pip install -e .
  1. For development with testing and linting tools:
pip install -e ".[dev]"

Configuration

Claude Desktop MCP Configuration

Add the following configuration to your Claude Desktop MCP settings file:

Location of config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

Basic Configuration:

{
  "mcpServers": {
    "sleeper": {
      "command": "python",
      "args": ["-m", "sleeper_mcp_server"],
      "disabled": false,
      "autoApprove": [
        "get_user_leagues",
        "get_league_info",
        "search_players",
        "get_trending_players",
        "get_nfl_state"
      ]
    }
  }
}

Auto-approving every tool:

{
  "mcpServers": {
    "sleeper": {
      "command": "python",
      "args": ["-m", "sleeper_mcp_server"],
      "disabled": false,
      "autoApprove": [
        "get_user_leagues",
        "get_league_info",
        "get_league_rosters",
        "get_league_rosters_with_draft_info",
        "get_league_users",
        "get_roster_user_mapping",
        "get_league_draft",
        "search_players",
        "get_trending_players",
        "get_player_stats",
        "get_matchups",
        "get_matchup_scores",
        "get_nfl_state"
      ]
    }
  }
}

Available MCP Tools

League Tools

get_user_leagues

Get all leagues for a username in a specific season.

Parameters:

  • username (required): Sleeper username to look up
  • season (optional): Season year (defaults to current season)

Example Usage:

Show me all leagues for username "john_doe"
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "sleeper": { "command": "python", "args": ["-m", "sleeper_mcp_server"], "disabled": false, "autoApprove": [ "get_user_leagues", "get_league_info", "search_players", "get_trending_players", "get_nfl_state" ] } } }