STAT-API

MCP Server

Point any Model Context Protocol client at stat-api and it can browse the catalog and query every sport directly — no glue code. Same data, auth, and metering as the REST and GraphQL APIs.

Endpoint

Streamable HTTP transport, JSON over POST, protocol version 2025-06-18. Stateless — no session to manage.

https://api.stat-api.com/mcp

Connect

Claude Code

claude mcp add --transport http stat-api https://api.stat-api.com/mcp \
  --header "Authorization: Bearer YOUR_API_KEY"

The --header is optional: omit it to browse the catalog anonymously; add your key to run the data tools.

ChatGPT or any custom MCP client

Drop this server entry into your client's MCP config (clients nest it under their own mcpServers key):

{
  "url": "https://api.stat-api.com/mcp",
  "headers": { "Authorization": "Bearer YOUR_API_KEY" }
}

Claude.ai custom connector

Settings → Connectors → Add custom connector, then paste https://api.stat-api.com/mcp as the remote MCP server URL and add your API key.

Tools

Browse — no key required

The catalog tools are anonymous and unmetered, so a client can discover the whole API before you hand it a key.

ToolWhat it does
list_leaguesList every league and how many tables it exposes.
list_tablesList the tables in a league, each with a one-line summary.
describe_tableFull schema for a table: fields, filters, pagination, and an example URL.

Query — API key required

These read data and need an Authorization: Bearer <key> header. Rows are metered against your monthly quota exactly like REST — each response reports your position in x-quota-* headers.

ToolWhat it does
query_tablePaginated, filterable query against any table.
get_recordFetch a single row by its primary key.
search_playersFind players by name within a league.
games_on_dateList the games scheduled on a given date.
game_marketsBetting lines and prediction-market prices for a game.
graphql_queryRun a GraphQL query — nested relations resolved in one call.
api_usageYour current monthly quota: records used and remaining.

Get a key

The free tier covers 50,000 records a month across every sport — enough to wire up a client and explore. Grab a key on the pricing page.