stat-api — Sports Data — Claude Code MCP server: sports data
This MCP server gives agents a catalog of sports data and tools to query NFL, NBA, MLB, NHL, PGA, DFS, and prediction markets. Browse the catalog without a key; querying data requires a free API key.
claude mcp add --transport http sports-data https://api.stat-api.com/mcpWhat stat-api — Sports Data does
An agent can first inspect the available leagues and tables, then check a table’s fields and supported filters. With an API key, it can query rows with filters and pagination, search player names, look up games on a date, and find Kalshi or Polymarket contracts linked to a game. Other tools fetch a single record or run GraphQL queries that connect games, teams, players, and odds.
The server uses HTTP at https://api.stat-api.com/mcp. Catalog tools work without credentials, but data queries need a free API key. In Claude Code, add the server with claude mcp add --transport http sports-data https://api.stat-api.com/mcp; configure Authorization: Bearer <YOUR_API_KEY> to access the data tools.
What it helps with
- inspect the tables available for a league
- find a player despite a typo in the name
- look up games on a calendar date
- filter sports records by table fields
- find Kalshi or Polymarket contracts tied to a game
Example prompts for the agent
- Show the NBA tables and describe the fields in the games table.
- Search for a player by name, allowing for a possible typo, and return their records.
- Find games on a date and show any Kalshi markets linked to them.
How to install stat-api — Sports Data
Platform CLI: remote server
claude mcp add --transport http sports-data https://api.stat-api.com/mcpPlatform CLI: remote server
codex mcp add stat-api-sports-data --url https://api.stat-api.com/mcpConfig file
{
"mcpServers": {
"stat-api-sports-data": {
"url": "https://api.stat-api.com/mcp"
}
}
}Config file
{
"servers": {
"stat-api-sports-data": {
"type": "http",
"url": "https://api.stat-api.com/mcp"
}
}
}Platform CLI: remote server
gemini mcp add -t http stat-api-sports-data https://api.stat-api.com/mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about stat-api — Sports Data
How do I install stat-api — Sports Data in Claude Code?
Run claude mcp add --transport http sports-data https://api.stat-api.com/mcp. To query data, configure the Authorization: Bearer <YOUR_API_KEY> header with a free API key.
What does stat-api — Sports Data do?
It connects an agent to a sports data catalog and provides tools for querying leagues, teams, players, games, and prediction markets. Catalog browsing needs no key; data queries do.
Can I use the server without an API key?
Yes. You can browse leagues, tables, and table schemas without credentials. A free API key is required for data-query tools.