Skip to main content
Glama
jjaquezito

Football Live MCP

by jjaquezito

Football Live MCP

API-FootballのライブサッカーデータをHTTP経由で公開するリモートMCPサーバーです。MCP SDKを使わずにJSON-RPC 2.0を直接実装しています。

ローカルのFootball Intelligence MCPサーバーのコンパニオンです。こちらは現在のシーズンを提供し、ローカル版はPostgreSQLに保存された過去のデータベース(2010-2025)を提供します。

プロトコル

トランスポート: HTTP。単一のエンドポイントで、リクエストごとに1つのJSON-RPCメッセージを処理します。

エンドポイント

目的

GET /

ヘルスチェック。サーバー名、バージョン、ツール数を返します。

POST /mcp

JSON-RPC 2.0メッセージ。通知はボディなしで202を返します。

実装メソッド: initialize、notifications/initialized、ping、tools/list、tools/call。

プロトコルバージョン: 2025-06-18。

Related MCP server: football-api-mcp

ツール

ツール

引数

戻り値

get_upcoming_matches

league_id, days (default 7)

指定期間内に予定されている試合

get_recent_results

league_id, days (default 7)

スコア付きの終了済み試合

get_current_standings

league_id

最新のリーグ順位表

get_current_injuries

team_id

負傷中/出場停止中の選手

get_live_matches

—

現在進行中の試合

search_team_live

query

API-FootballのチームID

リーグID: 39 Premier League、140 La Liga、135 Serie A、78 Bundesliga、61 Ligue 1、94 Primeira Liga、2 UEFA Champions League。

ローカルでの実行

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

確認:

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"}'

Renderへのデプロイ

  1. このディレクトリをGitHubリポジトリにプッシュします。

  2. RenderでNew Web Serviceを作成し、そのリポジトリを接続します。

  3. Renderはrender.yamlを読み取ります。ランタイムがPythonであることと無料プランを確認してください。

  4. API-Footballキーを指定して環境変数API_FOOTBALL_KEYを追加します。

  5. デプロイします。公開エンドポイントはhttps://<service>.onrender.com/mcpになります。

無料プランでは非アクティブ状態が続くとサービスがスリープするため、一時停止後の最初のリクエストには約50秒かかります。ライブデモの前にGET /に一度アクセスして、スリープを解除してください。

MCPホストからの使用

MCPホスト設定にurlフィールドを含むエントリを追加します:

{
  "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