Skip to main content

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

Tool What it does
search_player Find a player's id by full name. Most other tools take this id.
get_player_profile Birthdate, height, nationality, playing hand, backhand, coaches, and more.
head_to_head Career head-to-head record between two players (ATP and WTA).
recent_matches A player's most recent matches, optionally up to a given date (ATP only).
current_ranking A player's current ATP ranking and points.
ranking_at_date A player's ATP ranking on a given date.
top_n_players The ATP rankings from any starting rank, now or at a past date.
best_national_players A 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.

Metadata

Release files for mcp-tennis 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-tennis 0.1.0
File Size Uploaded Provenance Actions
mcp_tennis-0.1.0.tar.gz 69.1 kB Without provenance Details for mcp_tennis-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mcp-tennis 0.1.0
File Interpreter ABI Platform Actions
mcp_tennis-0.1.0-py3-none-any.whl Python 3 none any Details for mcp_tennis-0.1.0-py3-none-any.whl

Total release size: 77.1 kB

Release files / mcp_tennis-0.1.0.tar.gz

Download URL mcp_tennis-0.1.0.tar.gz
Size 69.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b3d85fb25690c0b41e805f1180116c33ee9bdfe8c2aacf4360f201faab1f26be
BLAKE2b-256 checksum
How to use checksums
5f5c22e957007435bb053e9be8e0cf9b99063bb6a6ccc1bc95e6d541290b4c9c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.12 {"installer":{"name":"uv","version":"0.13.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / mcp_tennis-0.1.0-py3-none-any.whl

Download URL mcp_tennis-0.1.0-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9c9b7d13b752e2abc178c5e64aef547a8719752d26f60740d2eae9a6258e1b8e
BLAKE2b-256 checksum
How to use checksums
df051d657292e7e34e30bb82d527a572f459f06078f54c282c9cb79559bcd0ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.12 {"installer":{"name":"uv","version":"0.13.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for mcp-tennis 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page