MCP server

Tennis MCP Server for Claude, Cursor and ChatGPT

The tennis MCP server is a hosted, read-only connector at https://mcp.sportsdatahq.com/mcp/tennis. It gives Claude, ChatGPT and Cursor 15 tools: ATP and WTA singles results with every set score, draws, weekly rankings, head to head, surface splits and Elo ratings since 2007. A free key brings 1,000 credits a month.

What your agent can do with it

Tennis is a sport of surfaces, rounds and streaks, and most questions about it are really filters. Think of a player's clay record, a record against the top ten, or the last five meetings and the surface of each. This server answers those with filters on the server, so your agent asks once and gets rows rather than pulling a career and counting.

The base layer is results. ATP and WTA singles main draws run from 2007 and qualifying from 2022. Every match carries both players, the seeds, the round, the court, the surface and the full score with tiebreak points, written winner first, such as 6-7(7) 7-6(2) 6-3 6-4, where the bracket is the loser's tiebreak points. get_tournament returns a draw and every result round by round. get_matches returns a day's results or every final of a season. get_match goes deep on one match: every set, seeds, and both players' ratings before and after.

Then come the player tools. get_head_to_head returns two players' record against each other split by surface and in finals, with every meeting. get_surface_splits returns wins, sets, games, tiebreaks and deciding sets on hard, clay and grass, for a season or by season. get_player_stats counts season numbers from the scores, by round and against the top ten. get_player profiles one player with bio, ranking, ratings by surface, career record and titles, and get_player_matches filters a player's matches by season, surface, opponent, tournament or draw.

Two kinds of ranking sit side by side. get_rankings returns the weekly official lists, the top 100 to 150 most weeks since 2007, or one player's ranking history. get_ratings returns our Elo ratings from results, overall or on one surface, so your agent can compare the official list with a rating that moves after every match. The WTA works on every tool through league: "wta".

Odds are returned as information: sportsbook moneylines for a match or a whole tournament, with the games handicap and total where posted. You can connect to either server. The SportsDataHQ route, https://mcp.sportsdatahq.com/mcp/tennis, takes the cross-sport key and gives 1,000 free credits a month. AcesAPI's own server, https://mcp.acesapi.com/mcp, takes a tennis-only key and serves the same tool names.

Connect it to your client

You need one thing: a free SportsDataHQ key from app.sportsdatahq.com, with 1,000 credits a month across every sport. (AcesAPI's own server, https://mcp.acesapi.com/mcp, takes a AcesAPI key instead and uses the same config shapes.) Claude and ChatGPT connectors sign you in with OAuth the first time a tool runs, so no key ever sits in a chat. Command-line and editor clients send the key in an x-api-key header instead. Connecting and listing tools cost nothing; only a data call spends credits.

Claude Code

claude mcp add --transport http sportsdatahq-tennis https://mcp.sportsdatahq.com/mcp/tennis --header "x-api-key: YOUR_API_KEY"

Run /mcp inside Claude Code to confirm the server shows as connected. If you leave the header off, /mcp walks you through an OAuth sign-in instead.

Claude.ai and Claude Desktop

Open Customize, then Connectors (older versions: Settings, Connectors), choose Add custom connector, name it sportsdatahq-tennis and paste https://mcp.sportsdatahq.com/mcp/tennis. Sign in the first time a tool runs and press Allow. On Team and Enterprise plans an owner adds it under Organization settings, Connectors, and members then press Connect. The local Claude Desktop config file starts programs rather than URLs, so it goes through the mcp-remote bridge:

{
  "mcpServers": {
    "sportsdatahq-tennis": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.sportsdatahq.com/mcp/tennis", "--header", "x-api-key:YOUR_API_KEY"]
    }
  }
}

Cursor

Paste this into ~/.cursor/mcp.json:

{
  "mcpServers": {
    "sportsdatahq-tennis": {
      "url": "https://mcp.sportsdatahq.com/mcp/tennis",
      "headers": { "x-api-key": "YOUR_API_KEY" }
    }
  }
}

VS Code

Add this to .vscode/mcp.json:

{
  "servers": {
    "sportsdatahq-tennis": {
      "type": "http",
      "url": "https://mcp.sportsdatahq.com/mcp/tennis",
      "headers": { "x-api-key": "YOUR_API_KEY" }
    }
  }
}

ChatGPT

ChatGPT adds outside MCP servers through developer mode, which OpenAI currently offers on workspace plans (Business, Enterprise and Edu) and which may need an admin to switch on. Create a custom MCP app or connector, paste https://mcp.sportsdatahq.com/mcp/tennis and choose OAuth as the authentication. A sign-in page opens, you press Allow, and there is no key to copy. ChatGPT Plus does not have developer mode: call the REST API from your own machine with your key and paste the response in, as in the curl examples below.

Example questions and the tools they call

QuestionTools calledCredits
Who has the best Elo rating on clay among active players?get_ratings (with surface)2
What do this week's official ATP and WTA rankings look like?get_rankings2
Find a player and show his 2026 record on hard, clay and grass.search_players, get_surface_splits1 + 3
What is the head-to-head between two players, split by surface and in finals?get_head_to_head3
Who played the 2026 Wimbledon final, and what was the score?list_tournaments, get_matches1 + 2
How does a player's season break down by round and against top-ten opponents?get_player_stats3
What did sportsbooks list for a tournament's matches, with opening and closing moneylines?get_odds5
Which tournaments were played in 2026, on what surface, and who won each?list_tournaments1

