stat-api — Sports Data

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

사용해야 할까요

품질 및 안전성

B
설명 품질
100%
스키마 완전성
72%
이름 품질
91%
오염 위험
80%
권한 일치
100%
프로토콜 준수
100%

발견 사항 (2)

  • HIGHTool poisoning patterns detected
  • MEDIUMTool description contains URL to non-standard domainquery_table에서

도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.

컨텍스트 비용

~1,252토큰 (도구 정의)
~686 B일반적인 응답 크기
중간 정도의 주의 영향 (128k 컨텍스트의 0.98%)

이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.

설치

원클릭 설치

`claude_desktop_config.json` 파일에 다음을 추가하세요:

{
  "mcpServers": {
    "sports-data": {
      "url": "https://api.stat-api.com/mcp"
    }
  }
}

원격 엔드포인트

https://api.stat-api.com/mcpstreamable-http

할 수 있는 일

도구 목록

도구 (9)

🟢 읽기 전용🟡 쓰기🔴 삭제⚪ 알 수 없음
🟢list_leagues

List every league/data group this API serves (nfl, nba, mlb, nhl, pga, dfs, kalshi, polymarket, reference) with table counts and availability. No credentials needed. Start here, then call list_tables.

입력 스키마

{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}
🟢list_tables(league)

List every queryable table in one league with a one-line summary each. No credentials needed. Follow with describe_table before querying.

입력 스키마

{
  "type": "object",
  "properties": {
    "league": {
      "enum": [
        "nfl",
        "nba",
        "mlb",
        "nhl",
        "pga",
        "dfs",
        "kalshi",
        "polymarket",
        "reference"
      ],
      "type": "string"
    }
  },
  "required": [
    "league"
  ],
  "additionalProperties": false
}
🟢describe_table(league, table)

Full contract for one table: fields with types and descriptions, the filters query_table accepts (with operators like __gte/__lte/__between/__like and required filter combinations), page-size limits, primary key, and a runnable example URL. No credentials needed. Always call this before query_table — filters not listed here are rejected.

입력 스키마

{
  "type": "object",
  "properties": {
    "league": {
      "enum": [
        "nfl",
        "nba",
        "mlb",
        "nhl",
        "pga",
        "dfs",
        "kalshi",
        "polymarket",
        "reference"
      ],
      "type": "string"
    },
    "table": {
      "type": "string"
    }
  },
  "required": [
    "league",
    "table"
  ],
  "additionalProperties": false
}
🟡query_table(filters, from_id, league, limit, table)

Query any table. Returns `{"<table>": [rows], "limit": N, "next_from_id": M|null, "has_more": bool}`. To read every row, start with from_id=0 and re-call with from_id set to the previous next_from_id until it is null. A call without from_id returns the first page in the table's default sort with next_from_id null. filters is a flat object of `field` or `field__op` keys from describe_table (e.g. {"season_id": 2024, "day__between": "20250101,20250131"}). Requires an API key (Authorization: Bearer <key>; free tier at https://stat-api.com). Every returned row counts against the monthly record quota.

입력 스키마

{
  "type": "object",
  "properties": {
    "filters": {
      "additionalProperties": {
        "type": [
          "string",
          "number",
          "boolean"
        ]
      },
      "description": "field or field__op keys → scalar values; see describe_table",
      "type": "object"
    },
    "from_id": {
      "description": "keyset cursor: 0 for the first page of a full walk, then the previous next_from_id",
      "type": "integer"
    },
    "league": {
      "enum": [
        "nfl",
        "nba",
        "mlb",
        "nhl",
        "pga",
        "dfs",
        "kalshi",
        "polymarket",
        "reference"
      ],
      "type": "string"
    },
    "limit": {
      "minimum": 1,
      "type": "integer"
    },
    "table": {
      "type": "string"
    }
  },
  "required": [
    "league",
    "table"
  ],
  "additionalProperties": false
}
🟢get_record(id, league, table)

Fetch a single row by primary key. Returns the row object. Requires an API key; costs 1 record of quota.

입력 스키마

{
  "type": "object",
  "properties": {
    "id": {
      "description": "primary-key value (integer or text PK)",
      "type": "string"
    },
    "league": {
      "enum": [
        "nfl",
        "nba",
        "mlb",
        "nhl",
        "pga",
        "dfs",
        "kalshi",
        "polymarket",
        "reference"
      ],
      "type": "string"
    },
    "table": {
      "type": "string"
    }
  },
  "required": [
    "league",
    "table",
    "id"
  ],
  "additionalProperties": false
}
🟢search_players(league, limit, name)

Fuzzy player-name search (typo-tolerant). Currently NBA only — for other leagues query the players table with a name filter via query_table. Returns player rows ordered by match quality. Requires an API key; rows count against quota.

입력 스키마

{
  "type": "object",
  "properties": {
    "league": {
      "default": "nba",
      "enum": [
        "nba"
      ],
      "type": "string"
    },
    "limit": {
      "default": 10,
      "maximum": 50,
      "minimum": 1,
      "type": "integer"
    },
    "name": {
      "maxLength": 100,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "name"
  ],
  "additionalProperties": false
}
🟢games_on_date(date, league)

Games scheduled/played on one calendar date (US-Eastern) for nba, mlb, or nhl; defaults to today. Returns the same envelope as query_table on the games table. NFL is week-based, not date-based — for nfl, use query_table on nfl/games with season_id + week filters instead. Requires an API key; rows count against quota.

입력 스키마

{
  "type": "object",
  "properties": {
    "date": {
      "description": "YYYY-MM-DD; defaults to today in US-Eastern time",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "type": "string"
    },
    "league": {
      "enum": [
        "nba",
        "mlb",
        "nhl"
      ],
      "type": "string"
    }
  },
  "required": [
    "league"
  ],
  "additionalProperties": false
}
🟡graphql_query(query, variables)

Run a GraphQL query against the same data with relations — nest from a game to its teams/players/odds in one call. Root fields are leagues (nfl, nba, …), each exposing its tables with the same filter arguments as REST plus `first`/`after` pagination. Do NOT send introspection queries (the schema is huge) — use describe_table instead; the SDL is at https://api.stat-api.com/api/v1/graphql/sdl. Requires an API key; every row resolved anywhere in the tree counts against quota.

입력 스키마

{
  "type": "object",
  "properties": {
    "query": {
      "type": "string"
    },
    "variables": {
      "type": "object"
    }
  },
  "required": [
    "query"
  ],
  "additionalProperties": false
}
⚪api_usage

Your key's quota position: plan, monthly record limit, records used, remaining, and when the quota resets. Requires an API key; costs 1 record.

입력 스키마

{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

커뮤니티

이 서버 평가하기

증거

최근 관측

검증됨버전이 기록되지 않음도구 9개
검증됨버전이 기록되지 않음도구 9개