GnistAI GnistAI
Log in

TheSportsDB (Sports Data)

Sports data — leagues, teams, players, events, and standings from TheSportsDB.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 8 tools tools 8 8 Entertainment

Data source: TheSportsDB (thesportsdb.com)

MCP MCP Protocol

Endpoint https://context.gnist.ai/mcp/thesportsdb/
claude_desktop_config.json
{
  "mcpServers": {
    "gnist-thesportsdb": {
      "url": "https://context.gnist.ai/mcp/thesportsdb/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
Shell
curl -X POST "https://context.gnist.ai/mcp/thesportsdb/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "search_teams", "arguments": {"team_name": "example"}}}'

API REST API

API Root https://context.gnist.ai/rest/thesportsdb/

8 endpoints available:

Shell
curl "https://context.gnist.ai/rest/thesportsdb/search_teams?team_name=example" \
  -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx

resp = httpx.get(
    "https://context.gnist.ai/rest/thesportsdb/search_teams",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    params={
        "team_name": "example"
},
)
print(resp.json())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc thesportsdb

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (8)

search_teams
Search for sports teams by name across all sports.
ParameterTypeRequiredDescription
team_namestringrequiredTeam name to search for (e.g. 'Arsenal', 'Barcelona', 'Lakers').
get_team
Get detailed information for a specific team by its ID.
ParameterTypeRequiredDescription
team_idstringrequiredNumeric team ID from TheSportsDB (e.g. '133604' for Arsenal).
search_players
Search for players by team name and/or player name.
ParameterTypeRequiredDescription
team_nameanyoptionalTeam name to filter players by (e.g. 'Arsenal').
player_nameanyoptionalPlayer name to search for (e.g. 'Messi', 'LeBron').
get_league_table
Get league standings/table for a given league and season.
ParameterTypeRequiredDescription
league_idstringrequiredNumeric league ID (e.g. '4328' for English Premier League).
seasonstringrequiredSeason in YYYY or YYYY-YYYY format (e.g. '2024-2025').
get_events_by_date
Get sporting events scheduled for a specific date.
ParameterTypeRequiredDescription
datestringrequiredDate in YYYY-MM-DD format (e.g. '2025-03-15').
sportanyoptionalSport filter (e.g. 'Soccer', 'Basketball', 'Ice Hockey'). Omit for all sports.
get_last_events
Get the last 5 completed events for a team.
ParameterTypeRequiredDescription
team_idstringrequiredNumeric team ID (e.g. '133604' for Arsenal). Use search_teams to find it.
get_next_events
Get the next 5 upcoming events for a team.
ParameterTypeRequiredDescription
team_idstringrequiredNumeric team ID (e.g. '133604' for Arsenal). Use search_teams to find it.
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related