mcp-thesportsdb
This server has a remotely hosted endpoint. Open its connector listing for connection details, authentication requirements, and setup instructions:
@pipeworx/thesportsdb
TheSportsDB MCP — sports catalog across 50+ leagues: teams, players, events, venues, league tables. Free tier with public key.
Part of Pipeworx — an MCP gateway connecting AI agents to 1857+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.
Tools
list_sports()/list_leagues(sport?, country?)search_teams(query),get_team(team_id),league_teams(league_id)search_players(query)/get_player(player_id)team_events_last(team_id)/team_events_next(team_id)events_by_day(date, sport?, league?)league_table(league_id, season?)
Related MCP server: mcp-sports
Auth
The free public tier uses API key 3 (well-known, no signup required). Pipeworx defaults to this. For higher rate limits / extra endpoints register at https://www.thesportsdb.com/ and BYO via ?_apiKey=<key>.
Data source
https://www.thesportsdb.com/api/v1/json/<apiKey>/
Match detail (event_detail, event_timeline, event_stats, event_lineup)
Four per-match tools for settling questions about a single fixture: the
scoreline and venue (event_detail), goals with scorer/assist/minute plus cards
and substitutions (event_timeline), team-by-team statistics (event_stats),
and the starting eleven plus substitutes (event_lineup). All take a
TheSportsDB event_id — find one with events_by_day, team_events_last or
team_events_next.
They are NOT premium-gated — but the free tier truncates them
Measured 2026-09-12 on the free public key: all four endpoints return real data, so no key is required and none of these tools refuses for want of one.
What the free tier does do is cap each array at 5 rows, silently. On
idEvent 2594568 (Bayern Munich vs Bodø/Glimt, final score 5-0) the timeline
returns 5 rows, the earliest at minute 45, containing 2 goals — every
first-half goal is absent. event_stats returns 5 statistics and does not
include shots on goal, corners or possession. event_lineup returns 5 players.
intHomeScoreHT / intAwayScoreHT come back null.
So for a settlement workload a supporter key matters — for completeness, not
for access. Pass it as _apiKey.
How the tools tell you
event_timeline cross-checks the goals it can see against the event's own final
score. When they disagree it returns complete: false with
goals_in_timeline, goals_in_final_score and a note saying not to settle a
first-scorer or half-time question from it. That is proof of truncation, not a
guess. event_stats and event_lineup have no equivalent invariant, so they
report complete: null when exactly 5 rows come back — which may be a whole
small result or a truncated large one, and from the response alone those are
indistinguishable.
Coverage is per-competition
A match the source has not covered returns found: false with a reason, never
an error and never a wrong answer. The tools distinguish two cases that arrive
identically from upstream (both are a bare null): no_timeline_for_event —
the match exists and is named back to you, the source just has no timeline for
that competition — versus no_data_and_event_unconfirmed, where the event id
could not be confirmed either. For a caller settling a market those are opposite
conclusions: "ask a different source" versus "you have the wrong match".
Quick Start
Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
{
"mcpServers": {
"thesportsdb": {
"url": "https://gateway.pipeworx.io/thesportsdb/mcp"
}
}
}What this endpoint actually serves
tools/list at https://gateway.pipeworx.io/thesportsdb/mcp returns the tools in the table
above plus the shared Pipeworx meta-tools — ask_pipeworx,
discover_tools, search_within, remember/recall and the rest of the
gateway-wide set. So the tool count you see is larger than this table: a
single-pack endpoint currently lists roughly 30 shared tools alongside the
pack's own. The connection's initialize response states its exact scope, and
is the authoritative answer for a given day.
This is deliberate, not multiplexing by accident. The meta-tools are what let a
scoped connection answer a question this pack does not cover — via
ask_pipeworx, which routes across the whole catalog — without you adding a
second MCP server. There is currently no way to mount a pack endpoint without
them; if the extra schemas cost you more context than the routing is worth,
connect to the full gateway once rather than to several pack endpoints.
Or connect to the full Pipeworx gateway to get every pack's tools listed directly, instead of just this one's:
{
"mcpServers": {
"pipeworx": {
"url": "https://gateway.pipeworx.io/mcp"
}
}
}Both URLs reach the same gateway and the same 1857+ data sources. The
only difference is which pack's tools are listed directly; ask_pipeworx
reaches all of them from either one.
No MCP client? Call it over HTTP
This pack takes your own API key (_apiKey) — we don't front one for it, so there's no curl here that would run without it. Inspect any tool: GET https://gateway.pipeworx.io/v1/tools/thesportsdb_list_sports. Find one: POST https://gateway.pipeworx.io/v1/tools/search_packs with {"query":"..."}.
Run it from npm
@pipeworx/mcp-thesportsdb is a local stdio bridge to the Pipeworx gateway: your MCP client
starts it with npx, and it forwards every call to the same
https://gateway.pipeworx.io/thesportsdb/mcp endpoint shown above. It needs network access;
there is no offline mode.
{
"mcpServers": {
"thesportsdb": {
"command": "npx",
"args": ["-y", "@pipeworx/mcp-thesportsdb"]
}
}
}Without a key it calls anonymously, capped at 50 calls a day. A free account
raises that to 200 a day: get a key at https://pipeworx.io/signup and add
"env": { "PIPEWORX_API_KEY": "<your key>" } to the server entry.
The key is sent as a Bearer token, the same way a hosted connection sends it,
so calls are metered and billed exactly as they are there.
It lists only this pack's tools by default. Set PIPEWORX_META_TOOLS=1 to
also list ask_pipeworx and the other gateway-wide tools.
Behind an HTTPS proxy: Node's built-in fetch does not read HTTPS_PROXY by
default. Newer Node releases honour it when NODE_USE_ENV_PROXY=1 is set; check
your Node version's documentation.
Using with ask_pipeworx
Instead of calling tools directly, you can ask questions in plain English — this works on the pack endpoint above as well as on the full gateway:
ask_pipeworx({ question: "your question about Thesportsdb data" })The gateway picks the right tool and fills the arguments automatically.
More
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Sports MCP — wraps TheSportsDB API (free tier, test key 3, no auth required)
Live sports stats and pre-computed analysis for AI assistants across NBA, MLB, NFL, and NHL.
Official TheRundown API documentation search. No live data or authenticated Product API calls.
Football fixtures, standings, and odds intelligence for AI agents.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceProvides access to comprehensive sports data from 5 major leagues (NBA, NFL, MLB, EPL, NHL) including teams, players, games, statistics, standings, injuries, and betting odds through 67+ endpoints. Enables users to query sports information and analytics through natural language.12MIT
- AlicenseNot gradedqualityFmaintenanceWraps TheSportsDB API to enable AI agents to query sports data through natural language.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to access comprehensive sports data including football, basketball, American football, and hockey leagues via 11 tools, with no API key required.MIT
- AlicenseAqualityBmaintenanceEnables AI agents to query live sports betting data including odds, edges, arbitrage opportunities, player/team stats, and reference data using the SportWizzard API.20129 npmMIT