stat-api — Sports Data

السجل الرسمي الألعاب والرياضة والترفيه

NFL/NBA/MLB/NHL/PGA + DFS and prediction-market data. Browse free; query with a free API key.

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

Remote (streamable-http)
Claude Code
claude mcp add --transport http stat-api-sports-data 'https://api.stat-api.com/mcp' --header 'Authorization: <Bearer <api-key> — required for data tools; catalog tools (list_leagues, list_tables, describe_table) work anonymously. Free tier at https://stat-api.com>'
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "stat-api-sports-data": {
            "type": "http",
            "url": "https://api.stat-api.com/mcp",
            "headers": {
                "Authorization": "<Bearer <api-key> — required for data tools; catalog tools (list_leagues, list_tables, describe_table) work anonymously. Free tier at https://stat-api.com>"
            }
        }
    }
}

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. STAT API — Sports Data MCP Server
  2. Setup
  3. Tools
  4. Data coverage
  5. Other access methods
  6. Links

STAT API — Sports Data MCP Server

Remote MCP server (streamable HTTP) for stat-api.com: NFL, NBA, MLB, NHL, and PGA data — players, games, box scores, play-by-play — plus DFS salaries/slates and prediction-market prices from Kalshi and Polymarket.

Endpoint: https://api.stat-api.com/mcp

Listed in the official MCP Registry as com.stat-api/sports-data.

Setup

Works anonymously out of the box; add a free API key to unlock the data tools.

Claude Code
claude mcp add --transport http stat-api https://api.stat-api.com/mcp \
  --header "Authorization: Bearer <YOUR_API_KEY>"
JSON config (Claude Desktop, Cursor, and most other clients)
{
  "mcpServers": {
    "stat-api": {
      "type": "streamable-http",
      "url": "https://api.stat-api.com/mcp",
      "headers": { "Authorization": "Bearer <YOUR_API_KEY>" }
    }
  }
}

Omit the headers block to connect without credentials — the catalog tools still work, and the server tells you where to get a key when you call a data tool.

Tools

No credentials needed (browse the catalog):

ToolWhat it does
list_leaguesAll leagues/data groups (nfl, nba, mlb, nhl, pga, dfs, kalshi, polymarket, reference) with table counts
list_tablesEvery queryable table in one league, one-line summary each
describe_tableFull contract for a table: fields, types, accepted filters and operators, page limits, a runnable example

Free API key required (get one at stat-api.com):

ToolWhat it does
query_tableQuery any table with filters (field__gte, __between, __like, …) and keyset pagination
get_recordFetch a single row by primary key
search_playersTypo-tolerant player-name search
games_on_dateGames on one calendar date (US-Eastern)
game_marketsKalshi/Polymarket contracts linked to a specific game
graphql_queryRelational queries — game → teams → players → odds in one call
api_usageYour key's plan, quota used/remaining, and reset date

Data coverage

  • NFL / NBA / MLB / NHL / PGA — teams, players, games, box scores, play-by-play, odds, injuries, news
  • DFS — DraftKings/FanDuel slates, salaries, contest results
  • Prediction markets — Kalshi and Polymarket events, markets, prices, and trades, linked to the underlying games

~200 tables total. list_leagues → list_tables → describe_table walks the whole catalog.

Other access methods

الأسئلة الشائعة

ما هو stat-api — Sports Data؟

NFL/NBA/MLB/NHL/PGA + DFS and prediction-market data. Browse free; query with a free API key.

كيف أثبّت stat-api — Sports Data؟

يعمل كخادم بعيد. في Claude Code: claude mcp add --transport http stat-api-sports-data 'https://api.stat-api.com/mcp' --header 'Authorization: <Bearer <api-key> — required for data tools; catalog tools (list_leagues, list_tables, describe_table) work anonymously. Free tier at https://stat-api.com>'. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج stat-api — Sports Data إلى مفتاح API؟

نعم. يتطلب Authorization، وتضبطها في إعداداته.

هل stat-api — Sports Data مفتوح المصدر؟

شيفرته علنية على GitHub، لكن المستودع لا يعلن ترخيصًا قياسيًا.

من يصون stat-api — Sports Data؟

ينشره stat-api. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.