Tennis Analytics MCP
🎾 tennis-mcp
Zero-clone Model Context Protocol (MCP) server for Open Era ATP tennis.
Query 200,105 ATP matches (1968–2026), 7,622 player careers, 113,744 surface-split head-to-heads, 7,663 Match Charting Project shot/rally breakdowns, and curated dominance/drama indices (GSDI, NBI, Race to Greatness, Young Guns) directly inside Claude, Cursor, Antigravity, or VS Code — without cloning the 265 MB data repo.
⚡ Quick Start (Zero Clone)
tennis-mcp runs via uvx (or pip install tennis-mcp) and lazily caches only the Parquet/JSON tables your questions need into ~/.cache/tennis-mcp/.
Claude Desktop / Cursor / Antigravity (mcpServers)
{
"mcpServers": {
"tennis-mcp": {
"command": "uvx",
"args": ["tennis-mcp"]
}
}
}Claude Code (CLI)
claude mcp add tennis-mcp -- uvx tennis-mcpVS Code (.vscode/mcp.json)
{
"servers": {
"tennis-mcp": {
"type": "stdio",
"command": "uvx",
"args": ["tennis-mcp"]
}
}
}pip Install / Offline tml-data Override
If you prefer pip or already cloned sorukumar/tml-data, install from PyPI and optionally point TML_DATA_DIR at your local data directory:
pip install tennis-mcp
TML_DATA_DIR=/path/to/tml-data/data tennis-mcpRelated MCP server: livetennisapi-mcp
🛠 Available MCP Capabilities
15 Tools (Powered by DuckDB + Parquet + Story JSONs)
Category | Tool | What It Queries |
Warehouse |
| Live row counts, date window, charting counts, and licenses |
Players |
| Filter 7,622 ATP careers by name, country IOC code, or Slam champion status |
Players |
| Career W-L, surface splits, Top 10 win%, recent matches, and MCP charting profile |
Rivalries |
| Surface-by-surface H2H breakdown ( |
Matches |
| Parameterized SQL search over |
Shot / Rally |
| 475 players' serve/return, rally length (1–3 / 4–6 / 7–9 / 10+), UF rate, Serve+1, and surface splits |
Shot / Rally |
| Per-match winners, unforced errors, rally distributions across |
Compare |
| Side-by-side comparison of 2–6 players across career stats, charting, and age snapshots |
Indices |
| Grand Slam Dominance Index (231 title runs) |
Indices |
| Nail-Biter Index (687 Grand Slam Finals & Semifinals) |
Indices |
| Age-for-age title & Slam pace: Big 3, Alcaraz, Sinner, Borg, Sampras, McEnroe, Lendl, Agassi |
Indices |
| Fonseca, Mensik, Tien, Jodar benchmarked against Alcaraz & Sinner |
Indices |
| Career age, matches, and years before first Grand Slam title across 59 champions |
Geography |
| Top 100 / Top 10 ATP evolution across 50 years by IOC code or snapshot year |
India |
| Open Era Indian ATP singles milestones & histories |
7 Resources (tennis://*)
tennis://overview,tennis://gsdi/top,tennis://nbi/top,tennis://greatness/summary,tennis://young-guns/summary,tennis://global/timeline,tennis://indian/notable
3 Prompt Templates
scouting_report(player_name)rivalry_breakdown(player1, player2)slam_campaign_audit(player_name, tournament)
💬 Example Questions You Can Ask Your AI
"Compare Jannik Sinner and Carlos Alcaraz on 1st-serve won%, unforced error rate, and Clay charting metrics."
"Show me Novak Djokovic vs Rafael Nadal head-to-head by surface, plus their highest Nail-Biter Index Slam matches."
"Which players won a Grand Slam with the fewest tour matches before their first major?"
"How does Joao Fonseca at age 18–20 track against Carlos Alcaraz in ATP wins and Top 50 wins?"
"List the top 5 Grass-court Grand Slam comebacks since 2000 sorted by comeback score and duration."
🏗 Architecture
Claude / Cursor / Antigravity / VS Code
│ (stdio MCP)
▼
tennis-mcp (Python + FastMCP/MCPServer + DuckDB)
│
├── TML_DATA_DIR set? ──▶ Local tml-data/data/*.parquet + *.json
│
└── Otherwise ──────────▶ Lazy cache (~/.cache/tennis-mcp/, 7-day TTL)
fetched via HTTPS from sorukumar/tml-data📄 License & Data Attribution
Code: MIT License (LICENSE)
ATP Match & Career Warehouse (
sorukumar/tml-data): Built on Tennismylife / TML-Database and Jeff Sackmann's ATP archive (MIT).Match Charting Project Tables (
mcp_*.parquet): Derived from Jeff Sackmann's Match Charting Project, licensed under CC BY-NC-SA 4.0 (attribution required; non-commercial share-alike for charting tables).
Available Tools
15 toolscompare_playersARead-onlyIdempotent
Compare 2 to 6 ATP players side by side across career stats, charting styles, and optional age-for-age milestone trajectories.
Inputs: players (required), age. Returns: object
get_charting_profileCRead-onlyIdempotent
Get Jeff Sackmann Match Charting Project shot/rally profiles (1st/2nd serve win%, return%, rally length, UF error rate, Serve+1, BP save delta) across 475 players.
Inputs: limit, sort_by, surface, min_matches, +1 more. Returns: object
get_country_profileBRead-onlyIdempotent
Explore global Top 100 and Top 10 ATP representation trends (1975-2025) by IOC country code or snapshot year.
Inputs: year, country_code. Returns: object
get_dataset_overviewARead-onlyIdempotent
Get live row counts, date coverage (1968-2026), charting coverage, and license attribution.
Inputs: no named parameters. Returns: object
get_greatness_raceBRead-onlyIdempotent
Compare Big 3, Alcaraz, Sinner, Borg, Sampras, McEnroe, Lendl, and Agassi on titles, Slams, and Masters at any age.
Inputs: age, player. Returns: object
get_gs_breakthroughBRead-onlyIdempotent
Analyze how quickly Open Era Grand Slam champions broke through to their first major title.
Inputs: limit, player. Returns: object
get_gsdi_rankingsCRead-onlyIdempotent
Rank the most mathematically dominant Grand Slam title campaigns using the Grand Slam Dominance Index (GSDI).
Inputs: limit, player, tournament. Returns: object
get_head_to_headBRead-onlyIdempotent
Get overall and surface-by-surface head-to-head record plus chronological match results between two ATP players.
Inputs: player1 (required), player2 (required), match_limit, include_matches. Returns: object
get_indian_tennis_statsBRead-onlyIdempotent
Query India's Open Era ATP singles history and milestone achievements.
Inputs: player. Returns: object
get_match_charting_statsBRead-onlyIdempotent
Inspect point-by-point charted match breakdowns (aces, winners, unforced errors, rally length distribution, TML link) from 7,663 MCP matches.
Inputs: player1 (required), limit, player2, tournament. Returns: object
get_nail_bitersCRead-onlyIdempotent
Find the highest-drama Grand Slam Finals & Semifinals using the Nail-Biter Index (NBI).
Inputs: tag, limit, player, tournament. Returns: object
get_player_profileBRead-onlyIdempotent
Get a player's full ATP career stats, surface splits, top-10 win rates, Match Charting Project profile (if charted), and recent matches.
Inputs: player_name (required). Returns: object
get_young_guns_raceCRead-onlyIdempotent
Track ATP next-wave talents (Joao Fonseca, Jakub Mensik, Learner Tien, Rafael Jodar) against Alcaraz and Sinner age benchmarks.
Inputs: age, player. Returns: object
search_matchesBRead-onlyIdempotent
Search 200,105 ATP matches by player, opponent, tournament, surface (Hard/Clay/Grass/Carpet), round, year range, Grand Slam filter, or comeback score.
Inputs: limit, player, sort_by, surface, +7 more. Returns: object
search_playersARead-onlyIdempotent
Search 7,622 Open Era ATP players by name fragment, 3-letter country code (e.g. ESP, ITA, IND), or Grand Slam status.
Inputs: limit, query, country, min_matches, +1 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Most tools have clearly distinct purposes: search vs. profile vs. head-to-head vs. match charting are well separated. Some overlap exists among analytical tools such as compare_players, get_greatness_race, and get_young_guns_race, and between get_indian_tennis_stats and get_country_profile, but descriptions make the boundaries reasonably clear.
Tool names follow a consistent snake_case verb_noun pattern, primarily get_* or search_* with clear resource-oriented nouns. Minor abbreviations like gsdi and gs are readable and do not disrupt the convention.
The server has 15 tools, which fits the upper end of a well-scoped analytics surface. Each tool maps to a distinct query type, ranking, or comparison rather than duplicating basic operations.
The surface covers core tennis analytics workflows: dataset overview, player search and profiles, match search, head-to-head, charting, country trends, and Grand Slam analyses. Minor gaps exist around tournament-centric queries, broader ranking timelines, and non-charting match detail retrieval, but agents can mostly work around them.
Maintenance
Related MCP Connectors
ATP and WTA tennis since 2007: sets, draws, rankings, head to head, surface Elo, sportsbook lines.
Query professional padel tournament data, player stats, and live match results
Hosted MotherDuck MCP server: explore data, run DuckDB SQL, and build Dives and Flights.
Live sports stats and pre-computed analysis for AI assistants across NBA, MLB, NFL, and NHL.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceAn MCP server that enables natural language querying of over 10 million ball-by-ball cricket deliveries stored in a local DuckDB database. It provides 26 tools for analyzing player matchups, situational stats, and historical records across all major cricket formats and tournaments.3-
- AlicenseAqualityBmaintenanceReal-time tennis data for ATP, WTA, Challenger and ITF: live scores, player rankings, match-winner odds, and model win-probability. 12 read-only tools; a tier-gated endpoint returns a plain-English explanation of which plan it needs rather than a bare 403. Requires a paid API key.25224 npm135MIT
- AlicenseAqualityCmaintenanceA minimal MCP server that provides a persistent DuckDB SQL engine to AI assistants, enabling natural-language querying of CSVs, Parquet, and cloud data with 12 tools and optional read-only mode.12MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to answer tennis tactical questions using shot-by-shot charted match data, producing game plans, serve and return tendencies, scouting reports, match forecasts, and explanations of why a match turned. Exposes read-only tools for player reports, head-to-head game plans, match breakdowns, and tactical leaderboards, each with confidence margins and links to full pages.MIT