SuperAPIAI Directory

mcp-sports-hub

github.com · AI developer platforms

Aggregated sports data: live scores, standings, player stats and betting odds for NFL, NBA, MLB, NHL, soccer, tennis, cricket, golf, MMA, F1 and esports.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux · API

About this tool

Purpose

mcp-sports-hub is a unified MCP server that aggregates 42 sports data API providers into a single process, exposing approximately 410 tools covering more than 70 sports. Its official positioning is to let users obtain data such as NBA scores, Premier League odds, and tennis head-to-head records through a single MCP server, suitable for any LLM (Claude, GPT, Gemini, Llama, Mistral, etc.).

Main capabilities

  • Aggregates 42 sports API providers, with approximately 410 tools, covering scores, statistics, odds, esports, college sports, chess, motorsport (F1/MotoGP/NASCAR), boxing, Australian rules football (AFL), EuroLeague, and more.
  • 19 providers require no API Key, with approximately 165 tools, ready to use out of the box; 23 providers offer a free tier and require registration (free, no credit card), with approximately 245 tools.
  • Each provider works independently; configure API Keys only for the providers actually used; a missing Key will not prevent the server from starting, and will only return an error when the corresponding tool is called.
  • All tools follow the {provider}_{action} naming convention (such as the espn_get_scoreboard style).
  • Tools have a fields parameter, to which you can pass a comma-separated list of key names and match at any depth, filtering overly broad responses; when no match is found, it will explain and list the top-level keys seen. Responses also have a size limit; when exceeded, the longest list is truncated and a notice indicates how many items were dropped.
  • All GET responses are cached in memory for 60 seconds by default; concurrent identical requests are merged into a single upstream call; 404/410 are cached briefly (SPORTS_HUB_NEGATIVE_CACHE_TTL defaults to 30s).
  • 429 and 5xx responses are retried with exponential backoff, respecting the upstream Retry-After; client errors (4xx other than 408/425/429) and timeouts are not retried.
  • In addition to tools, it also exposes MCP resources: sportshub://providers (provider directory), sportshub://presets (presets), sportshub://provider/{key} (details for a single provider); and prompts: whats-on-today, compare-odds {event},motorsport-weekend {series}, league-standings {league}, team-deep-dive {team}, f1-race {season} {round}.
  • All tools are marked readOnly / idempotent, so clients can skip confirmation prompts.

Usage

Requires Node.js 18+ and npm.

  • Quick run (npx, no installation required): the server has been published in the official MCP Registry under the identifier io.github.lacausecrypto/sports-hub, and MCP clients that support this registry can automatically discover and install it.
  • Transport modes: stdio (default, suitable for Claude Desktop, Cursor, etc.) and HTTP/SSE (remote clients, web applications, custom integrations). HTTP mode provides POST /mcp (Streamable HTTP with SSE) and GET /health (health check), defaults to port 3000, and supports CORS and multi-client session management based on mcp-session-id.
  • Provider filtering: by default only the free preset is loaded; SPORTS_HUB_PROVIDERS=free can be used to load only the 19 providers that require no Key.
  • Client configuration: gives the configuration file locations for macOS (~/Library/Application Support/Claude/claude_desktop_config.json), Windows (%APPDATA%\Claude\claude_desktop_config.json), and Linux (~/.config/claude/claude_desktop_config.json), as well as examples for Claude Code (CLI) and .claude/settings.json. Fill in env only for the providers you need; pure free providers can omit env.
  • Hosting: the repository includes a Dockerfile and smithery.yaml, and can be container-hosted on Smithery; the hosted endpoint provides the free preset with no Key, allowing clients to connect with zero configuration.
  • Extension: after forking the repository, create a new src/providers/my-api.ts exports register(server: McpServer), prefix the tool names (e.g. myapi_get_something), import and call it in src/index.ts, then verify with npm run build.

Use cases

For developers and users who need to query multi-project, multi-provider sports data (scores, statistics, odds, esports, racing, etc.) through a unified interface in an LLM or MCP client.

Limitations and security

  • Requires Node.js 18+ and npm.
  • HTTP mode binds to 127.0.0.1 (loopback) by default; setting SPORTS_HUB_HOST=0.0.0.0 exposes the unauthenticated MCP endpoint to the entire network, and anyone who can access it can use the configured API Key; DNS-rebinding protection only blocks browser-origin attacks, not direct clients; only expose it behind an authenticating/TLS reverse proxy. SPORTS_HUB_CORS_ORIGINS must list explicit origins; the literal * will be rejected.
  • SPORTS_HUB_DNS_REBINDING_PROTECTION=0 disables the Host/Origin checks (enabled by default); only set this when the server is behind a trusted proxy whose routing is under your control.
  • SPORTS_HUB_STATELESS=1 suits multi-replica scenarios without sticky routing, but every call pays the construction cost; for a single instance, sessions are recommended.
  • Building a session takes about 90 ms for the free preset of 165 tools, paid only once per client; idle sessions are reclaimed.
  • Users must register their own API Keys; specific billing and pricing information is not provided.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools