MCP server
Historical Odds MCP Server for Claude, Cursor and ChatGPT
SportsDataHQ's hosted MCP server serves historical sportsbook odds and player prop history as market data across nine sports. Ask Claude, ChatGPT or Cursor for opening and closing lines, hourly line movement and how a player finished against a prop line. 1,000 free credits a month. Nothing to install.
What your agent can do with it
Odds history is a time series. A price is only useful with the moment it was captured, the line it belonged to and what happened afterward. The odds tools return all three, so an agent can answer questions about how a market behaved instead of just quoting a number.
Four kinds of history are available.
- Opening and closing game lines. Each sportsbook's moneyline, spread or run line and total, with implied probabilities, and for finished games whether the favourite won and whether the total went over the median close.
- Line movement. Hourly snapshots grouped by sportsbook, with a capture time on each. By default a snapshot identical to the one before it is left out, so every move and its time stays visible.
- Extra markets and ladders. Alternate spreads and totals (every point on each book's ladder), first-half, first-quarter, period and first-five-innings lines, both teams to score and similar, as opening and closing prices per book.
- Player props. Lines by book, the movement of a line before a game, and a game-by-game history of a player against a line with the result and the over rate.
All of it is information about the market. The tools do not suggest a wager, work out a stake or payout, or send anyone to a sportsbook, and neither does this page.
The hub has one URL for everything, https://mcp.sportsdatahq.com/mcp, and a route per sport such as https://mcp.sportsdatahq.com/mcp/nba. Each brand also runs its own server at https://mcp.<brand>.com/mcp with a single-sport key and 500 free credits a month.
Connect it to your client
You need a free SportsDataHQ key from app.sportsdatahq.com, with 1,000 credits a month across every sport. Claude and ChatGPT connectors sign you in with OAuth. Command-line and editor clients send the key in an x-api-key header. Connecting and listing tools cost nothing.
Claude Code
claude mcp add --transport http sportsdatahq https://mcp.sportsdatahq.com/mcp --header "x-api-key: YOUR_API_KEY"The root URL exposes four discovery tools (list_sports, find_tool, describe_tool, run_tool) that reach every sport. To keep odds questions pointed at one sport, add that sport's route instead, for example https://mcp.sportsdatahq.com/mcp/mlb.
Claude.ai and Claude Desktop
Open Customize, then Connectors, choose Add custom connector, name it sportsdatahq and paste https://mcp.sportsdatahq.com/mcp. Sign in the first time a tool runs and press Allow. The local Claude Desktop config file uses the mcp-remote bridge:
{
"mcpServers": {
"sportsdatahq": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp.sportsdatahq.com/mcp", "--header", "x-api-key:YOUR_API_KEY"]
}
}
}Cursor
{
"mcpServers": {
"sportsdatahq": {
"url": "https://mcp.sportsdatahq.com/mcp",
"headers": { "x-api-key": "YOUR_API_KEY" }
}
}
}ChatGPT
Add a custom MCP app or connector in developer mode (workspace plans, and an admin may need to enable it), paste https://mcp.sportsdatahq.com/mcp and choose OAuth.
Example questions and the tools they call
| Question | Tools called | Credits |
|---|---|---|
| What were the opening and closing moneyline, run line and total at each book for one MLB game? | get_odds | 5 |
| How did one NBA game's spread and total move hour by hour before tip-off? | get_line_movement | 10 |
| What was a book's line at 9am on game day compared with the close? | get_line_at_time | 5 |
| How did a starting pitcher finish against his strikeout line in each start last September? | search_players, get_prop_history | 1 + 10 |
| What did the first-inning total look like at each book, opening and closing? | get_market_odds | 10 |
| Show the full alternate run-line ladder for one game at each book. | get_alt_lines | 10 |
| Across all finished games, how often did a kind of prop finish over its median closing line, with the sample size and interval? | get_prop_backtest | 25 |
| How fresh is the odds dataset for each sport? | get_data_status | 1 |
An agent asked about a past market should pass the sport and game id explicitly and ask for the capture times. A price without a capture time is only a closing price, and the responses say so in a note when the time is unknown.
Where odds tools exist
Tool counts come from tools/list on each route, run on December 6, 2026.
| Sport route | Tools on route | Odds-related tools |
|---|---|---|
/mcp/nba | 31 | get_odds, get_line_movement, get_line_at_time, get_player_props, get_prop_history, get_prop_movement, get_market_odds, get_alt_lines, get_prop_probabilities, get_prop_backtest |
/mcp/nfl | 33 | the same set plus get_alt_player_props |
/mcp/nhl | 29 | the same set as basketball |
/mcp/mlb | 26 | get_odds, get_line_movement, get_line_at_time, get_market_odds, get_alt_lines, get_player_props, get_prop_history, get_prop_movement |
/mcp/soccer | 31 | get_odds, get_line_movement, get_line_at_time, get_market_odds, get_player_props, get_prop_history, get_prop_movement, get_prop_probabilities, get_prop_backtest |
/mcp/mma | 12 | get_odds, get_line_movement |
/mcp/cricket | 19 | get_odds, get_line_movement, get_market_vs_model |
/mcp/tennis | 15 | get_odds |
/mcp/golf | 16 | get_winner_odds |
Credit costs
| Credits | Typical odds tools |
|---|---|
| 1 | get_data_status |
| 5 | get_odds (one game), get_line_at_time, get_game_probabilities |
| 10 | get_odds (a whole day, in most sports), get_line_movement (most sports), get_player_props, get_prop_movement, get_market_odds, get_alt_lines, get_prop_probabilities |
| 10 per 25 games | get_prop_history, with a 10-credit minimum per call |
| 25 | get_prop_backtest, and get_line_movement in football and hockey |
Prices vary by sport, and describe_tool returns the exact cost before you spend anything. Many tools also take estimate_only, which prices a call without charging for it.
Verified examples you can run now
Export your key as KEY first. Each of these was run against the live API on December 6, 2026 and returned HTTP 200.
One game's lines at each book, opening and closing (5 credits):
curl -s -X POST https://api.sportsdatahq.com/v1/mlb/get_odds \
-H "x-api-key: $KEY" \
-H "Content-Type: application/json" \
-d '{"game_id": "401908046"}'The result for that game included the median closing moneyline for the home side (+122), the median total (6) and a note that the book's capture time was unknown because the line was loaded after the start.
Hourly line movement for one NBA game (10 credits):
curl -s -X POST https://api.sportsdatahq.com/v1/nba/get_line_movement \
-H "x-api-key: $KEY" \
-H "Content-Type: application/json" \
-d '{"game_id": "401859967"}'The response groups snapshots by book. One book's home total moved from 216.5 to 215.5 in the last hour before the game, with each capture timestamped.
A pitcher against his strikeout line, start by start (10 credits):
curl -s -X POST https://api.sportsdatahq.com/v1/mlb/get_prop_history \
-H "x-api-key: $KEY" \
-H "Content-Type: application/json" \
-d '{"player_id": "42409", "market": "pitcher_strikeouts", "from_date": "2026-09-01", "to_date": "2026-09-30"}'It returned five starts, each with the closing line, opening line, prices, the number of books, what he recorded and the result against the line. The summary read 2 overs and 3 unders, an over rate of 0.4, average line 7.9 and average actual 6.6. That describes five past games and says nothing about the next one.
Pricing a call before running it (0 credits):
curl -s -X POST https://api.sportsdatahq.com/v1/mlb/get_prop_history \
-H "x-api-key: $KEY" \
-H "Content-Type: application/json" \
-d '{"player_id": "42409", "market": "pitcher_strikeouts", "from_date": "2026-09-01", "to_date": "2026-09-30", "estimate_only": true}'Extra-market history for one game (10 credits):
curl -s -X POST https://api.sportsdatahq.com/v1/mlb/get_market_odds \
-H "x-api-key: $KEY" \
-H "Content-Type: application/json" \
-d '{"game_id": "401908046", "market": "totals_1st_1_innings"}'And the tool list on the hub root, which costs nothing:
curl -s -X POST https://mcp.sportsdatahq.com/mcp \
-H "x-api-key: $KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'When not to use this
- You want a pick, a stake or a bet. The tools return prices and probabilities as data about the market. They do not recommend a wager, work out a stake or payout, point to a sportsbook or place anything.
- You need live odds. Odds and props are pre-game only. A line captured after the scheduled start is flagged with a negative number of minutes before start.
- You need second-by-second ticks. Line movement is hourly snapshots, and a snapshot identical to the one before it is dropped unless you ask for all of them. Most extra markets hold one or two captures per book.
- You need deep prop history. Player props start in 2023 in most sports, and some sports have no props at all. Tennis, golf and MMA have game lines or winner prices only, and golf covers the winner market of the four men's majors.
- You want a raw feed to resell. You may store the data, train models, backtest and build products that show your users what you derive. You may not redistribute the data, or odds as a raw feed, as a dataset or API of its own.
- You need a decade of lines in bulk. Pulling it one game at a time is the expensive route. A Parquet data package delivers it in one download.
Source and related pages
Per-sport detail is on each sport's page: NBA, NFL, NHL, soccer and MLB, plus the free sports data MCP server overview.
Try it
- Get a free key: 1,000 credits a month, no card.
- Skip the API and download a data package if you want full odds history in a file.
FAQ
What does the historical odds MCP server return?
Each sportsbook's moneyline, spread and total as opening and closing prices, hourly line movement before the start, alternate ladders, extra markets such as first-half lines, and player prop lines with what the player recorded. Every price is returned as market data with implied and fair probabilities.
Which sports have odds history?
Basketball, football, hockey, baseball, soccer, MMA, tennis, cricket and golf each have odds tools on the hub. Depth varies: football has consensus closing spreads and totals back to 1999, MLB has opening and closing lines from July 2020, and player props start in 2023. Check each sport's get_data_status for exact coverage.
Are the odds live?
No. Odds and props are pre-game only, captured before the start. Each row says when it was captured, and some older closing lines have an unknown capture time, which the response states in a note.
Does it tell me what to bet?
No. The tools return prices, implied probabilities and past results as information about the market. They do not recommend a wager, work out a stake or payout, point to a sportsbook or place anything.
Checked against the live API on 2026-12-06. Questions: hello@sportsdatahq.com.