stat-api — Sports Data

com.stat-api由 stat-api.com 发布官方发布者v1.0.1更新于 Oct 24, 2026

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

已验证Streamable HTTP可网页运行金融数据与分析

概览

AI 生成的概览

stat-api 体育数据远程 MCP 服务器:可浏览 NFL、NBA、MLB、NHL、PGA、DFS 与预测市场数据表,并用免费 API 密钥查询。

可以做什么
  • 浏览目录:列出联赛与数据分组、列出某联赛的所有表、查看表的字段、筛选条件与分页限制
  • 按字段筛选和键集分页查询数据表,或用 GraphQL 做跨比赛、球队、球员与赔率的关系查询
  • 按主键获取单条记录,并支持容错的球员姓名搜索
  • 查询某日期的比赛,以及与该比赛关联的预测市场合约
  • 查看账户套餐、已用配额与重置日期
适用场景
当助手需要结构化的体育统计数据、赛程、技术统计、DFS 薪资或预测市场价格(NFL、NBA、MLB、NHL、PGA),并希望先自行了解表结构再查询时适用。
运行要求
远程 streamable HTTP 端点,无需本地运行时或安装包。目录类工具可匿名使用;数据类工具需要免费的 stat-api API 密钥,通过 Authorization Bearer 请求头传递。需要能访问该端点的网络。
安装前请注意
API 密钥通过 Authorization 请求头传递,应妥善保密。数据调用会消耗账户配额(get_record、search_players 和 api_usage 各计 1 条记录),大量查询可能用尽免费额度;依赖前请查看 api_usage 与定价。

安装

在 SourceWeft 中

  1. 打开 控制台中的 stat-api — Sports Data,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/com.stat-api%2Fsports-data/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

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

README

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

bash
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)

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

Links

来源:README.md,提交 494d3c6

工具

9

list_leagues

List leagues

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

无需输入参数。

list_tables

List tables

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

输入参数league必填

describe_table

Describe 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.

输入参数table必填league必填

query_table

Query 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 a stat-api account: sign in when the app asks (free account at https://stat-api.com), or send an API key as Authorization: Bearer <key>. Every returned row counts against the monthly record quota.

输入参数limittable必填league必填filtersfrom_id

get_record

Get record

Fetch a single row by primary key. Returns the row object. Requires a stat-api sign-in or API key; costs 1 record of quota.

输入参数id必填table必填league必填

search_players

Search NBA players

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 a stat-api sign-in or API key; rows count against quota.

输入参数name必填limitleague

games_on_date

Games on date

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 a stat-api sign-in or API key; rows count against quota.

输入参数dateleague必填

graphql_query

GraphQL query

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 a stat-api sign-in or API key; every row resolved anywhere in the tree counts against quota.

输入参数query必填variables

api_usage

API usage

Your account's quota position: plan, monthly record limit, records used, remaining, and when the quota resets. Requires a stat-api sign-in or API key; costs 1 record.

无需输入参数。

版本历史

1
  1. v1.0.1最新Sep 16, 2026

评分

已满足适用检查项的 90%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。