
Livetennisapi Mcp
io.github.livetennisapiv1.5.0更新於 Oct 6, 2026
Live tennis scores, players, rankings, odds and win-probability. ATP, WTA, Challenger, ITF, juniors.
概覽
讓助理透過 Live Tennis API 取得即時網球比分、賽程、球員、排名、賠率與模型勝率資料。
- 功能
- 把 Live Tennis API 包裝成一組唯讀工具,涵蓋進行中與即將開始的比賽、比賽詳情與比分、球員與賽事搜尋、賽程、近期賽果、1968 至 2022 年的賽果檔案、跨年代對戰紀錄、比賽事件、賠率、排名、即時統計、擊球紀錄剖析與模型分析。狀態工具可回報連線狀況以及金鑰所屬的方案。遇到方案限制的工具會回傳白話說明,而不是錯誤。
- 適用情境
- 適合讓助理回答即時網球、ATP/WTA/挑戰賽/ITF 與青少年巡迴賽、球員資料與排名、可追溯至 1968 年的歷史賽果,以及賠率和模型勝率等問題。免費方案工具涵蓋比分、球員、賽程與賽事;歷史、賠率、統計與分析需要付費方案。
- 執行需求
- 可使用遠端 Streamable-HTTP 端點,或在本機以 stdio 執行 npm 套件 livetennisapi-mcp,後者需要 Node 20+。呼叫工具需要 API 金鑰:本機伺服器用 LIVETENNISAPI_KEY,託管端點用 Authorization bearer 標頭(或 token 查詢參數)。免費金鑰不需信用卡即可取得,付費方案可解鎖更多工具。需要能連線至該 API 的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Livetennisapi Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"livetennisapi-mcp": {
"type": "http",
"url": "https://mcp.livetennisapi.com/mcp"
}
}
}README
livetennisapi-mcp
MCP server for the Live Tennis API.
Give Claude, Cursor, Zed or any MCP client live tennis scores, players and fixtures — for ATP, WTA, Challenger, ITF and juniors. Odds, rankings, match statistics, charting and model win-probability tools are included, and require the PRO and ULTRA plans.
Setup
Claude Code
Claude Desktop — add to claude_desktop_config.json:
Cursor / Zed / others — same command, same env var. No install step; npx
fetches it on demand.
Get a free key (no card) at livetennisapi.com, or a paid plan at pricing.
Try it
"What tennis matches are live right now?" "Who's winning the Alcaraz match, and what does the model give him?" "Show me Sinner's ranking and recent results." "What are the current odds on match 18953?" "What's the all-time head-to-head between Borg and McEnroe?" "List Navratilova's Grand Slam finals from the archive." "Who was ATP #1 the week Alcaraz first entered the top 10?" "How is Sabalenka serving in her live match — aces, hold rate, break points?"
Tools
The six BASIC history tools are also unlocked by any History plan, which works
on top of a free key. The results archive (1968–2022) — ATP and WTA, main
draws, qualifying and the ITF/futures tiers — ends exactly where our own
results begin (2023), so search_archive_matches answers "Borg's Wimbledon
finals" and get_recent_results answers "yesterday's scores"; get_h2h spans
both in one call.
Tier awareness
The API gates endpoints by plan and returns a bare 403 {"error":"upgrade_required"}.
Handed that, a model will usually invent a reason or retry pointlessly.
So every tool that can hit a tier wall returns a plain-English explanation — as a normal result, not an error — naming the tier required and where to upgrade. The assistant can then tell you something true and actionable:
This data requires the ULTRA plan, and the configured API key is on a lower tier. Nothing is wrong with the key — the endpoint is simply not included in the current plan. Upgrade in place at https://livetennisapi.com/subscribe/upgrade
check_api_status probes upward to report which plan your key is actually on,
so you can diagnose that without guessing.
Plans
¹ Also unlocked by any History plan, which works on top of a free key.
Request quotas
FREE is 100 requests/day, so poll no faster than every 15 minutes on a free
key; for an always-on dashboard, BASIC is the plan to recommend. Every response
carries X-RateLimit-Limit / -Remaining / -Reset headers, and the tools
relay the three distinct 429 shapes honestly — per-minute (retry shortly),
daily cap (the error names the exact reset instant), and the abuse block
(don't retry; fix the loop).
Hosted endpoint
Most people should use the stdio server above — your key never leaves your machine. For clients that can only speak HTTP, there is also a hosted Streamable-HTTP endpoint:
Send your key as Authorization: Bearer twjp_…, X-API-Key: twjp_…, or
?token= if your client cannot set headers. Tools are listable without a key,
so directories can introspect the server; calling one needs a key.
It is multi-tenant and holds no key of its own: every request builds its own server bound to the key that request presented, and there is deliberately no fallback to the host's environment. The endpoint applies its own transport-level limit per caller — 60 req/min anonymous, 300 keyed. That limit only protects this host process; it is not your API quota, which is enforced upstream per key and tier (see the quota table above).
Self-hosting it: deploy/install-http.sh and deploy/TUNNEL.md.
Use with Claude
As a connector. In Claude, add a custom connector and paste the endpoint with your key as a query parameter — no OAuth, nothing to install:
?token= exists for clients that cannot set request headers. The tradeoff, stated
plainly: a key in a URL is not written to our logs, but it is visible to the CDN
in front of the endpoint and is stored in the connector's configuration. Prefer
Authorization: Bearer twjp_… wherever your client lets you set a header.
From the Messages API. Claude can call the endpoint directly. Both halves are
required — the server and a matching toolset entry; sending mcp_servers alone
is rejected as a validation error:
The authorization_token is sent as a bearer token, which is exactly what this
server already accepts — no separate credential to obtain.
Use with Codex
One command:
Or write it to ~/.codex/config.toml yourself — Codex shares that file across the
CLI, the IDE extension and the desktop app:
Use bearer_token_env_var, not bearer_token: it keeps the key in your
environment rather than committing it to a config file.
There is also a Codex plugin, on its own marketplace:
That registers the marketplace; install the plugin from Codex's plugin picker. Source: livetennisapi-codex-plugin.
The stdio route works too, unchanged: npx -y livetennisapi-mcp.
Bundled skill: Polymarket / Kalshi tennis trading data
The Claude Code plugin (.claude-plugin/plugin.json) also ships the
polymarket-tennis Agent Skill under skills/polymarket-tennis/.
It teaches Claude the observe-only
polymarket-tennis Python
package (market discovery, market-to-match matching, joined price/live-score
view), the free-tier budget (30 req/min, 100 requests/day), and the verbatim
retirement/walkover settlement rules for Polymarket, Polymarket US and Kalshi.
Canonical copy lives in the polymarket-tennis repo; this one is mirrored for
plugin installs. No order execution, ever.
Notes
- Read-only. Every tool is a GET; nothing here can modify anything.
- Your key stays local with the stdio server. It is read from the
environment by the server process on your machine and sent only to
api.livetennisapi.com. - Requires Node 20+.
Development
test:mutation is worth understanding before changing src/http.ts. It
reintroduces each bug the tests claim to catch and asserts the suite goes red.
It is not ceremony: the first version of the rate-limit test passed while the
limiter was bucketing every caller together.
Built on the official livetennisapi
client.
Related
Everything in the Live Tennis API developer surface:
- API reference — https://docs.livetennisapi.com (plain-HTML version, no JavaScript required)
- OpenAPI 3.1 specification — livetennisapi/openapi
- Free API key — https://livetennisapi.com/subscribe/free (no card)
- Products — https://livetennisapi.com/products
- Website and plans — https://livetennisapi.com
- Discord — https://discord.gg/f8WUZHgDm6
- GitHub org — https://github.com/livetennisapi
Affiliate program
Know developers who need tennis data? The affiliate program pays 51% recurring commission for the life of every referred subscription — 30-day cookie, and the people you refer get 10% off.
Licence
MIT — see LICENSE. Use of the API service is governed by the Terms of Service.
來源:README.md,提交 a95d45f
工具
0版本歷史
1- v1.5.0最新Sep 16, 2026


