ufcalendar
Provides UFC MMA data through the UFCalendar Fight API: upcoming and completed UFC events with full fight cards, near real-time results, per-fight and round-by-round statistics, judges' scorecards, the UFCalendar consensus odds line (current, opening, closing, movement), fighter careers and profiles, and point-in-time UFC rankings history back to February 2013. Also includes derived views such as event storylines, matchmaker suggestions, power index, record books, and community picks.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
@ufcalendar/sdk — MMA Fight Data API client for TypeScript
UFC, PFL, OKTAGON, BKFC, RIZIN and KSW events, fight stats, results, rankings history and judges' scorecards from one typed client.
The MMA Fight Data API by UFCalendar (the UFCalendar Fight API) is a REST API for MMA data: UFC, PFL, OKTAGON, BKFC, RIZIN and KSW events, full fight cards, results within minutes, per-fight and round-by-round statistics, complete fighter careers, the only MMA data API with point-in-time UFC rankings history back to 2013, and the only one serving judges' scorecards — every official, every round — plus the UFCalendar consensus odds line (current, opening and closing on every plan, line movement on Pro) and, on Pro and Business, a live fight-night WebSocket for UFC cards. This package is a dependency-free fetch wrapper over it: one method per endpoint, cursor pagination handled for you, ESM + CJS, Node 18+, browsers and edge runtimes.
npm install @ufcalendar/sdkReference with real responses and every method: https://mmadataapi.com/sdks/typescript
Get a free key at https://www.ufcalendar.com/account/api?trial=1 — the free plan is 100 requests a month, no card, never expires. Paid plans from $19/month for 30,000 requests (Pro $49 for 200,000, Business $149 for 1,000,000) — hard caps, no overage.
Quickstart in 3 lines
import { FightAPI } from '@ufcalendar/sdk';
const api = new FightAPI('ufcalendar_...'); // free-plan key, no card
for await (const ev of api.events({ org: 'ufc', limit: 1 })) console.log(ev.title); // the next UFC cardRelated MCP server: ledgerfc-mcp
Quickstart
import { FightAPI } from '@ufcalendar/sdk';
const api = new FightAPI(process.env.UFCALENDAR_API_KEY); // or new FightAPI({ apiKey })
// Upcoming UFC schedule, soonest first
for await (const ev of api.events({ org: 'ufc', limit: 5 })) {
console.log(ev.starts_at, ev.title, ev.is_ppv ? 'PPV' : '');
}
// Full card + results of the newest completed UFC event
const [latest] = await Array.fromAsync(api.events({ org: 'ufc', status: 'completed', limit: 1 }));
const card = await api.event(latest!.slug);
for (const f of card.card) {
if (f.result) {
console.log(f.fighter_a?.name, 'vs', f.fighter_b?.name, '->', f.result.method, `R${f.result.round}`);
}
}
// The judges' scorecards for one bout — the official commission record
const cards = await api.fightScorecards(card.card[0]!.id);
// UFC rankings on any date since February 2013 (rank 0 = champion)
const board = await api.rankings('ufc', { date: '2016-11-14' });
// A fighter's complete multi-promotion career
const history = await api.fighterHistory('islam-makhachev');List endpoints are async generators that follow meta.pagination.next_cursor for you; pass limit to stop after N rows. Everything else returns the envelope's data. The last response's meta and rate-limit headers stay on the client (api.lastMeta, api.lastRateLimit).
What's covered
Method | Endpoint |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| the WebSocket |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| misc ( |
|
|
|
|
|
|
|
|
| escape hatch for anything new |
Hand-written types cover events, fights, fighters, rankings, scorecards, consensus odds, the fight log, position stats and plans; the generated paths / operations types from the OpenAPI document are exported for everything else.
Consensus odds
const o = await api.fightOdds(83379);
console.log(o.consensus?.a.american, o.consensus?.b.american, o.consensus?.sources);
console.log(o.movement?.delta_points_a, o.closing); // closing = last line before the start (settled bouts)
for await (const point of api.fightOddsHistory(83379)) { // Pro plans and up
console.log(point.recorded_at, point.a.american, point.b.american);
}One anonymised UFCalendar consensus line per corner across the sportsbooks we track; book identities are never exposed. Information only, not betting advice.
Fight log and position stats (Pro and up)
const log = await api.fightTimeline(59652); // UFC 286, Edwards vs Usman
// Every referee stoppage; is_foul says whether a record confirms a foul.
for (const s of log.stoppages) console.log(s.round, s.elapsed_sec, s.reason, s.duration_sec, s.is_foul, s.foul, s.foul_basis);
// Every confirmed foul, in fight order.
for (const i of log.incidents) console.log(i.foul, i.basis, i.committed_by, i.points_deducted, i.ended_bout);
console.log(log.fouls.a); // what corner a committed: eye_pokes, low_blows, other, total, points_deducted
const pos = await api.fightPositions(59652);
const a = pos.totals[0];
console.log(a?.time.distance_sec, a?.time.clinch_sec, a?.time.ground_sec, a?.control.total_sec);
const d = await api.fighterDiscipline('leon-edwards'); // null under 3 tracked bouts
console.log(d?.committed, d?.points_deducted, d?.fouls_per_15, d?.incidents.length);
// reason is the foul; basis is the record behind it.
for (const i of d?.incidents ?? []) console.log(i.date, i.role, i.reason, i.basis, i.points_deducted, i.ended_bout);
const p = await api.fighterPositions('leon-edwards');
console.log(p?.time.distance_share, p?.control.for_sec, p?.control.against_sec);Settled UFC bouts only (Contender Series included): the log from June 2013, stoppage reasons from 8 December 2018, positions reliably from 2007.
Fouls are confirmed fouls. The log labels only two, the eye poke and the low blow; any
other foul (an illegal knee to a grounded opponent, an upkick, a headbutt, a bite, a fence
grab) reaches it as a generic stoppage naming nobody, so it is reported only when a
record confirms it: log (the labelled row), deduction (the athletic commission took a
point) or result (the bout ended on it: a disqualification or a "could not continue").
A generic stoppage with no record behind it has is_foul false. The fighter on a foul
is the one who committed it. A recorded foul is not a ruling on intent.
In position stats null means not tracked for that bout and 0 is a real zero. Below Pro these throw
FightAPIError 403 tier_required.
Live fight night (Pro and Business)
On a UFC fight night (Contender Series included) the API serves one live document per
card: bout order and statuses, the bout in progress (phase, round, running clock,
unofficial in-fight stats, per-round splits and a timestamped action timeline) and the
last result. Read it once with eventLive(), or let the WebSocket push it to you on
every change instead of polling.
import { FightAPI } from '@ufcalendar/sdk';
const api = new FightAPI(); // UFCALENDAR_API_KEY
const snap = await api.eventLive('ufc-331'); // null when the card is not live
const stop = api.subscribeLive(
'ufc-331',
(frame) => {
// frame.type: "snapshot" | "update" | "fight.final" | "event.completed" | "error"
const cur = frame.data?.current;
if (cur) console.log(frame.type, 'R', cur.round, cur.clock_sec);
},
{ until: 'final' }, // close after the first fight.final; omit to run all night
);
// later
stop();Under the hood: connect to wss://live.ufcalendar.com/v1?key=<key>, send
{"action":"subscribe","event":"<slug or id>"}, and every frame is
{"type": …, "data": LiveState} ({"action":"ping"} answers {"type":"pong"}).
subscribeLive uses the global WebSocket (browser, Node >= 22); on older Node inject
one: { WebSocketImpl: (await import('ws')).default as unknown as typeof WebSocket }.
A dropped socket reconnects and re-subscribes once. A Pro key may hold 2 sockets at
once, a Business key 5; below Pro eventLive() throws FightAPIError 403
tier_required and the socket upgrade is refused.
In-fight numbers are unofficial. The official result and totals land on fight(id) /
fightStats(id) when the bout is settled.
Runnable ticker: examples/live-ticker.ts prints
R2 3:41 · Oliveira 41 vs Makhachev 37 sig. strikes as the round unfolds.
Agents and MCP
The same data is a Model Context Protocol server, so an agent can call it without an HTTP client:
claude mcp add --transport http ufcalendar https://api.ufcalendar.com/mcp \
--header "Authorization: Bearer $UFCALENDAR_API_KEY"There is an installable agent skill too: npx skills add UFCalendar/fight-api-skill. Agent quickstart: https://www.ufcalendar.com/developers/agents.
Options
new FightAPI({
apiKey, // or UFCALENDAR_API_KEY / UFCAL_API_KEY in the environment
baseUrl, // default https://api.ufcalendar.com/v1
fetch, // inject your own fetch
timeoutMs, // default 30_000
headers, // extra headers on every request
maxRetries, // per-minute 429 retries on GETs, default 3 (0 disables)
});Errors and rate limits
Every error throws FightAPIError with .status, .code, .message and .requestId — quote the request id when you write to api@ufcalendar.com. After each call api.lastRateLimit holds the X-RateLimit-* headers (monthly quota).
Rate-limited reads are waited out for you. When a GET hits the per-minute limit (429
rate_limited, Retry-After of 60 s or less; the free plan allows 10 requests a minute) the
client waits for Retry-After plus a little jitter and tries again, up to maxRetries times
(default 3), so a script that walks a few pages does not die mid-run. A 429'd request does not
count against your month.
const api = new FightAPI('ufcalendar_...', { maxRetries: 5 }); // wait out more per-minute 429s
const strict = new FightAPI('ufcalendar_...', { maxRetries: 0 }); // throw on the first 429The monthly quota (429 quota_exceeded), a 429 with a long or missing Retry-After, and every
non-GET request (webhook endpoint create / delete / rotate) throw FightAPIError at once.
Notes
Odds are the UFCalendar consensus line only (no book identities). Information only, not betting advice.
Fighter
imagesare Wikimedia Commons / Creative Commons files: displaying thelicenseandartistfields as a credit is a licence requirement, not a style preference.Scorecards are the official commission record. Media-member and fan scorecards are not part of the API.
source/source_slugvalues (typed asPublicSource) name official publishers only —ufc-stats,ufc-official,ufc-official-cards, a promotion's*-official,wikipedia,ufcalendar. Every other publisher arrives aspublic-records(career records, history rows) orcommission-record(judges' scorecards).UFCalendar is an independent data aggregator, not affiliated with, endorsed by or licensed by UFC, Zuffa, TKO or any promotion. Data is compiled from publicly accessible sources and is not an official or rights-cleared feed. Terms: https://www.ufcalendar.com/developers/terms
Full reference: https://api.ufcalendar.com/docs · OpenAPI 3.1: https://api.ufcalendar.com/openapi.json · Also on PyPI (Python client), RapidAPI Hub, Postman and the hosted MCP server
MIT licensed.
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
Real-time and historical sports and esports MCP connector powered by Cito API (76 tools). Covers Tennis (ATP, WTA, Challenger, ITF, Grand Slams: live set and game scores, daily order of play, player surface stats, ATP/WTA rankings, head-to-head, leaderboards), UFC and MMA (live Octagon fights, PPV and Fight Night cards, fighter UFC + pre-UFC records, round-by-round strikes and takedowns, divisional rankings), Counter-Strike 2 (CS2), League of Legends, Dota 2, Call of Duty, BKFC, and RAF.
Read-only UFC fight analyses: probabilities, fighter records, price checks. Key required.
UFC fights since 2000, plus PFL and Bellator: results, round stats, fighters and odds. REST and MCP.
Verified fight records for AI assistants: look up a fighter or fight card, cite the pxl8.io page.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides search, trending, odds, arbitrage, and category browsing for prediction markets (Polymarket & Kalshi) via the Model Context Protocol, enabling AI agents to access live market data without API keys.51MIT
- 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.13158 npm1MIT

sharpapi-mcpofficial
AlicenseAqualityBmaintenanceEnables AI agents to query live sports betting odds, best prices, arbitrage, +EV bets, and middles directly through Model Context Protocol tools.21464 npmMIT- 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.52Apache 2.0