Guides / Sports odds in Cursor: ask, then build a line-shopping script

Sports odds in Cursor: ask, then build a line-shopping script

By the dino.markets team · Updated 1 Dec 2026

Connect Cursor to the dino.markets MCP server and you can ask it for sports odds in plain words. You can then have it write code against the same prices. This guide adds the server, asks for NBA odds and ends with a Python script that finds the best moneyline for each team.

Add the odds server to Cursor

Add dino.markets to Cursor opens Cursor and asks you to install the server. You need the Cursor app and a free dino.markets account.

To add it by hand, put this in ~/.cursor/mcp.json for every project, or in .cursor/mcp.json for one project:

{
  "mcpServers": {
    "dino": {
      "url": "https://api.dino.markets/mcp"
    }
  }
}

Sign in

Open Customize in the sidebar, then MCPs, and turn on dino. Click its sign-in button (Connect or Authenticate) and sign in to dino.markets in the browser. The connection needs no key. To use a key instead, see the MCP server docs.

Ask for odds

Open a new Agent chat and start with a question that costs nothing:

Using the dino MCP server only: which leagues does dino.markets cover?

Then ask for prices:

Using the dino MCP server only: show the odds for tonight's NBA games.

Cursor may ask you to approve each tool call. We tested the setup in the Cursor app on 1 Dec 2026: it connected with the browser sign-in and answered both questions.

Ask Cursor for the script

Once you can see the prices, ask for code. This prompt says where the docs are and what to print:

Read https://dino.markets/docs/odds.md. Write best_prices.py, using only the Python standard library.
Call GET /v2/odds for NBA moneylines at draftkings, fanduel, betrivers, pinnacle, kalshi and polymarket.
Read the key from DINO_API_KEY. Ask for the next 3 games that have not started.
For each team, print the best price with its book, the lowest price with its book, and how many books had one.

Cursor words its own code, so yours will look different. Here is a version we wrote to the same request, to check yours against:

import json
import os
import sys
from urllib.error import HTTPError
from urllib.request import Request, urlopen

BOOKS = "draftkings,fanduel,betrivers,pinnacle,kalshi,polymarket"
URL = f"https://api.dino.markets/v2/odds?league=nba&markets=moneyline&books={BOOKS}&status=scheduled&limit=3"

key = os.environ.get("DINO_API_KEY")
if not key:
    sys.exit("Set DINO_API_KEY first.")

try:
    request = Request(URL, headers={"Authorization": f"Bearer {key}"})
    with urlopen(request, timeout=30) as response:
        data = json.load(response)
except HTTPError as error:
    sys.exit(f"HTTP {error.code}: {json.load(error).get('message', '')}")

for event in data["events"]:
    print(f"{event['away']['name']} at {event['home']['name']}, {event['start_time']}")
    for side in ("away", "home"):
        offers = [
            (float(outcome["price"]), outcome["american"], book["name"])
            for book in event["books"]
            for market in book["markets"]
            for outcome in market["outcomes"]
            if outcome["side"] == side
        ]
        if not offers:
            print(f"  {event[side]['name']}: no price yet")
            continue
        offers.sort(reverse=True)
        top = [book for price, _, book in offers if price == offers[0][0]]
        print(f"  {event[side]['name']}: {offers[0][1]} at {', '.join(top)} (lowest {offers[-1][1]} at {offers[-1][2]}, {len(offers)} books)")

Run the script

Create a key in the dashboard, then run the file in Cursor’s terminal. The call costs 1 credit.

export DINO_API_KEY="your key"
python3 best_prices.py

What the script printed

We ran our version on the API’s answer of 1 Dec 2026, 09:57 UTC, saved to a file. It printed:

Output
Memphis Grizzlies at Philadelphia 76ers, 2026-12-02T00:10:00Z
  Memphis Grizzlies: +194 at Polymarket (lowest +170 at BetRivers, 6 books)
  Philadelphia 76ers: -194 at Kalshi (lowest -217 at BetRivers, 6 books)
Indiana Pacers at Cleveland Cavaliers, 2026-12-02T00:10:00Z
  Indiana Pacers: +143 at BetRivers (lowest +130 at DraftKings, 6 books)
  Cleveland Cavaliers: -144 at Polymarket, Kalshi (lowest -179 at BetRivers, 6 books)
Atlanta Hawks at Miami Heat, 2026-12-02T00:40:00Z
  Atlanta Hawks: +120 at FanDuel (lowest +113 at Pinnacle, 6 books)
  Miami Heat: -122 at Polymarket (lowest -142 at FanDuel, 6 books)

The Kalshi and Polymarket prices are before their fees, so the gap to a sportsbook can be smaller than it looks.

Fix common problems

What you see What to do
dino is missing from the list Check that mcp.json is in .cursor in your project or home folder, then restart Cursor
dino shows Needs Authentication Click its sign-in button and finish in the browser
Cursor answers without calling dino Start the prompt with “Using the dino MCP server only”
Set DINO_API_KEY first. Run the export line in the same terminal
HTTP 401 The key is wrong or revoked. Create one in the dashboard
A team shows no price yet None of the books you named has a moneyline for it

Next steps

Questions

Do I need an API key in Cursor?

Not for asking questions. Cursor can sign in to dino.markets in the browser. The Python script calls the API itself, so it needs a key.

Can I use the key instead of the sign-in?

Yes. Add an Authorization header with your key to mcp.json. The MCP server docs have the file.

How many credits does it use?

A call for current prices costs 1 credit, in Cursor or from the script. Listing leagues, books and games is free. The Free plan has 1,000 credits a month.

Does it work in VS Code?

The server does, with a different settings file. The MCP server docs have it. The script runs anywhere Python 3 does.

Can Cursor place a bet?

Not through dino.markets. It returns prices only and does not place bets.