guides

How to use sports odds in Claude Code with the PricedOdds MCP server

By · Published · Updated · 4 min read

To use sports odds in Claude Code, add the PricedOdds MCP server with one command: claude mcp add --transport http with the server URL and your key in an Authorization header. Claude Code then has 14 tools for odds data. This article has the command, the three scopes, how to check the connection and what a tool returns.

What is the command?

Run this once in a terminal, with your key in the PRICEDODDS_API_KEY environment variable.

claude mcp add --transport http pricedodds https://api.pricedodds.com/mcp \
  --header "Authorization: Bearer $PRICEDODDS_API_KEY"

The server is hosted, so there is nothing else to install. Configuration checked against the PricedOdds MCP server on November 23, 2026. Not tested inside the app.

Which scope should I use?

The Claude Code MCP docs, read on November 23, 2026, describe three scopes. You pick one with --scope.

ScopeWhere it appliesShared with a teamStored in
local (default)Current project onlyNo~/.claude.json
projectCurrent project onlyYes, through version control.mcp.json in the project root
userAll your projectsNo~/.claude.json

For a team, use the project scope and keep the key out of the file. Claude Code expands ${VAR} in the url and headers of .mcp.json, so each person keeps the key in their own environment.

{ "mcpServers": { "pricedodds": {
  "type": "http",
  "url": "https://api.pricedodds.com/mcp",
  "headers": { "Authorization": "Bearer ${PRICEDODDS_API_KEY}" } } } }

The same docs say that Claude Code asks for approval in interactive sessions before it uses a project-scoped server from .mcp.json.

How do I check that it is connected?

Three commands from the same docs, and one inside a session.

claude mcp list              # every server with its status
claude mcp get pricedodds    # details of this one
claude mcp remove pricedodds # remove it

claude mcp list shows a status next to each server, such as "Connected" or "Failed to connect". Inside a session, /mcp shows the number of tools next to each connected server. For PricedOdds that number should be 14: it is what the server listed when we called it from a script on November 23, 2026. Without a valid key the server answers HTTP 401.

What does a tool return?

A request such as "compare moneyline prices for tonight's NBA games" matches the compare_prices tool. We did not run it inside Claude Code. We called the tool from a script with the same URL and header on November 23, 2026, with league set to nba, market to moneyline and limit to 1. This is the answer, as an example and not a current price.

{ "data": [ {
    "event_id": "evt_7crncn3koszns4ci", "matchup": "MEM @ CHA",
    "startsAt": "2026-11-24T00:00:00.000Z", "market": "moneyline", "period": "1h",
    "selections": [
      { "side": "home", "line": null,
        "best": { "book": "prophetx", "decimal": 2.25, "american": 125 },
        "fair": { "american": 127, "prob": 0.4397 }, "ev": -0.0107 },
      { "side": "away", "line": null,
        "best": { "book": "novig", "decimal": 1.76, "american": -132 },
        "fair": { "american": -127, "prob": 0.5603 }, "ev": -0.0139 } ] } ],
  "asOf": "2026-11-23T21:50:48.539Z" }

For each side it has the top price across the books on the plan (best), the no-vig fair price (fair) and the expected value of that top price (ev). The formulas are in no-vig fair odds explained and expected value from odds data. Nothing here is betting advice.

What happens when an id is wrong?

The tool returns an error that says how to fix it. This is the answer to find_events with the league nbaa, from the same run.

{ "error": { "code": "unknown_league", "message": "Unknown league 'nbaa'.",
    "fix": "Did you mean nba? Use a league id from GET /v1/leagues (or GET /v1/sports), e.g. nba, epl.",
    "docs_url": "https://pricedodds.com/docs/errors#unknown_league",
    "request_id": "mcp", "did_you_mean": ["nba"] } }

The did_you_mean field gives the assistant the valid id, so it can retry without asking you. League ids come from list_leagues and market keys from list_markets.

How large are the answers?

It depends on the tool and the filters. In the same run, get_player_props for one NBA game, filtered to player_points and two books, returned 90,569 characters: 20 prop objects for 13 players, each with every line the books offered. Tool output takes room in the context of a session, so ask for one player (the player argument), one market or fewer books when that is all you need.

Which tools does Claude Code get?

The server has 14 tools. Thirteen read data and one, update_book_selection, changes the books on your plan, which is allowed once every 24 hours. None places a bet: PricedOdds is a data API, not a sportsbook.

  • list_books
  • list_leagues
  • list_markets
  • find_events
  • get_event_odds
  • compare_prices
  • get_player_props
  • get_fair_price
  • find_positive_ev
  • find_arbitrage
  • get_live_scores
  • get_coverage
  • update_book_selection
  • get_account

What each one does is on the connect page, and the arguments are in the AI agents docs. How the server works for any agent is in the MCP server guide.

Where do I start?

The MCP server is part of the API on every plan. Every plan starts with a 3-day free trial with a $1 card verification that is refunded immediately. The plan you pick at signup is charged from day 4 unless you cancel before the trial ends. The setups for other assistants are on the connect page, with step-by-step articles for VS Code and Windsurf. The books and leagues are on the coverage page, and the plans are on pricing. To get a key, create an account.