{
  "markdown": "# STAT API — Sports Data MCP Server\n\nRemote [MCP](https://modelcontextprotocol.io) server (streamable HTTP) for [stat-api.com](https://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.\n\n**Endpoint:** `https://api.stat-api.com/mcp`\n\nListed in the [official MCP Registry](https://registry.modelcontextprotocol.io) as `com.stat-api/sports-data`.\n\n## Setup\n\nWorks anonymously out of the box; add a free API key to unlock the data tools.\n\n### Claude Code\n\n```bash\nclaude mcp add --transport http stat-api https://api.stat-api.com/mcp \\\n  --header \"Authorization: Bearer <YOUR_API_KEY>\"\n```\n\n### JSON config (Claude Desktop, Cursor, and most other clients)\n\n```json\n{\n  \"mcpServers\": {\n    \"stat-api\": {\n      \"type\": \"streamable-http\",\n      \"url\": \"https://api.stat-api.com/mcp\",\n      \"headers\": { \"Authorization\": \"Bearer <YOUR_API_KEY>\" }\n    }\n  }\n}\n```\n\nOmit 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.\n\n## Tools\n\n**No credentials needed** (browse the catalog):\n\n| Tool | What it does |\n|---|---|\n| `list_leagues` | All leagues/data groups (nfl, nba, mlb, nhl, pga, dfs, kalshi, polymarket, reference) with table counts |\n| `list_tables` | Every queryable table in one league, one-line summary each |\n| `describe_table` | Full contract for a table: fields, types, accepted filters and operators, page limits, a runnable example |\n\n**Free API key required** ([get one at stat-api.com](https://stat-api.com)):\n\n| Tool | What it does |\n|---|---|\n| `query_table` | Query any table with filters (`field__gte`, `__between`, `__like`, …) and keyset pagination |\n| `get_record` | Fetch a single row by primary key |\n| `search_players` | Typo-tolerant player-name search |\n| `games_on_date` | Games on one calendar date (US-Eastern) |\n| `game_markets` | Kalshi/Polymarket contracts linked to a specific game |\n| `graphql_query` | Relational queries — game → teams → players → odds in one call |\n| `api_usage` | Your key's plan, quota used/remaining, and reset date |\n\n## Data coverage\n\n- **NFL / NBA / MLB / NHL / PGA** — teams, players, games, box scores, play-by-play, odds, injuries, news\n- **DFS** — DraftKings/FanDuel slates, salaries, contest results\n- **Prediction markets** — Kalshi and Polymarket events, markets, prices, and trades, linked to the underlying games\n\n~200 tables total. `list_leagues` → `list_tables` → `describe_table` walks the whole catalog.\n\n## Other access methods\n\n- **REST** — [OpenAPI 3.1 spec](https://api.stat-api.com/api/openapi/public.json) · [interactive docs](https://stat-api.com/docs)\n- **GraphQL** — `POST https://api.stat-api.com/api/v1/graphql` · [SDL](https://api.stat-api.com/api/v1/graphql/sdl) · [IDE](https://stat-api.com/docs/graphql)\n- **Clients** — [`@sports-db/client`](https://www.npmjs.com/package/@sports-db/client) (npm) · [`sports-db`](https://pypi.org/project/sports-db/) (PyPI)\n\n## Links\n\n- Website: https://stat-api.com\n- MCP docs: https://stat-api.com/docs/mcp\n- Pricing (free tier available): https://stat-api.com/pricing\n",
  "bytes": 3211,
  "sha": "1cd7c872a1533b756c9bbb9fc9a5c77255ea7ef7307be7a41f3469c95ea14536",
  "repo_slug": "stat-api/mcp",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_com_stat_api_sports_data_44179b24/readme"
}