Entertainment
Data source: TheSportsDB (thesportsdb.com)
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"}}}'
REST API
API Root
https://context.gnist.ai/rest/thesportsdb/
8 endpoints available:
GET /rest/thesportsdb/search_teamsGET /rest/thesportsdb/get_teamGET /rest/thesportsdb/search_playersGET /rest/thesportsdb/get_league_tableGET /rest/thesportsdb/get_events_by_dateGET /rest/thesportsdb/get_last_eventsGET /rest/thesportsdb/get_next_eventsGET /rest/thesportsdb/report_feedback
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())
Command Line
Command
gc thesportsdb
CLI documentation will be available when the GnistAI SDK is published.
Install
pip install gnistai
Available Tools (8)
search_teamsSearch for sports teams by name across all sports.
| Parameter | Type | Required | Description |
|---|---|---|---|
team_name | string | required | Team name to search for (e.g. 'Arsenal', 'Barcelona', 'Lakers'). |
get_teamGet detailed information for a specific team by its ID.
| Parameter | Type | Required | Description |
|---|---|---|---|
team_id | string | required | Numeric team ID from TheSportsDB (e.g. '133604' for Arsenal). |
search_playersSearch for players by team name and/or player name.
| Parameter | Type | Required | Description |
|---|---|---|---|
team_name | any | optional | Team name to filter players by (e.g. 'Arsenal'). |
player_name | any | optional | Player name to search for (e.g. 'Messi', 'LeBron'). |
get_league_tableGet league standings/table for a given league and season.
| Parameter | Type | Required | Description |
|---|---|---|---|
league_id | string | required | Numeric league ID (e.g. '4328' for English Premier League). |
season | string | required | Season in YYYY or YYYY-YYYY format (e.g. '2024-2025'). |
get_events_by_dateGet sporting events scheduled for a specific date.
| Parameter | Type | Required | Description |
|---|---|---|---|
date | string | required | Date in YYYY-MM-DD format (e.g. '2025-03-15'). |
sport | any | optional | Sport filter (e.g. 'Soccer', 'Basketball', 'Ice Hockey'). Omit for all sports. |
get_last_eventsGet the last 5 completed events for a team.
| Parameter | Type | Required | Description |
|---|---|---|---|
team_id | string | required | Numeric team ID (e.g. '133604' for Arsenal). Use search_teams to find it. |
get_next_eventsGet the next 5 upcoming events for a team.
| Parameter | Type | Required | Description |
|---|---|---|---|
team_id | string | required | Numeric team ID (e.g. '133604' for Arsenal). Use search_teams to find it. |
report_feedbackReport a bug, feature request, or general feedback for this data source.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |