Getting started

AI assistants (MCP)

View as Markdown

The SportsAPI MCP server gives AI assistants the API as tools: an assistant can look up live scores, fixtures, standings, teams, players and statistics for every sport, with SportsAPI ids, on its own. It is a remote server (Streamable HTTP) at https://mcp.sportsapi.app, on every plan, Free included.

Authentication: clients that take a header (Claude Code, Cursor, VS Code) send your MCP key (mk_live_…, made on the dashboard; it works only on the MCP server) or your API key as Authorization: Bearer. Claude (web and desktop), ChatGPT and other connectors sign in instead (OAuth): you sign in on sportsapi.app and press Allow, and the connection gets its own MCP key, listed under Connections on the dashboard, where you can revoke it. Widget (publishable) keys are refused, and an MCP key on REST or WebSocket gets 403 mcp_key.

$ claude mcp add --transport http sportsapi https://mcp.sportsapi.app \
    --header "Authorization: Bearer mk_live_…"

# Or without a key: add it without --header, then run /mcp
# in Claude Code and sign in with your SportsAPI account.

Tools

Shortcuts cover the common asks. For everything else the assistant discovers the API layer by layer: list_sports → list_endpoints for a sport → call_endpoint.

ToolWhat it doesCost
list_sportsEvery sport with its kind, live count and the endpoint groups you can use for it.Free
list_endpointsA sport’s endpoints your plan includes, by group, with parameter signatures; one group for full parameter detail.Free
call_endpointCall any listed endpoint by its op (e.g. leagues.standings) with its parameters.1 request
searchFind teams, players, leagues, managers, referees, races, fixtures or venues by name → SportsAPI ids.1 request
live_fixturesFixtures in play now: every sport, one sport or one league.1 request
fixtures_by_dateFixtures on a UTC day: one league, one sport (paged) or one country of a sport.1 request
fixtureOne fixture, optionally with lineups, statistics, events, h2h, form, best players, streaks or odds (one request per part).1 request
standingsA league’s table, the newest season unless one is given; total, home or away.1 request
teamA team’s profile, optionally with its squad and recent or upcoming fixtures (one request per part).1 request
playerA player’s profile and season statistics, his newest league season unless one is given.1 request
leadersA league season’s player leaderboards (goals, assists, rating, …), the newest season by default.1 request
race_resultsMotorsport and cycling: a race’s classification, or a series’ latest finished race.1 request

Limits: each data call counts as one API request against your plan’s quota and per-minute rate, exactly like REST, and the plan’s endpoints apply (odds and the premium analytics only on plans that include them; the rest are not even listed). The discovery tools cost no quota, up to 120 calls a minute. Answers are compacted for model context: no nulls, no image URLs, long lists cut with a note saying how to page.