Skip to main content
Glama
Basket Scout Pi MCP Server

Basket Scout Pi MCP Server

by cesarfong

Basket Scout Pi

Servidor agnóstico (funciona igual en Windows y Linux / Raspberry Pi 5 ARM64) para analizar partidos de básquet juvenil/amateur:

  • MCP Server (/mcp): Recibe el link de YouTube + jugadores por analizar (analyze_game), reporta el progreso en vivo (get_job_status) y entrega el resumen verificado sin cargar videos ni imágenes en el chat (get_game_summary).

  • FastAPI Web Dashboard (/games/{job_id}): Interfaz web con reproductor HTML5 para ver cada clip MP4 anotado (títulos, flecha de seguimiento, aro en el piso), filtro multi-jugador y descarga directa para WhatsApp.


1. Configuración rápida (Windows y Linux / Raspberry Pi 5)

Copia .env.example a .env y coloca tu API key de Gemini:

cp .env.example .env

Edita .env:

GEMINI_API_KEY=tu_api_key_aqui
GEMINI_SCAN_MODEL=gemini-2.5-flash
GEMINI_AUDIT_MODEL=gemini-2.5-pro
HOST=0.0.0.0
PORT=8080
PUBLIC_BASE_URL=http://localhost:8080

(En tu Raspberry Pi 5 cambia PUBLIC_BASE_URL=http://gateway-host.local:8080 o su IP local).


Related MCP server: MnogoReels MCP server

2. Instalación y ejecución

En Windows (PowerShell)

python -m venv .venv
.venv\Scripts\Activate.ps1
pip install -r requirements.txt
python -m app.main

En Raspberry Pi 5 / Linux

sudo apt update && sudo apt install -y ffmpeg python3-venv
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python -m app.main

Abre en tu navegador: http://localhost:8080 (o http://gateway-host.local:8080).


3. Conectar por MCP (Claude Desktop / Antigravity / Gateway)

El servidor expone MCP Streamable HTTP en: http://localhost:8080/mcp (o http://gateway-host.local:8080/mcp).

Tools disponibles:

  • analyze_game: Encola un partido (YouTube o MP4 local) y devuelve job_id + dashboard_url.

  • get_job_status: Consulta el avance (downloading, storyboards, auditing, rendering, completed).

  • get_game_summary: Devuelve el resumen completo (puntos, asistencias, jugadas, tips) + links a los MP4 en FastAPI.

  • list_games: Lista todos los partidos procesados.


4. Pruebas automáticas

pytest -v

Licencia

El código de Basket Scout Pi se distribuye bajo la licencia MIT. Esta licencia no otorga derechos sobre las grabaciones de los partidos.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants in MCP clients to turn long videos from YouTube, VK Video, RuTube, Dzen, Twitch, Yandex Disk, Google Drive or direct links into captioned vertical Shorts/Reels, transcripts and articles, returning links to the finished clips. It also exposes read-only modes and job quoting so clients can inspect sources and estimate credit usage before creating anything.
      19
      40 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables users to submit Douyin/Bilibili/YouTube links or local audio/video and create reusable processing jobs, then retrieve timestamped transcripts, SRT subtitles, summaries, sampled screenshots, exports, and optional AI-rewritten scripts through MCP tools sharing a local FastAPI job store.
      MIT