Skip to main content
Glama
jjaquezito

Football Live MCP

by jjaquezito

Football Live MCP

Remote-MCP-Server, der Live-Fußballdaten von API-Football über HTTP bereitstellt und JSON-RPC 2.0 direkt ohne MCP-SDK implementiert.

Begleitprojekt zum lokalen Football Intelligence MCP-Server: Dieser dient der aktuellen Saison, während der lokale die historische Datenbank (2010–2025) in PostgreSQL bedient.

Protokoll

Transport: HTTP. Ein einziger Endpunkt, eine JSON-RPC-Nachricht pro Anfrage.

Endpunkt

Zweck

GET /

Health Check. Gibt Servername, Version und Anzahl der Tools zurück.

POST /mcp

JSON-RPC-2.0-Nachrichten. Benachrichtigungen geben 202 ohne Body zurück.

Implementierte Methoden: initialize, notifications/initialized, ping, tools/list, tools/call.

Protokollversion: 2025-06-18.

Related MCP server: football-api-mcp

Tools

Tool

Argumente

Rückgabe

get_upcoming_matches

league_id, days (Standard: 7)

Geplante Spiele im Zeitfenster

get_recent_results

league_id, days (Standard: 7)

Abgeschlossene Spiele mit Ergebnissen

get_current_standings

league_id

Live-Ligatabelle

get_current_injuries

team_id

Verletzte/gesperrte Spieler

get_live_matches

—

Aktuell laufende Spiele

search_team_live

query

Team-IDs von API-Football

Liga-IDs: 39 Premier League, 140 La Liga, 135 Serie A, 78 Bundesliga, 61 Ligue 1, 94 Primeira Liga, 2 UEFA Champions League.

Lokal ausführen

pip install -r requirements.txt
export API_FOOTBALL_KEY=your_key_here
python server.py                    # listens on :8080

Überprüfen:

curl http://localhost:8080/

curl -X POST http://localhost:8080/mcp \
  -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

Auf Render bereitstellen

  1. Übertrage dieses Verzeichnis in ein GitHub-Repository.

  2. Erstelle in Render einen New Web Service und verbinde dieses Repository.

  3. Render liest render.yaml; bestätige die Python-Laufzeit und den kostenlosen Plan.

  4. Füge die Umgebungsvariable API_FOOTBALL_KEY mit deinem API-Football-Schlüssel hinzu.

  5. Stelle bereit. Der öffentliche Endpunkt lautet https://<service>.onrender.com/mcp.

Der kostenlose Plan versetzt den Dienst nach Inaktivität in den Ruhezustand, daher dauert die erste Anfrage nach einer Pause etwa 50 Sekunden. Rufe GET / einmal vor einer Live-Demo auf, um ihn aufzuwecken.

Verwendung über einen MCP-Host

Füge der Host-Konfiguration einen Eintrag mit einem url-Feld hinzu:

{
  "mcpServers": {
    "football_live": { "url": "https://<service>.onrender.com/mcp" }
  }
}

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    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.
    7
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    MCP server for football-data.org API providing access to football data like standings, matches, teams, and scorers.
    MIT
  • F
    license
    A
    quality
    D
    maintenance
    Provides live football data through MCP tools, enabling users to fetch today's matches and top scorers for competitions like the Premier League or World Cup.
    2
    -
  • A
    license
    A
    quality
    D
    maintenance
    Enables MCP clients to access live football data from FotMob, including match stats, team form, injuries, and player workload, without making predictions.
    10
    1
    MIT