Skip to main content
Glama
underdog-api-mcp

underdog-api-mcp

Official

Underdog MCP server: underdog-api-mcp

An Underdog Fantasy MCP server for Claude, ChatGPT, Cursor and any MCP client. Ask an AI agent for current Underdog lines, line moves or hit rates; it answers from recorded data through underdogapi.com.

Website | Docs | Free API key | Pricing | All SDKs

Also for underdogapi.com: Python: pip install underdog-api | JavaScript: npm install underdog-api

An MCP server (stdio) for Underdog API: Underdog Fantasy pick'em lines with separate Higher and Lower payout multipliers, recorded line moves, the board at past instants, graded results and hit rates, as tools for Claude, ChatGPT, Cursor, VS Code and any MCP client. No dependencies; Node 18+.

A hosted server with the same data runs at https://underdogapi.com/api/mcp (Streamable HTTP, bearer key). Use this package when your client only speaks stdio or you want the key kept in a local environment variable.

Underdog API is an independent data service operated by Stunning Couches LLC. It is not affiliated with, endorsed by or operated by Underdog Fantasy.

Use it

Claude Code:

claude mcp add underdog -e UNDERDOG_API_KEY=ud_... -- npx -y underdog-api-mcp

Claude Desktop, Cursor, Windsurf and other JSON-configured clients:

{
  "mcpServers": {
    "underdog": {
      "command": "npx",
      "args": ["-y", "underdog-api-mcp"],
      "env": { "UNDERDOG_API_KEY": "ud_..." }
    }
  }
}

No key yet? demo_board, demo_changes and credit_costs work without one, so an agent can learn the response shape first. A free key (100 credits a month, no card) is at https://underdogapi.com/sign-up?utm_source=github&utm_medium=readme&utm_campaign=underdogapi-mcp.

Related MCP server: propzapi

Tools

Tool

What it returns

Key

demo_board

Fictional board in the live shape

No

demo_changes

Fictional change events

No

credit_costs

Credit policy, or the cost of one request path

No

get_coverage

Leagues and stats on the board, first recorded date per league

Yes

get_board

Current lines, both side multipliers, filters for league, stat, player, tier

Yes

get_odds

Each side as an odds entry (5 minutes behind on Free)

Yes

get_changes

Line moves, multiplier changes, suspensions, closes

Yes

get_line_history

Every recorded change of one market

Yes

get_board_as_of

The board at a past instant

Yes

get_results

Graded lines (paid plans)

Yes

get_hit_rates

How often a player went Higher or Lower (paid plans)

Yes

get_multipliers, get_payouts, get_training_set

Multipliers, payout tables, model training rows

Yes

A tool the plan does not include answers with the API's 402 body: what is missing, the upgrade link and a few labelled sample rows. No credits are charged for it. Ask your user before upgrading.

Example prompts

  • "Which NBA lines are discounted on the Higher side right now?"

  • "How has this player's points line moved today?"

  • "Rebuild the NHL board as of 7 pm Eastern yesterday and list shots lines."

Test

npm test                     # offline, against a local fake API
UNDERDOG_LIVE=1 npm test     # also calls the real keyless demo

Registry

server.json describes this package and the hosted remote for the official MCP registry (name com.underdogapi/underdog, verified through the underdogapi.com domain).

Available Tools

14 tools
credit_costsCredit costs (keyless)A
Read-onlyIdempotent

The credit policy, or the credits one request would cost before you run it. Use it before a large keyed read. No key, no credits.

Inputs: path.

demo_boardDemo board (keyless)A
Read-onlyIdempotent

Fictional Underdog-style board rows in the exact live shape of get_board, to learn the fields before the user has a key. No key, no credits. The rows are fictional: never present them as real lines.

Inputs: limit, league.

demo_changesDemo change feed (keyless)A
Read-onlyIdempotent

Fictional change events (line.opened, line.moved and so on) in the exact live shape of get_changes, to build a polling loop before the user has a key. No key, no credits. The rows are fictional: never present them as real lines.

Inputs: limit.

get_boardCurrent boardA
Read-onlyIdempotent

The live Underdog Fantasy pick'em board: player, stat, line, and separate Higher and Lower payout multipliers per side with their tier, plus start time and observed_at. Use it for "what are the lines now"; get_board_as_of for a past instant, get_changes to poll only what moved, get_odds for sportsbook prices at the same line. Needs UNDERDOG_API_KEY (free key, no card, at https://underdogapi.com/sign-up); without one it returns the sign-up link and spends nothing.

Inputs: stat, view, limit, cursor, +3 more.

get_board_as_ofBoard at a past instantA
Read-onlyIdempotent

