Thesportsdb

v0.2.1
io.github.pipeworx-io/thesportsdb Checked 3 days ago Published 29 days ago

TheSportsDB MCP — sports catalog (teams, players, events)

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_sports

Return all sports tracked by TheSportsDB (e.g. Soccer, Ice Hockey, Basketball), each with id, name, and forum.

list_leagues

List the sports leagues catalogued by TheSportsDB, optionally narrowed by sport name (Soccer, Ice Hockey, Basketball, American Football, Baseball) and by country name. Returns each league id, name, alternate name, sport, and country; the league id feeds league_teams and league_table in this pack. Answers which leagues exist for a sport or a country, and what league id to use next.

ParameterTypeDescription
countrystringCountry name
sportstringSport name (e.g. "Soccer", "Ice Hockey")

search_teams

Search TheSportsDB for sports teams by name — football/soccer clubs in any league worldwide including lower divisions, plus NBA, NFL, MLB and more. Returns team id (use with team_events_next / team_events_last for fixtures and results), sport, league, country, stadium, and description.

ParameterTypeDescription
query *string

get_team

Full team profile from TheSportsDB by numeric team_id — returns name, sport, country, stadium, formed year, description, badge, and social links.

ParameterTypeDescription
team_id *stringTheSportsDB team id

league_teams

List all teams in a TheSportsDB league by league_id; returns each team's id, name, badge, and country.

ParameterTypeDescription
league_id *string

search_players

Search TheSportsDB for players by name. Returns player id, current team, nationality, position, and description. Use search_teams first to find team IDs if needed.

ParameterTypeDescription
query *string

get_player

Full player profile from TheSportsDB by numeric player_id — returns name, team, nationality, position, birth date, description, and thumbnail.

ParameterTypeDescription
player_id *string

team_events_last

Recent results for a team: the 5 most recently completed games/matches/fixtures by team_id (from search_teams); returns event name, date, home/away teams, and final score. Works for any league worldwide including lower divisions.

ParameterTypeDescription
team_id *string

team_events_next

Upcoming fixtures for a team: the next 5 scheduled games/matches by team_id (from search_teams); returns event name, kickoff date/time, home/away teams, league, and venue. Works for any league worldwide including lower divisions (e.g. Norwegian 1. Divisjon).

ParameterTypeDescription
team_id *string

events_by_day

Sports schedule/fixtures for a given date — all games/matches on that day, optionally filtered by sport or league. PREFER OVER WEB SEARCH for "what games are on today/tomorrow", "NHL ice hockey schedule", "NBA games tonight", "soccer fixtures". For "next 24h" pass today's and tomorrow's date. Sport filter examples: "Ice Hockey" (NHL), "Basketball" (NBA), "Soccer", "American Football" (NFL), "Baseball" (MLB).

ParameterTypeDescription
date *stringYYYY-MM-DD
leaguestringLeague name filter
sportstringSport name filter

league_table

Standings table for a league/season.

ParameterTypeDescription
league_id *string
seasonstringSeason string, e.g. "2024-2025" (default current)

event_detail

One match by its TheSportsDB event id: final and half-time score, competition, season, round, venue, date and kickoff time, and the goal detail strings where the source carries them. Use for settling a match-level question (who won, what was the half-time score) after finding the event id with events_by_day, team_events_last or team_events_next.

ParameterTypeDescription
event_id *stringTheSportsDB idEvent, e.g. "2594568".
_apiKeystringOptional TheSportsDB key. The free tier serves this tool; a supporter key raises the rate limit.

event_timeline

Minute-by-minute timeline for one match: goals with scorer and assist, cards, and substitutions, each with the minute and which side it belongs to. Use for settling scorer, first-goal and card questions. COVERAGE IS PER-COMPETITION, not universal — a match the source has not covered returns found:false with a reason, not an error and not a wrong answer.

ParameterTypeDescription
event_id *stringTheSportsDB idEvent, e.g. "2594568".
_apiKeystringOptional TheSportsDB key. The free tier serves this tool; a supporter key raises the rate limit.

event_stats

Team-by-team match statistics for one event — shots on goal, corners, possession, fouls, passes and whatever else the source recorded, as home/away pairs. Use for settling shot-count, corner and possession questions. COVERAGE IS PER-COMPETITION: a match the source has not covered returns found:false with a reason, not an error.

ParameterTypeDescription
event_id *stringTheSportsDB idEvent, e.g. "2594568".
_apiKeystringOptional TheSportsDB key. The free tier serves this tool; a supporter key raises the rate limit.

event_lineup

Starting eleven and substitutes for one match, per side, with each player's position, squad number and TheSportsDB player id. COVERAGE IS PER-COMPETITION: a match the source has not covered returns found:false with a reason, not an error.

ParameterTypeDescription
event_id *stringTheSportsDB idEvent, e.g. "2594568".
_apiKeystringOptional TheSportsDB key. The free tier serves this tool; a supporter key raises the rate limit.