mcp-tennis
mcp-tennis 🎾
An MCP server for professional tennis data: player profiles, head-to-heads, recent matches, and ATP rankings. Ask your AI assistant things like:
"What's the head-to-head between Sinner and Alcaraz?"
"Show me Zverev's last 10 matches."
"Who are the top 20 men's players right now?"
"Who are Spain's best players?"
The data comes from a pipeline that rebuilds the database daily. The server keeps a local copy and checks for a newer one each time it starts.
Install
You need uv. Nothing else needs installing or cloning.
Claude Code
claude mcp add tennis -- uvx mcp-tennisClaude Desktop and other MCP clients: add this to your MCP config (for Claude Desktop, claude_desktop_config.json):
{
"mcpServers": {
"tennis": {
"command": "uvx",
"args": ["mcp-tennis"]
}
}
}On first start the server downloads the database (about 110 MB). Tools ask you to retry while that's in progress. After that, it only downloads again when a newer version is published.
Related MCP server: nba-mcp
Tools
Tool | What it does |
| Find a player's id by full name. Most other tools take this id. |
| Birthdate, height, nationality, playing hand, backhand, coaches, and more. |
| Career head-to-head record between two players (ATP and WTA). |
| A player's most recent matches, optionally up to a given date (ATP only). |
| A player's current ATP ranking and points. |
| A player's ATP ranking on a given date. |
| The ATP rankings from any starting rank, now or at a past date. |
| A country's highest-ranked players, by IOC code (e.g. |
Every result includes last_updated and latest_tournament_week, so your assistant can tell you how current the data is. Matches are dated by their tournament's start week, so events still in progress may have partial results.
Data coverage
Matches: ATP from 1967 and WTA from 1990, through the latest completed tournament week.
Rankings: ATP singles only, from 2026-08-31 onwards. Earlier dates aren't available yet.
Where the data is stored
The database is kept in your user cache folder:
macOS:
~/Library/Caches/mcp-tennis/Linux:
~/.cache/mcp-tennis/Windows:
%LOCALAPPDATA%\mcp-tennis\mcp-tennis\Cache\
Delete it at any time. The server downloads it again on the next start.
Data sources
Match and player data: TennisMyLife
ATP rankings: the ATP's published rankings
Development
git clone https://github.com/mileslander/tennis-mcp
cd tennis-mcp
uv sync
uv run pytestTests run against a small fixture database built from tests/data/test_db.sql, so they don't need the real data or a network connection. To run the server from source, use uv run mcp-tennis.
License
MIT. See LICENSE.
Available Tools
8 toolsbest_national_playersA
Look up a country's best n players, default of 5 with 1 <= n <= 50. Uses standard three letter IOC abbreviations for countries, e.g. (GER, ARG). Returns each player's name, player id, ranking, age, and birthplace (if available)
Inputs: country (required), number_of_players.
current_rankingB
Find the current ranking of a player by player id (get a player's id from search_player).
Inputs: pid (required).
get_player_profileA
Look up a tennis player's profile by player id (get a player's id from search_player).
Inputs: pid (required).
head_to_headA
Career head-to-head record between two players (ATP and WTA). Pass each player's id separately. (get a player's id from search_player)
Inputs: p1_id (required), p2_id (required).
ranking_at_dateA
Find the ranking of a player by player id at a specified date (get a player's id from search_player). Accepts dates of the form YYYY-MM-DD. Returns pid, name, rank, ranking points, date, and data freshness.
Inputs: pid (required), date (required).
recent_matchesA
Look ups recent matches on or before date (YYYY-MM-DD) of specified player by player id (get a player's id from search_player). Specify number of matches and ending date. Matches are ordered newest first. Defaults to the most recent matches; capped at 100. Returns tournament name, tournament date, round, winner name, winner seed, winner rank, loser name, loser seed, loser rank, score, minutes for each match. Currently only works for ATP Matches.
Inputs: pid (required), num_matches (required), date.
search_playerA
Look up a tennis player's player id by full name, e.g. 'Andy Roddick'.
Returns every player with that name; use the pid with the other tools.
Inputs: name (required).
top_n_playersA
Look up the top num_players players from specified starting ranking at specified date (YYYY-MM-DD). Defaults to start rank of 1 and present rankings. Capped at 100 players. Returns name, rank, points, date, nationality, age for each player.
Inputs: num_players (required), date, start_ranking.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool targets a distinct query: name→id lookup (search_player), profile by id, head-to-head, country leaders, current vs. historical ranking, top-N list, and recent matches. The closest pair, current_ranking and ranking_at_date, is clearly separated by 'current' vs. 'at a specified date'. No two tools appear to do the same thing.
All names are lowercase snake_case and readable, with consistent verb_noun for the action-style tools (search_player, get_player_profile, best_national_players, top_n_players). Minor deviation: several tools use noun-phrase names (head_to_head, current_ranking, ranking_at_date, recent_matches), but the style is still predictable.
Eight tools is well-scoped for a tennis data server, and each one maps to a distinct query type (search, profile, H2H, country leaders, rankings, matches). No obvious redundancy or filler.
The surface covers player discovery, profiles, rankings (current and historical), top-N and country leaderboards, H2H, and match history — enough for most agent workflows. Gaps remain: recent_matches is ATP-only, and there is no tournament/draw or upcoming-schedule data.
Maintenance
Related MCP Connectors
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
MCP server for querying and analyzing data from ad platforms, analytics tools, and spreadsheets
MCP server providing access to the Scorecard API to evaluate and optimize LLM systems.
MCP server for VC pitch-deck scoring, thesis-fit matching, and deal-flow management.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server for fetching cricket data from Cricbuzz, including player statistics, live match scores, upcoming schedules, and the latest news.914MIT
- AlicenseAqualityDmaintenanceMCP server for NBA live data and stats, providing read-only tools to query live scores, box scores, player info, standings, and more from NBA.com.158 npm1MIT
- FlicenseNot gradedqualityDmaintenanceMCP server exposing ProCyclingStats teams, riders, and races data by scraping site pages, enabling custom rankings and historical result analysis.-
- AlicenseNot gradedqualityDmaintenanceMCP server for Valorant esports analytics that exposes structured metrics and database query tools, enabling AI-assisted match analysis, player profiling, scouting reports, and coaching insights.Apache 2.0