Skip to main content
Glama
kingsplaybook-mcp

kingsplaybook-mcp

kingsplaybook-mcp

The official MCP server for the KingsPlaybook Developer API. It gives an AI agent — one building a sports-betting bot, a model, or an analytics tool — direct access to KingsPlaybook's data as native tools:

  • Confirmed lineups — NBA, MLB, NHL

  • Player projections — the projection engine's raw output

  • Canonical game lines — moneyline / spread / total, aggregated across books

  • Pick-history archive — the publicly-posted record, with results + closing lines

It's a thin local (stdio) wrapper over the /v1 REST API. Same data, second protocol.

Get an API key

Sign up at kingsplaybook.org/devs. The Free tier covers lineups; paid tiers add projections, lines, and history. Your key looks like kp_live_….

Related MCP server: AltSportsData MCP Server

Install

No install step — run it straight from npm with npx. Add it to your MCP client config (Claude Desktop, Cursor, etc.):

{
  "mcpServers": {
    "kingsplaybook": {
      "command": "npx",
      "args": ["-y", "kingsplaybook-mcp"],
      "env": {
        "KINGSPLAYBOOK_API_KEY": "kp_live_your_key_here"
      }
    }
  }
}

That's it — the agent now has the KingsPlaybook tools.

Tools

Tool

What it returns

Min. plan

kingsplaybook_get_lineups

Confirmed lineups for a league + date

Free

kingsplaybook_get_projections

Raw player projections for a league + date

Starter

kingsplaybook_get_lines

Canonical game lines for a league + date

Pro

kingsplaybook_get_pick_history

Posted picks + results for a date

Premium

kingsplaybook_get_freshness

Per-domain data-age signal

Free

Every tool returns JSON. Calling a tool above your plan tier returns a clear 403 message with an upgrade link.

Examples

  • "What's tonight's NBA slate look like?" → kingsplaybook_get_lineups({ league: "nba", date: "2026-05-21" })

  • "Pull MLB projections for today" → kingsplaybook_get_projections({ league: "mlb", date: "2026-05-21" })

  • "How did KingsPlaybook's prop picks do yesterday?" → kingsplaybook_get_pick_history({ date: "2026-05-20", type: "prop" })

Configuration

Env var

Required

Default

Purpose

KINGSPLAYBOOK_API_KEY

yes

—

Your kp_live_ API key

KINGSPLAYBOOK_API_URL

no

https://api.kingsplaybook.org

Override the API base URL

Local development

npm install
npm run build      # compile TypeScript to dist/
npm start          # run the built server (needs KINGSPLAYBOOK_API_KEY)
npm run dev        # watch mode

License

MIT

Available Tools

5 tools
kingsplaybook_get_freshnessGet data freshnessA
Read-onlyIdempotent

Per-domain data-age signal — when the projection pipeline, lineups, and lines were each last updated. Check this to decide whether the data is fresh enough before acting on it. Works on any plan.

Args: none. Returns JSON: { data: { snapshot: { latest_farmer_harvest_at, latest_crown_scored_at }, lineups: { latest_updated_at }, lines: { latest_updated_at } }, meta: { as_of } }.

NameRequiredDescriptionDefault

No parameters

kingsplaybook_get_linesGet canonical game linesA
Read-onlyIdempotent

KingsPlaybook's canonical game-market lines — moneyline, spread, and total — aggregated across tracked sportsbooks, per game on a league + date. Requires a Pro plan or higher.

Args: league ('nba' | 'mlb' | 'nhl'), date ('YYYY-MM-DD'). Returns JSON: { data: [ { event_id, home_team, away_team, markets: [ { market_type, selections: [ { selection, line, prices: [ { book, price, decimal } ] } ] } ] } ], meta }.

NameRequiredDescriptionDefault
dateYesGame date, ISO-8601 (YYYY-MM-DD)
leagueYesLeague: nba, mlb, or nhl
kingsplaybook_get_lineupsGet confirmed lineupsA
Read-onlyIdempotent

