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](https://underdogapi.com/?utm_source=github&utm_medium=readme&utm_campaign=underdogapi-mcp) | [Docs](https://underdogapi.com/docs?utm_source=github&utm_medium=readme&utm_campaign=underdogapi-mcp) | [Free API key](https://underdogapi.com/sign-up?utm_source=github&utm_medium=readme&utm_campaign=underdogapi-mcp) | [Pricing](https://underdogapi.com/pricing?utm_source=github&utm_medium=readme&utm_campaign=underdogapi-mcp) | [All SDKs](https://underdogapi.com/sdks?utm_source=github&utm_medium=readme&utm_campaign=underdogapi-mcp)
Also for underdogapi.com: [Python: `pip install underdog-api`](https://github.com/underdogapi/underdogapi-python) | [JavaScript: `npm install underdog-api`](https://github.com/underdogapi/underdogapi-js)
An MCP server (stdio) for [Underdog API](https://underdogapi.com/?utm_source=github&utm_medium=readme&utm_campaign=underdogapi-mcp): 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:
```bash
claude mcp add underdog -e UNDERDOG_API_KEY=ud_... -- npx -y underdog-api-mcp
```
Claude Desktop, Cursor, Windsurf and other JSON-configured clients:
```json
{
"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.
## 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
```bash
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).
TDQS
Scored across 14 tools
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.
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.
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.
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.