# Tennis Analytics MCP

> Tennis Analytics MCP is an open-source MCP server for analytics and data. ATP tennis data since 1968 with head-to-heads, shot charting and dominance indices. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/sorukumar/tennis-mcp
- **MCP Registry name:** io.github.sorukumar/tennis-mcp
- **Categories:** [analytics and data](https://ai-powered.com/categories/analytics-and-data), [sports data](https://ai-powered.com/categories/sports-data)
- **Listing updated:** 2026-11-23

## About

The data behind this server covers 200,105 Open Era ATP matches, 7,622 player careers, 113,744 surface-split head-to-head pairs and 7,663 charted matches from the Match Charting Project. It also serves curated indices: a Grand Slam Dominance Index (231 title runs), a Nail-Biter Index (687 Slam finals and semifinals), plus Race to Greatness and Young Guns comparisons.

Queries run through DuckDB over Parquet and JSON files. There is no need to clone the 265 MB data repo: the server fetches only the tables a question needs into `~/.cache/tennis-mcp/` with a 7-day cache, or reads a local copy if `TML_DATA_DIR` is set.

Seven `tennis://` resources and three prompts (scouting report, rivalry breakdown, Slam campaign audit) are included. Code is MIT-licensed; the charting tables derive from a CC BY-NC-SA 4.0 source, so non-commercial share-alike applies to them.

## Features

- **Match search:** Parameterized search over 200,105 ATP matches.
- **Head-to-head by surface:** Surface-by-surface rivalry records with match logs.
- **Shot and rally stats:** Serve, return and rally-length breakdowns from charted matches.
- **Dominance indices:** Grand Slam Dominance and Nail-Biter rankings.
- **Career pace races:** Compares players' title and Slam pace by age.
- **Zero-clone caching:** Downloads only needed tables and caches them locally.

## Good for

- Prepare a scouting report on a player
- Compare two players across career and charting stats
- Rank the closest Grand Slam finals
- Track a young player against past champions

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add tennis-mcp -- uvx tennis-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "tennis-mcp": {
      "command": "uvx",
      "args": [
        "tennis-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "tennis-mcp": {
      "command": "uvx",
      "args": [
        "tennis-mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "tennis-mcp": {
      "command": "uvx",
      "args": [
        "tennis-mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "tennis-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "tennis-mcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add tennis-mcp -- uvx tennis-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.tennis-mcp]
command = "uvx"
args = ["tennis-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "tennis-mcp": {
      "command": "uvx",
      "args": [
        "tennis-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user tennis-mcp uvx -- tennis-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "tennis-mcp": {
      "command": "uvx",
      "args": [
        "tennis-mcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "tennis-mcp": {
      "command": "uvx",
      "args": [
        "tennis-mcp"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "tennis-mcp": {
      "command": "uvx",
      "args": [
        "tennis-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "tennis-mcp": {
      "command": "uvx",
      "args": [
        "tennis-mcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "tennis-mcp": {
      "command": "uvx",
      "args": [
        "tennis-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "tennis-mcp": {
      "command": "uvx",
      "args": [
        "tennis-mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "tennis-mcp": {
      "command": "uvx",
      "args": [
        "tennis-mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "tennis-mcp": {
      "command": "uvx",
      "args": [
        "tennis-mcp"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 14 of 15 tools read data; 1 name doesn't say. From the server's own tool labels and tool names; not verified by us.

- `get_dataset_overview` (name suggests: reads): Row counts, date window and licences.
- `search_players` (name suggests: reads): Filter ATP careers by name, country or Slam status.
- `get_player_profile` (name suggests: reads): Career record, surface splits and recent matches.
- `get_head_to_head` (name suggests: reads): Surface-by-surface head-to-head.
- `search_matches` (name suggests: reads): Search enriched ATP matches.
- `get_charting_profile` (name suggests: reads): Serve, return and rally profile of a player.
- `get_match_charting_stats` (name suggests: reads): Per-match charted statistics.
- `compare_players`: Side-by-side comparison of 2-6 players.
- `get_gsdi_rankings` (name suggests: reads): Grand Slam Dominance Index rankings.
- `get_nail_biters` (name suggests: reads): Nail-Biter Index rankings.
- `get_greatness_race` (name suggests: reads): Age-for-age title and Slam pace.
- `get_young_guns_race` (name suggests: reads): Young players benchmarked against Alcaraz and Sinner.
- `get_gs_breakthrough` (name suggests: reads): Age and matches before a first Slam title.
- `get_country_profile` (name suggests: reads): Top 100 and Top 10 evolution by country.
- `get_indian_tennis_stats` (name suggests: reads): Indian ATP singles milestones.

## FAQ

### Do I need to download the dataset?

No. Tables are fetched on demand and cached for 7 days, or you can point `TML_DATA_DIR` at a local copy.

### How much data is there?

200,105 ATP matches from 1968 to 2026 and 7,622 player careers.

### What licences apply?

Code is MIT. Charting tables are CC BY-NC-SA 4.0, so non-commercial share-alike.

### Which clients does Tennis Analytics MCP suit?

The README lists Claude Desktop, Cursor, Antigravity, Claude Code and VS Code.

### Is Tennis Analytics MCP free?

Yes. Tennis Analytics MCP is open source, so you can use and self-host it for free.

### How do I add Tennis Analytics MCP to Claude Code?

Run this command in your terminal: claude mcp add tennis-mcp -- uvx tennis-mcp

### What are the best alternatives to Tennis Analytics MCP?

The closest alternatives to Tennis Analytics MCP are Agent-Native Analytics, dashboard-icons, Google Ads + Meta Ads + SEO/GEO MCP, Tapetide - Indian Stock Market MCP and Pitot.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Agent-Native Analytics](https://ai-powered.com/mcp/agent-native-analytics): Agent-Native Analytics is an open-source MCP server for analytics and data.
- [dashboard-icons](https://ai-powered.com/mcp/dashboard-icons): dashboard-icons is an open-source MCP server for analytics and data.
- [Google Ads + Meta Ads + SEO/GEO MCP](https://ai-powered.com/mcp/google-ads-meta-ads-seo-geo-mcp): Google Ads + Meta Ads + SEO/GEO MCP is a freemium MCP server for marketing and seo.
- [Tapetide - Indian Stock Market MCP](https://ai-powered.com/mcp/tapetide-indian-stock-market-mcp): Tapetide - Indian Stock Market MCP is a freemium MCP server for finance and payments.
- [Pitot](https://ai-powered.com/mcp/pitot): Pitot is an open-source MCP server for cloud and infrastructure.
- [World Monitor](https://ai-powered.com/mcp/world-monitor): World Monitor is a freemium MCP server for analytics and data.
- [ELBI](https://ai-powered.com/mcp/elbi): ELBI is an open-source MCP server for analytics and data.
- [MCP Observatory: one read only walk over every https endpoint in the official registry](https://ai-powered.com/mcp/mcp-observatory-one-read-only-walk-over-every-https-endpoint): MCP Observatory: one read only walk over every https endpoint in the official registry is an MCP server for analytics and data.

---
Source: https://ai-powered.com/mcp/tennis-analytics-mcp
