stat-api — Sports Data
NFL/NBA/MLB/NHL/PGA + DFS and prediction-market data. Browse free; query with a free API key.
Install
Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).
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>'
{
"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>"
}
}
}
}
Documentation
From the project's README on GitHub, refreshed weekly. Links open on GitHub.
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):
| Tool | What it does |
|---|---|
list_leagues | All leagues/data groups (nfl, nba, mlb, nhl, pga, dfs, kalshi, polymarket, reference) with table counts |
list_tables | Every queryable table in one league, one-line summary each |
describe_table | Full 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):
| Tool | What it does |
|---|---|
query_table | Query any table with filters (field__gte, __between, __like, …) and keyset pagination |
get_record | Fetch a single row by primary key |
search_players | Typo-tolerant player-name search |
games_on_date | Games on one calendar date (US-Eastern) |
game_markets | Kalshi/Polymarket contracts linked to a specific game |
graphql_query | Relational queries — game → teams → players → odds in one call |
api_usage | Your 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
- REST — OpenAPI 3.1 spec · interactive docs
- GraphQL —
POST https://api.stat-api.com/api/v1/graphql· SDL · IDE - Clients —
@sports-db/client(npm) ·sports-db(PyPI)
Links
- Website: https://stat-api.com
- MCP docs: https://stat-api.com/docs/mcp
- Pricing (free tier available): https://stat-api.com/pricing
Frequently asked questions
What is stat-api — Sports Data?
NFL/NBA/MLB/NHL/PGA + DFS and prediction-market data. Browse free; query with a free API key.
How do I install stat-api — Sports Data?
It runs as a remote server. In 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>'. For other clients, paste the JSON configuration from this page into their MCP settings.
Does stat-api — Sports Data need an API key?
Yes. It expects Authorization, which you set in its configuration.
Is stat-api — Sports Data open source?
Its code is public on GitHub, but the repository does not declare a standard license.
Who maintains stat-api — Sports Data?
It is published by stat-api. AI.tn lists it but does not maintain or endorse it.
From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.