Confirmed / projected starting lineups for every game on a given league + date, split into home and away rosters. Available on every KingsPlaybook plan, including Free.

Args: league ('nba' | 'mlb' | 'nhl'), date ('YYYY-MM-DD'). Returns JSON: { data: [ { event_id, league, game_date, home_team, away_team, lineups: { home: [players], away: [players] }, updated_at } ], meta: { count, league, date, as_of } }.

NameRequiredDescriptionDefault
dateYesGame date, ISO-8601 (YYYY-MM-DD)
leagueYesLeague: nba, mlb, or nhl
kingsplaybook_get_pick_historyGet pick performance historyA
Read-onlyIdempotent

KingsPlaybook's publicly-posted picks for a date — game-market and player-prop — each with its result and closing-line context. Use this to backtest against the actual posted record. Requires a Premium plan.

Args: date ('YYYY-MM-DD'); optional type ('game' | 'prop', omit for both); optional sport (e.g. 'nba'). Returns JSON: { data: { game_picks: [...], prop_picks: [...] }, meta: { count, game_pick_count, prop_pick_count, date, ... } }.

NameRequiredDescriptionDefault
dateYesGame date, ISO-8601 (YYYY-MM-DD)
typeNoFilter to game-market or player-prop picks; omit for both
sportNoOptional sport filter, e.g. nba, mlb, nhl
kingsplaybook_get_projectionsGet player projectionsA
Read-onlyIdempotent

Raw player stat projections — KingsPlaybook's model output, the projected number only — for every game on a league + date. Requires a Starter plan or higher.

Args: league ('nba' | 'mlb' | 'nhl'), date ('YYYY-MM-DD'). Returns JSON: { data: [ { player_name, stat_type, line, direction, projection, league, event_id, game_date, updated_at } ], meta: { count, league, date, tier, as_of } }.

NameRequiredDescriptionDefault
dateYesGame date, ISO-8601 (YYYY-MM-DD)
leagueYesLeague: nba, mlb, or nhl

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 5 tool updatesv0.1.0
    • First observedkingsplaybook_get_freshness
    • First observedkingsplaybook_get_lines
    • First observedkingsplaybook_get_lineups
    • First observedkingsplaybook_get_pick_history
    • First observedkingsplaybook_get_projections

TDQS

A4.5/5.0

Scored across 5 tools

Disambiguation5/5

Each tool targets a distinct data type: lineups, projections, lines, pick history, and freshness. The boundaries are clear and descriptions explicitly differentiate the content, so there is no ambiguity between tools.

Naming Consistency5/5

All tools follow the exact pattern 'kingsplaybook_get_<resource>' using snake_case. The resource names are descriptive and consistent (lineups, projections, lines, pick_history, freshness), with no mixed conventions or vague verbs.

Tool Count5/5

Five tools is well-scoped for a specialized sports data API. Each tool represents a core data category necessary for the server's purpose, with no redundancy or unnecessary additions.

Completeness5/5

The tool set covers all major data retrieval needs for a betting-focused sports data service: lineups, projections, lines, pick history, and freshness verification. For a read-only analytical domain, this is comprehensive and leaves no critical dead ends.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Provides AI-powered sports betting intelligence including live odds, injury reports, and documented picks for NBA, NHL, and NCAAB. It enables AI agents to analyze line movements, win rates, and betting edges using real-time data from sportsbettingaianalyzer.com.
    11
    5
    MIT
  • A
    license
    B
    quality
    D
    maintenance
    MCP-compatible server that gives AI agents access to alternative sports data across 30+ leagues — odds, events, probabilities, settlement, and futures for prediction markets, DFS platforms, and sportsbooks.
    29
    15 npm
    20 PyPI
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI agents to access comprehensive sports data including football, basketball, American football, and hockey leagues via 11 tools, with no API key required.
    MIT
  • A
    license
    B
    quality
    C
    maintenance
    Provides 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.
    13
    53 npm
    1
    MIT