A tip for agents: tournament ids look like 188-2026 (Wimbledon 2026), so list the season once with list_tournaments and reuse the id. Round names are words: filter the final with round: "Final", not F, or the call returns no rows.

Tool count and highlights

The tennis route lists 15 tools. The highlights:

  • `get_head_to_head`. Wins by surface, in finals and in sets, with every meeting listed. One 3-credit call replaces a career search.
  • `get_surface_splits`. Wins, sets, games, tiebreaks and deciding sets by surface, for a season or one season at a time.
  • `get_ratings`. Elo from every completed singles match since 2007, overall and per surface, with at least 10 rated matches to be listed. Retirements, walkovers and defaults are not rated.
  • `get_rankings`. The weekly official list with previous rank and points, a list in force on a date, or a player's ranking history.
  • `get_tournament` and `get_matches`. Draws and results by round, by day or by season.
  • `get_match`. One match in full, including tiebreak points and both ratings before and after.
  • `get_odds`. Opening and closing moneylines for a match or a whole tournament. Prices are information, not a pick.

Credit costs

CreditsTools
1list_tournaments, search_players, get_data_status
2get_tournament, get_matches, get_schedule, get_match, get_rankings, get_ratings
3get_head_to_head, get_surface_splits, get_player_stats
5get_player, get_player_matches, get_odds

A head-to-head preview (two searches and a head-to-head) costs about 5 credits, and a player profile plus surface split about 9. With 1,000 free credits you can run a good number of both every month.

Verified examples you can run now

Export your key as KEY. These ran against the live API on December 6, 2026 and returned HTTP 200.

Find a player id by name (1 credit):

curl -s -X POST https://api.sportsdatahq.com/v1/tennis/search_players \
  -H "x-api-key: $KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Sinner", "limit": 1}'

Elo ratings on clay (2 credits):

curl -s -X POST https://api.sportsdatahq.com/v1/tennis/get_ratings \
  -H "x-api-key: $KEY" \
  -H "Content-Type: application/json" \
  -d '{"surface": "clay", "limit": 2}'

A head-to-head between two player ids (3 credits):

curl -s -X POST https://api.sportsdatahq.com/v1/tennis/get_head_to_head \
  -H "x-api-key: $KEY" \
  -H "Content-Type: application/json" \
  -d '{"player_id": "3623", "opponent_id": "3782"}'

A final at a tournament (2 credits):

curl -s -X POST https://api.sportsdatahq.com/v1/tennis/get_matches \
  -H "x-api-key: $KEY" \
  -H "Content-Type: application/json" \
  -d '{"tournament_id": "188-2026", "round": "Final", "limit": 2}'

The tool list your MCP client sees on this route, which is free:

curl -s -X POST https://mcp.sportsdatahq.com/mcp/tennis \
  -H "x-api-key: $KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

Coverage and limits

ATP and WTA singles only, with main draws from 2007 and qualifying from 2022. Seasons are calendar years, so 2025 means the 2025 season. The ATP is the default and league: "wta" switches any tool to the women's tour. Player 1 and player 2 are in listed order and winner_id says who won.

An outcome is completed, retired, walkover, default or incomplete. Walkovers have no sets and count in no record. Retirements count as wins and losses but are not rated. An incomplete record is a match left mid-way, with no winner, and counts nowhere.

There are no serve statistics: no aces, double faults or break points. The season statistics are counted from scores, which is why the stats tool talks about sets, games and tiebreaks. Surface comes from our own tournament reference and is null where we do not know it. Rankings are the weekly lists, the top 100 to 150, most weeks since 2007. Ratings are ours, Elo from results, and are not a ranking.

Odds exist for Grand Slam matches from mid-2020 and for ATP Masters and WTA 1000 matches from August 2024 only, and are empty otherwise. They are pre-game only. Records are overwritten when a correction arrives. You may store the data, train models and build commercial products that show your users what you derive, but you may not redistribute the data or odds as a feed of your own.

When not to use this

  • You need serve and return statistics. Aces, double faults and break points are not held. Match statistics come from scores.
  • You need doubles or Challenger results. The server covers ATP and WTA singles.
  • You need odds for most tour events. Prices are held for Grand Slams from mid-2020 and for Masters and 1000 events from August 2024.
  • You need live points. Odds and schedules are pre-game, and results arrive after matches finish.
  • You are rebuilding every match since 2007. A data package is one download. Paging a career at 5 credits a call is slow and costly.
  • You want a pick. Prices come back as information about the market. No tool recommends a wager or works out a stake.

Source and related pages

There is no public tennis MCP repository. The hosted route and the AcesAPI docs are the references. For the cross-sport server's public code see sports-data-mcp-server. Related guides: the free sports data MCP server, golf, UFC, NBA and soccer.

Try it

FAQ

How many tools does the tennis MCP server have?

The tennis route on the SportsDataHQ server lists 15 tools, from 1-credit lookups to 5-credit player and odds calls. AcesAPI's own server serves the same tool names.

Does it cover the WTA as well as the ATP?

Yes. Every tool takes a league argument: the ATP is the default and wta switches to the women's tour on the same key. Both cover singles from 2007, with qualifying from 2022.

Does it have serve statistics like aces and break points?

No. Match statistics are counted from the set, game and tiebreak scores. If you need aces or break points, this server does not hold them.

Get a free key

Checked against the live API on 2026-12-06. Questions: hello@sportsdatahq.com.