NFL Transactions MCP

by einreke
MIT License

Integrations

  • Provides Python-based integration with example code for agents to fetch NFL transaction data programmatically.

NFL 取引 MCP

ProSportsTransactions.com から NFL トランザクション データをスクレイピングするためのモジュラー コマンド ライン プログラム (MCP)。

特徴

  • 柔軟なフィルタリング オプションを使用して NFL トランザクションを取得します。
    • 選手/コーチ/幹部の異動(トレード、フリーエージェントとの契約、ドラフト指名など)
    • 負傷者リストへの登録/登録からの退出
    • マイナーリーグへの移籍(NFLヨーロッパ)
    • 怪我のため試合を欠場
    • 個人的な理由により試合を欠場
    • 懲戒処分(停職、罰金など)
    • 法的/刑事事件
  • チーム、選手、日付範囲、取引の種類でフィルタリング
  • CSV、JSON、またはDataFrame形式でデータを出力します
  • NFLチームと取引の種類をすべて一覧表示する

インストール

# Clone the repository git clone <repository-url> cd nfl_transactions_mcp # Install requirements pip install -r requirements.txt

カーソルとの使用

この MCP を Cursor で使用するには、次の構成を.cursor/mcp.jsonファイルに追加します。

{ "mcpServers": { "nfl-transactions": { "command": "python server.py", "env": {} } } }

MCPを直接実行する

# Run the MCP server via Cursor cursor run-mcp nfl-transactions

利用可能なツール

1. フェッチトランザクション

指定されたフィルターに基づいて NFL トランザクションを取得します。

パラメータ:

  • start_date (必須): 開始日(YYYY-MM-DD形式)
  • end_date (必須): 終了日(YYYY-MM-DD 形式)
  • transaction_type (オプション、デフォルト:"All"):フィルタリングするトランザクションの種類
  • team (オプション): チーム名
  • player (オプション): プレイヤー名
  • output_format (オプション、デフォルト: "json"): 出力形式 (csv、json、またはデータフレーム)

例:

{ "jsonrpc": "2.0", "method": "fetch_transactions", "params": { "start_date": "2023-01-01", "end_date": "2023-12-31", "transaction_type": "Injury", "team": "Patriots" }, "id": 1 }

2. チーム一覧

フィルタリング可能なすべての NFL チームを一覧表示します。

例:

{ "jsonrpc": "2.0", "method": "list_teams", "id": 2 }

3. list_transaction_types

フィルタリングに使用できるすべてのトランザクション タイプを一覧表示します。

例:

{ "jsonrpc": "2.0", "method": "list_transaction_types", "id": 3 }

スーパーエージェントとの統合

このMCPは、AIエージェントやスーパーエージェントと容易に統合できるように設計されています。エージェントはJSON-RPCリクエストを送信してこのMCPとやり取りし、ユーザーのクエリに基づいてNFLの取引データを取得できます。

エージェント統合の例:

# Example of an agent calling the MCP import json import subprocess def call_mcp(method, params=None): request = { "jsonrpc": "2.0", "method": method, "params": params or {}, "id": 1 } # Call the MCP via cursor cmd = ["cursor", "run-mcp", "nfl-transactions"] proc = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, text=True) # Send the request and get the response response, _ = proc.communicate(json.dumps(request)) return json.loads(response) # Example: Get Patriots injury transactions from 2023 result = call_mcp("fetch_transactions", { "start_date": "2023-01-01", "end_date": "2023-12-31", "transaction_type": "Injury", "team": "Patriots" }) print(f"Found {len(result['data'])} transactions")

ライセンス

MITライセンス

-
security - not tested
A
license - permissive license
-
quality - not tested

ProSportsTransactions.com から選手の移籍、負傷、懲戒処分などの NFL トランザクション データを取得およびフィルタリングするためのモジュラー コマンド ライン プログラム。

  1. 特徴
    1. インストール
      1. カーソルとの使用
        1. MCPを直接実行する
      2. 利用可能なツール
        1. フェッチトランザクション
        2. チーム一覧
        3. list\_transaction\_types
      3. スーパーエージェントとの統合
        1. ライセンス

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            An MCP server providing access to college football statistics sourced from the College Football Data API within Claude Desktop.
            Last updated -
            9
            9
            Python
            MIT License
            • Apple
          • -
            security
            F
            license
            -
            quality
            Provides programmatic access to comprehensive football statistics and live match data via API-Football, enabling applications to retrieve league standings, team fixtures, player statistics, and real-time match events.
            Last updated -
            Python
          • -
            security
            F
            license
            -
            quality
            Provides structured access to NHL data including teams, players, standings, schedules, and statistics through the Model-Context Protocol pattern.
            Last updated -
            TypeScript
          • -
            security
            A
            license
            -
            quality
            An open-source MCP server that connects to the SoccerDataAPI to deliver up-to-date football match information via natural language interactions.
            Last updated -
            7
            Python
            MIT License
            • Apple

          View all related MCP servers

          ID: q1i9pujnsl