The board as it stood at a past instant, rebuilt from recorded history, for backtests and "what was the line at tip-off". Free keys read the last 24 hours. For now use get_board. Needs UNDERDOG_API_KEY (free key, no card, at https://underdogapi.com/sign-up); without one it returns the sign-up link and spends nothing.

Inputs: as_of (required), stat, limit, cursor, +2 more.

get_changesChange feedA
Read-onlyIdempotent

Ordered feed of board changes: line.opened, line.moved, line.repriced (multiplier), line.suspended, line.closed, line.restored, alternates.changed, each with before and after values. Store meta.next_cursor and pass it back to get only newer changes. For one market use get_line_history. Needs UNDERDOG_API_KEY (free key, no card, at https://underdogapi.com/sign-up); without one it returns the sign-up link and spends nothing.

Inputs: stat, limit, since, cursor, +2 more.

get_coverageCoverageA
Read-onlyIdempotent

Which leagues and stat slugs are on the board now, with line counts and the first recorded date per league. Call it first to pick valid league and stat values and avoid empty queries. Needs UNDERDOG_API_KEY (free key, no card, at https://underdogapi.com/sign-up); without one it returns the sign-up link and spends nothing.

Inputs: no named parameters.

get_hit_ratesPlayer hit ratesA
Read-onlyIdempotent

How often one player went Higher or Lower across recent graded games, per stat, voids excluded. Send player or player_id. For the graded rows themselves use get_results. Paid plans; a Free key gets a labelled sample and the upgrade link (HTTP 402). Needs UNDERDOG_API_KEY (free key, no card, at https://underdogapi.com/sign-up); without one it returns the sign-up link and spends nothing.

Inputs: last, stat, league, player, +1 more.

get_line_historyLine history of one marketA
Read-onlyIdempotent

Every recorded change of one market, oldest to newest: line and multiplier moves with times. Use it for "how has this line moved"; take the udm_ id from get_board. Needs UNDERDOG_API_KEY (free key, no card, at https://underdogapi.com/sign-up); without one it returns the sign-up link and spends nothing.

Inputs: projection_id (required).

get_multipliersBoosted and discounted sidesA
Read-onlyIdempotent

Only the sides on the current board whose payout multiplier differs from standard (boosted or discounted), with the multiplier. Use it to find boosted picks; get_board has every side. Needs UNDERDOG_API_KEY (free key, no card, at https://underdogapi.com/sign-up); without one it returns the sign-up link and spends nothing.

Inputs: stat, league, payout_tier.

get_oddsLines with sportsbook pricesA
Read-onlyIdempotent

Each current line as Higher and Lower odds entries, next to FanDuel, DraftKings and Novig prices and the no-vig fair probability at the same line where a book prices it. Use it to judge whether a pick'em side is good value; get_board has the lines alone. Five minutes behind on the free plan. Needs UNDERDOG_API_KEY (free key, no card, at https://underdogapi.com/sign-up); without one it returns the sign-up link and spends nothing.

Inputs: limit, cursor, league, market, +1 more.

get_payoutsPayout tablesA
Read-onlyIdempotent

Dated Underdog base payout tables for Standard, Flex and Streaks entries by pick count, to compute break-even probabilities. Reference data; takes no arguments. Needs UNDERDOG_API_KEY (free key, no card, at https://underdogapi.com/sign-up); without one it returns the sign-up link and spends nothing.

Inputs: no named parameters.

get_resultsGraded resultsA
Read-onlyIdempotent

Reviewed lines graded against the final box score: closing line, actual stat, and Higher, Lower or void (ties void). Use it to check how lines settled; get_hit_rates summarises one player. Paid plans; a Free key gets a labelled sample and the upgrade link (HTTP 402). Needs UNDERDOG_API_KEY (free key, no card, at https://underdogapi.com/sign-up); without one it returns the sign-up link and spends nothing.

Inputs: date, stat, limit, cursor, +4 more.

get_training_setTraining setA
Read-onlyIdempotent

One labelled row per graded line (line, multipliers, closing side tier, outcome) for model training, as JSON or CSV. For browsing results use get_results. Paid plans; a Free key gets a labelled sample and the upgrade link (HTTP 402). Needs UNDERDOG_API_KEY (free key, no card, at https://underdogapi.com/sign-up); without one it returns the sign-up link and spends nothing.

Inputs: date, stat, limit, cursor, +4 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 14 tools

    Disambiguation5/5

    Each tool targets a clearly distinct slice of the domain: live board vs. historical board vs. changes vs. per-market history vs. odds vs. multipliers vs. results/hit rates/training data. Descriptions cross-reference each other explicitly (e.g. 'get_board has every side', 'for one market use get_line_history'), and the demo_* tools are clearly separated from keyed live tools. An agent can select correctly without guessing.

    Naming Consistency4/5

    The dominant convention is a clean get_<resource> snake_case pattern (get_board, get_changes, get_line_history, get_hit_rates, etc.), and the two demo tools consistently share a demo_ prefix. Minor deviations are credit_costs (noun-only, no verb) and the demo_/get_ prefix split, but overall the pattern is predictable and readable.

    Tool Count5/5

    Fourteen tools sit comfortably in the well-scoped 3-15 range for a read-oriented market-data API. Each tool earns its place by covering a distinct view (current, historical, delta, odds, reference, modeling), with no redundant duplicates.

    Completeness5/5

    The surface covers the full read lifecycle for this domain: coverage discovery, live board, point-in-time reconstruction, change polling, per-market history, odds comparison, multipliers, results, hit rates, payout tables, and a training set export. Demo and credit-cost tools handle onboarding and cost-awareness, leaving no obvious dead ends for an agent.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • 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
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Props-first sports odds API with a hosted MCP server. Live odds and player props (moneyline, spreads, totals) across US sportsbooks, normalized to JSON. Tools: get_odds, get_props, get_events, get_books. API-key auth, free tier.
      MIT No Attribution
    • A
      license
      A
      quality
      F
      maintenance
      Provides AI agents with direct access to KingsPlaybook's sports data including confirmed lineups, player projections, game lines, and pick history via native MCP tools.
      5
      36 npm
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables querying probable football lineups with per-player start probability and expected fantasy points, match analysis, model picks, and a verified public track record across major European leagues through MCP tools.
      17
      62 npm
      MIT