AcesAPI MCP server
Enables live AcesAPI tennis data tables in Google Sheets via the SDHQ formula, e.g. =SDHQ("acesapi","list_tournaments").
This server has a remotely hosted endpoint. Open its connector listing for connection details, authentication requirements, and setup instructions:
AcesAPI MCP server
The tennis data API. ATP and WTA singles matches with every set and tiebreak score, tournament draws round by round, player profiles, weekly rankings, head to head, surface splits, our own Elo by surface, and sportsbook moneylines on Grand Slam and Masters / WTA 1000 matches. REST API and MCP server. 500 free credits every month, no card.
Website: https://acesapi.com?utm_source=github&utm_medium=readme&utm_campaign=acesapi-mcp · Docs: https://acesapi.com/docs?utm_source=github&utm_medium=readme&utm_campaign=acesapi-mcp · Get a key: https://acesapi.com/signup?utm_source=github&utm_medium=readme&utm_campaign=acesapi-mcp
You: "What is Carlos Alcaraz's record on clay against top-10 players?"
Claude: [calls get_surface_splits]
You: "Who leads the Sinner and Alcaraz head to head, and how many of their meetings were finals?"
Claude: [calls get_head_to_head]
You: "Which moneylines were posted for the 2025 US Open men's final?"
Claude: [calls get_matches, then get_match]Run it locally (stdio)
Most clients connect to https://mcp.acesapi.com/mcp directly. For a client that launches a local process instead:
git clone https://github.com/sports-data-hq/acesapi-mcp.git && cd acesapi-mcp && npm install
ACESAPI_API_KEY=your_key node index.js{ "mcpServers": { "acesapi": { "command": "node", "args": ["/path/to/acesapi-mcp/index.js"], "env": { "ACESAPI_API_KEY": "your_key" } } } }It forwards to the hosted server with your key, so every tool and credit cost is the same.
Related MCP server: ledgerfc-mcp
Try it now, no key
A free season of tennis data: the last completed season as CSV (games, standings, player season totals and our ratings). Download the zip or browse what's in it.
Open it in Colab:
loads the pack and answers three questions in a minute.
Ask Claude without a key: install the skills below;
season-pack-offlineanswers from the pack until you connect.
With a free key it does far more: every earlier season, today's games, play-by-play, lineups, odds and player props with their history and movement, and every skill below running on live data. Get a free key: 500 credits a month, no card.
Skills
4 Claude skills for tennis ship in this repo, plus 13 analytics skills for models, backtests, calibration and comparing a model with the market. Every number in an answer comes from a live AcesAPI tool call, and odds are information only: no stakes, no picks.
Claude Code:
/plugin marketplace add sports-data-hq/acesapi-mcp
/plugin install tennis-data@acesapi
/plugin install sports-analytics-core@acesapiCodex: codex plugin marketplace add sports-data-hq/acesapi-mcp. Any agent that reads skills: npx skills add sports-data-hq/acesapi-mcp.
Skill | What it does |
| Two players' history: results by surface and round, sets and tiebreaks |
| One-page preview: form, surface records, Elo by surface, head to head and the market |
| Record, sets, tiebreaks and Elo by surface and season |
| Title chances for a tournament from the draw and surface Elo |
The analytics skills: backtesting, data-pipeline, elo-engineering, feature-engineering, market-vs-model, model-building, odds-market-analysis, prediction-tracker, probability-calibration, season-pack-offline, sports-data-preflight, visualization, walk-forward-validation.
Real answers on live data, with the credits each used: example answers.
All nine sports' skills live in sports-data-hq/sportsdatahq-skills. The copies here are synced from there, so please open issues and pull requests there.
Useful pages
Docs: every endpoint with parameters and live examples
Tennis odds: upcoming ATP and WTA matches with each sportsbook's moneyline
Data atlas: what exists and where coverage is partial
Guides: Python walkthroughs for surface Elo, head to head, rankings, set scores and surface splits
Pricing: credits per call, 500 free every month
Python
The official Python client is on PyPI: acesapi.
pip install acesapi
export ACESAPI_API_KEY=sk_live_...from acesapi import Client
client = Client()
ranks = client.get_rankings(limit=5)
for row in ranks["rankings"]:
print(row["rank"], row["name"], row["points"])Typed errors for a bad key, no credits left, not found and rate limits, automatic retries, and to_dataframe for pandas.
Quick start
This is a hosted (remote) MCP server over Streamable HTTP. There is nothing to install.
Claude Code
claude mcp add --transport http acesapi "https://mcp.acesapi.com/mcp?key=YOUR_API_KEY"Claude Desktop, Cursor and other clients
{
"mcpServers": {
"acesapi": {
"url": "https://mcp.acesapi.com/mcp?key=YOUR_API_KEY"
}
}
}The key can also be sent as an x-api-key header or Authorization: Bearer. Connecting and listing tools works without a key; calling a tool needs one.
REST
curl -X POST https://mcp.acesapi.com/v1/list_tournaments -H "x-api-key: YOUR_API_KEY"Every tool is POST /v1/{tool} with a JSON body.
Examples
Runnable Python (standard library only) and Node 18+ (no dependencies) examples live in examples/:
examples/python/quickstart.pyandexamples/node/quickstart.mjs: schedule plus a headline call.examples/python/tennis_head_to_head_surface_elo.py: Two players side by side.
export ACESAPI_API_KEY=your_key
python3 examples/python/quickstart.py
node examples/node/quickstart.mjsSee examples/README.md for details. Get a free key (500 credits a month, no card) at https://acesapi.com/signup?utm_source=github&utm_medium=readme&utm_campaign=acesapi-mcp.
Use it in
Claude, ChatGPT, Cursor, VS Code, Gemini CLI, Grok, Perplexity, Le Chat: add
https://mcp.acesapi.com/mcpas a remote MCP server. Step-by-step for each: https://acesapi.com/mcp?utm_source=github&utm_medium=readme&utm_campaign=acesapi-mcpGemini CLI:
gemini extensions install https://github.com/sports-data-hq/acesapi-mcpCursor: the SportsDataHQ plugins for Cursor
Google Sheets:
=SDHQ("acesapi","list_tournaments")fills a live table: https://sportsdatahq.com/sheets?utm_source=github&utm_medium=readme&utm_campaign=acesapi-mcpREST:
POST https://mcp.acesapi.com/v1/<tool>with anx-api-keyheader: https://acesapi.com/docs?utm_source=github&utm_medium=readme&utm_campaign=acesapi-mcp
Tools (14)
Tool | What it returns |
| A season's tournaments with dates, surface, status and champion |
| Find players by name or country |
| A tournament's draw and results, round by round, with every set |
| Match results by day, tournament or season, with set and tiebreak scores |
| Upcoming and in-progress matches for the next days |
| Each sportsbook's opening and closing moneylines for a match or a whole tournament, with the games handicap and total |
| One match: sets, tiebreak points, seeds, ratings, what the score says and its sportsbook lines |
| Weekly ranking lists since 2007, or one player's ranking history |
| Our Elo ratings, overall or by surface |
| Two players' meetings, wins by surface and in finals |
| A player's record by surface: sets, games, tiebreaks, deciding sets |
| A player's season statistics from scores, by round and opponent rank |
| Profile, ranking, ratings, career record, titles and recent matches |
| A player's matches with scores and ratings, filtered by season, surface or opponent |
Leagues: tennis (default, ATP), wta (pass league: "wta" to any tool).
Data
ATP and WTA singles since 2007 (qualifying from 2022) with set and tiebreak scores
Tournament draws and results round by round; weekly rankings since 2007
Head to head, surface splits, player season statistics derived from scores, our Elo overall and by surface
Sportsbook moneylines, returned in the
oddsarray ofget_match(there is no separate odds tool): Grand Slam matches from mid-2020 and ATP Masters and WTA 1000 matches from August 2024, pre-match, refreshed hourly; the array is empty for other tournamentsNo serve statistics (aces, double faults, break points)
Coverage by season, read live from the database: https://acesapi.com/docs?utm_source=github&utm_medium=readme&utm_campaign=acesapi-mcp
Pricing
500 free credits every month, no card. Plans: Starter $19/mo (10,000 credits), Pro $49/mo (30,000), Scale $149/mo (125,000), Business $299/mo (300,000). Wallet top-ups from $5, never expire. https://acesapi.com/pricing?utm_source=github&utm_medium=readme&utm_campaign=acesapi-mcp
Attribution
Surfaces and ratings are ours. Not affiliated with the ATP, WTA, ITF or any tournament.
License
MIT for the contents of this repository. Data terms as above.
Use with Codex
The SportsDataHQ skills marketplace also works in Codex (it reads .agents/plugins/marketplace.json):
codex plugin marketplace add sports-data-hq/sportsdatahq-skillsInstall tennis-data, which bundles the tennis skills and the AcesAPI MCP server.
Use with Gemini CLI
export ACESAPI_API_KEY=your_key
gemini extensions install https://github.com/sports-data-hq/acesapi-mcpThe extension adds the AcesAPI MCP server (https://mcp.acesapi.com/mcp) and sends the key in the x-api-key header. Get a free key (500 credits a month) at https://acesapi.com/signup?utm_source=github&utm_medium=readme&utm_campaign=acesapi-mcp.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Read-only search of 2,189 AI agent tools (MCP servers, x402 APIs) with daily automated trust scores.
Real-time data API for AI Agents: stocks, weather, forex, logistics, search, scrape, news, IP.
Live SEO data for AI agents: SERP competition, keywords, backlinks, site audits, AI visibility.
Free web search, 130M+ business records, local search, weather and travel data for AI agents.
Related MCP Servers
- AlicenseAqualityBmaintenanceReal-time tennis data for ATP, WTA, Challenger and ITF: live scores, player rankings, match-winner odds, and model win-probability. 12 read-only tools; a tier-gated endpoint returns a plain-English explanation of which plan it needs rather than a bare 403. Requires a paid API key.25142 npm126MIT
- AlicenseBqualityDmaintenanceProvides AI agents with live, grounded sports data including model probabilities, track records, and European soccer and tennis arbitrage opportunities, so they answer from real numbers instead of stale guesses.1348 npm1MIT
- AlicenseBqualityBmaintenanceEnables AI agents to query live and historical sports analytics, consensus betting odds, predictions, scores, schedules, standings, rosters, news, play-by-play, and win probabilities through structured tools and resources.52332 PyPIApache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to answer tennis tactical questions using shot-by-shot charted match data, producing game plans, serve and return tendencies, scouting reports, match forecasts, and explanations of why a match turned. Exposes read-only tools for player reports, head-to-head game plans, match breakdowns, and tactical leaderboards, each with confidence margins and links to full pages.MIT