Skip to main content

gamedai-nfl-mcp

Part of gamedai, the interactive sports radio. This MIT-licensed MCP server exposes five read-only NFL tools backed by the public gamedai API.

The default backend is https://gamedai-v2-preview.fly.dev. Override it with GAMEDAI_API_BASE. Scout calls optionally use GAMEDAI_SCOUT_API_KEY; the legacy GAMEDAI_PUBLIC_API_KEY name is accepted as an alias.

Install

cd tools/gamedai-mcp
python3.12 -m venv .venv
. .venv/bin/activate
python -m pip install -e ".[test]"

Tools

  • get_game_scores(date?, event_id?) reads the public slate. date is sent to the backend; event_id filters the returned slate locally.
  • get_wire_news(page?, page_size?) reads the paginated Wire feed.
  • get_player_grade(player, season?, week?) reads Scout player grades.
  • get_start_sit_recommendation(player_a, player_b, week, season?) reads the Scout start/sit comparison. week is required.
  • get_scout_rankings(position?, scoring?, week?) reads the Scout rankings board.

When season is omitted, get_player_grade and get_start_sit_recommendation use the latest complete NFL stats season: today.year - 1 when the month is March or later, otherwise today.year - 2. An explicit season always wins. Rankings derive their source season in the backend.

All backend errors are returned as structured objects with code, http_status, and a bounded message. Scout keys are sent only to /v1/scout/* calls.

Hosted mode

The hosted service uses streamable HTTP:

gamedai-nfl-mcp --transport streamable-http --host 0.0.0.0 --port 8080

The MCP endpoint is /mcp; process liveness is /healthz; backend readiness is /readyz. The Fly app is the existing gamedai-mcp app and deploys from this directory with flyctl deploy.

The pinned MCP SDK enables stateless HTTP when its FastMCP constructor supports stateless_http=True. Older SDKs keep normal sessions, as a safe fallback.

Environment

export GAMEDAI_API_BASE="https://gamedai-v2-preview.fly.dev"
export GAMEDAI_SCOUT_API_KEY="<server-provisioned Scout key>"

OPENAI_APPS_CHALLENGE_TOKEN is only needed for the existing public Apps challenge route. Never commit keys or expose the Scout key to an MCP model.

Tests

Tests use mocked HTTP clients and do not call the live backend:

pytest

The canonical backend contract is generated at backend/openapi/scout_public_contract.openapi.json; run python scripts/mcp/check_contract_drift.py from the repository root to check for route or schema drift.

License: MIT.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gamedai_nfl_mcp-0.2.0.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gamedai_nfl_mcp-0.2.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file gamedai_nfl_mcp-0.2.0.tar.gz.

File metadata

  • Download URL: gamedai_nfl_mcp-0.2.0.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.9

File hashes

Hashes for gamedai_nfl_mcp-0.2.0.tar.gz
Algorithm Hash digest
SHA256 130c7f5c4a7886d23c8c95822dc6ad8bb1b2b896cd24c75bb107d3350d6a1b6b
MD5 c193c626eab387f8778e287954f48091
BLAKE2b-256 54c6811306266ff218d71ff5ca93f2ea370105c202dad7897c2b425289490d7b

See more details on using hashes here.

File details

Details for the file gamedai_nfl_mcp-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for gamedai_nfl_mcp-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2dff8079804b717cd43eb8a93968ffc8e2be04fb389c73a34189fea7f3094955
MD5 e7bb25dbbd8a439dbef80e1927bae877
BLAKE2b-256 9c4031c64474d1f859e5683526fb421c8d6729e4204bbbbac347707877f6726c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page