Repository avatar
Other Tools
v0.1.0
active

tennis-mcp

io.github.mileslander/tennis-mcp

ATP and WTA player profiles, head-to-heads, recent matches, and ATP rankings.

Documentation

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-tennis

Claude 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.

Tools

ToolWhat it does
search_playerFind a player's id by full name. Most other tools take this id.
get_player_profileBirthdate, height, nationality, playing hand, backhand, coaches, and more.
head_to_headCareer head-to-head record between two players (ATP and WTA).
recent_matchesA player's most recent matches, optionally up to a given date (ATP only).
current_rankingA player's current ATP ranking and points.
ranking_at_dateA player's ATP ranking on a given date.
top_n_playersThe ATP rankings from any starting rank, now or at a past date.
best_national_playersA country's highest-ranked players, by IOC code (e.g. ESP, USA).

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 pytest

Tests 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.

PYPI
mcp-tennis
Install Command
pip install mcp-tennis
Runtime: uvx