Skip to main content
Glama
Tennis MCP Server (ATP, WTA, ITF & Grand Slams)

Tennis MCP Server (ATP, WTA, ITF & Grand Slams)

by Cito-GG
README.md
# Tennis MCP Server (ATP, WTA, Challenger, ITF & Grand Slams)

Open-source [Model Context Protocol (MCP)](https://modelcontextprotocol.io) server for professional **Tennis** data powered by [Tennis API](https://tennisapi.dev) and [Cito API](https://citoapi.com).

Provides **23 curated, read-only tennis tools** covering **ATP, WTA, ATP Challenger, ITF World Tennis Tour (men's & women's), and all four Grand Slams** (Australian Open, Roland Garros, Wimbledon, US Open).

- **Hosted Streamable HTTP MCP:** `https://api.citoapi.com/mcp`
- **Tennis Developer Docs:** [tennisapi.dev](https://tennisapi.dev) · [citoapi.com/docs](https://citoapi.com/docs)
- **Get a Free API Key:** [citoapi.com/dashboard](https://citoapi.com/dashboard)

---

## Tennis MCP Tools (23)

| Tool | Title | Description |
| --- | --- | --- |
| `tennis_live_matches` | Tennis Live Matches (ATP, WTA, Challenger & ITF) | Live matches on court with set scores, current game score, server indicator, surface, and round |
| `tennis_upcoming_matches` | Tennis Upcoming Matches & Order of Play | Upcoming scheduled ATP, WTA, Challenger, and ITF fixtures across a lookahead window |
| `tennis_schedule` | Tennis Daily Schedule & Results | Full single-day order of play and completed results across ATP, WTA, Challenger, and ITF |
| `tennis_player_profile` | Tennis Player Profile & Surface Stats | Player ranking, career & seasonal win-loss, hard/clay/grass splits, and recent match log |
| `tennis_rankings` | ATP & WTA Tennis Rankings | Official ATP and WTA singles world rankings with points and movement |
| `tennis_head_to_head` | Tennis Head-to-Head (ATP & WTA Rivalry) | Complete two-player H2H tally, surface breakdown, and past match scores |
| `tournaments` | Tennis Tournaments Catalog | Searchable ATP, WTA, Grand Slam, Challenger, and ITF tournament directory |
| `player_stats` | Tennis Player Career & Surface Stats | Serving, return, break-point, and surface performance splits |
| `player_matches` | Tennis Player Match History | Paginated match log filterable by season, surface, and tournament |
| `player_rankings_history` | Tennis Player Rankings History | Historical week-by-week ATP/WTA ranking trajectory and career high |
| `leaderboard_aces` | Tennis Aces Leaderboard | Tour leaders in aces served |
| `leaderboard_break_points_saved` | Tennis Break Points Saved Leaderboard | Tour leaders in break-point save percentage |
| `leaderboard_first_serve_won` | Tennis First Serve Won Leaderboard | Tour leaders in first-serve points won percentage |
| `leaderboard_tiebreak_win_pct` | Tennis Tiebreak Win % Leaderboard | Tour leaders in tiebreak win rate |
| `leaderboard_break_conversion` | Tennis Break Point Conversion Leaderboard | Tour leaders in return break-point conversion |
| `leaderboard_return_games_won` | Tennis Return Games Won Leaderboard | Tour leaders in return games won percentage |
| `leaderboard_deciding_set_record` | Tennis Deciding Set Leaderboard | Best 3rd/5th deciding-set records on tour |
| `leaderboard_comeback_wins` | Tennis Comeback Wins Leaderboard | Wins after dropping the opening set |
| `leaderboard_finals_record` | Tennis Finals Record Leaderboard | Tour-level finals win-loss leaders |
| `resolve_entity` | Resolve Entity | Resolve player or tournament names (e.g. "Carlos Alcaraz", "Jannik Sinner", "Wimbledon") to canonical IDs |
| `search_entities` | Search Entities | Paginated search across tennis players and tournaments |
| `list_capabilities` | List Capabilities | Offline-ready catalog of tennis tools and builder workflows |
| `api_health` | API Health | Verify API key validity, plan tier, and rate limits |

---

## Quick Start

### Option 1: Hosted Streamable HTTP (Zero Install)

Point Claude, Cursor, Windsurf, or any Streamable HTTP MCP client to:
- **URL:** `https://api.citoapi.com/mcp`
- **Header:** `x-api-key: cito_your_key_here`

### Option 2: Run from Source / Docker

```bash
git clone https://github.com/Cito-GG/tennis-mcp.git
cd tennis-mcp
npm install && npm run build
```

Add to `claude_desktop_config.json` or `.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "tennis": {
      "command": "node",
      "args": ["/absolute/path/to/tennis-mcp/dist/index.js"],
      "env": {
        "CITO_API_KEY": "cito_your_key_here"
      }
    }
  }
}
```

---

## Environment Variables

| Variable | Required at Startup | Default | Description |
| --- | --- | --- | --- |
| `CITO_API_KEY` | Optional at startup (required for live API queries) | `""` | Cito API key from [citoapi.com/dashboard](https://citoapi.com/dashboard). When unset, the server starts cleanly, completes MCP `initialize`, lists all 23 tools, and serves `list_capabilities` offline. |
| `CITO_API_BASE` | Optional | `https://api.citoapi.com/api/v1` | API base URL. |

---

## License

MIT License. See [LICENSE](LICENSE).