Skip to main content

Odds API MCP Server: Set It Up in Claude and Cursor

James Whitfield

James Whitfield

•9 min read
Odds API MCP Server: Set It Up in Claude and Cursor

The official Odds-API.io MCP server is a sports odds MCP server for Claude, Cursor and other AI clients. You ask for fixtures, prices or results in plain English, the model picks the tool, and the answer comes from the live v3 API.

This guide is for people who are comfortable editing a config file. It covers the exact setup for Claude Desktop, Claude Code and Cursor, six prompts with the tools they called and the answers that came back, and the errors you are most likely to hit. If you only use Claude Desktop and want the one-click extension, start with Claude for Sports Betting: Connect Live Odds with MCP. The full tool list and setup steps for other clients are on the MCP server page.

What you need

  • Node.js 18 or newer. The server runs with npx, so there is nothing else to install.
  • An Odds-API.io key from a paid plan. The server reads it from the ODDS_API_KEY environment variable only. No tool takes the key as an argument, and it is masked as *** in every output. Never paste it into the chat.
  • Bookmakers selected on your key. Your plan sets how many you can select, and asking for a new book can add it to the selection (see Troubleshooting).

Claude Code

One command adds the server. If ODDS_API_KEY is already set in your shell, for example from your profile or a secrets manager, pass it by reference:

claude mcp add odds-api --env ODDS_API_KEY="$ODDS_API_KEY" -- npx -y odds-api-mcp-server

Claude Code saves the value in its own config, so the key never goes through the chat. Run claude mcp list to check the server connected. Add --scope user to make it available in every project.

For a project .mcp.json at the repo root that you commit to git, reference the variable. Claude Code expands it from your environment when it starts the server, and asks you to approve a project server the first time:

{
  "mcpServers": {
    "odds-api": {
      "command": "npx",
      "args": ["-y", "odds-api-mcp-server"],
      "env": { "ODDS_API_KEY": "${ODDS_API_KEY}" }
    }
  }
}

Claude Desktop

Open the config file from Settings > Developer > Edit Config, or directly at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS and %APPDATA%\Claude\claude_desktop_config.json on Windows. Claude Desktop does not read your shell environment, so the key goes in the file:

{
  "mcpServers": {
    "odds-api": {
      "command": "npx",
      "args": ["-y", "odds-api-mcp-server"],
      "env": { "ODDS_API_KEY": "your-api-key" }
    }
  }
}

Quit and reopen Claude Desktop. The odds-api tools then show up in the tools menu of a new chat.

Cursor

Put the same block in ~/.cursor/mcp.json for all projects, or .cursor/mcp.json for one project:

{
  "mcpServers": {
    "odds-api": {
      "command": "npx",
      "args": ["-y", "odds-api-mcp-server"],
      "env": { "ODDS_API_KEY": "your-api-key" }
    }
  }
}

With the key written in the file, use the global one or add .cursor/mcp.json to .gitignore. Save the file and restart Cursor. Cursor's MCP settings should then list odds-api as enabled, with 36 tools in version 1.9.1.

Six prompts and what came back

I ran these in Claude Code on 12 November 2026 with a key on the Growth plan and six UK and European bookmakers selected. The tool calls are the ones Claude made. Answers are condensed to the data, and times are in UTC.

1. Fixtures

Prompt: "Which Premier League matches are on this weekend? Just the fixtures and kickoff times in UK time."

Tools: get_leagues, then get_events with league: england-premier-league for 13 to 17 November, which came back empty, then get_events again for 8 to 30 November.

There are no Premier League matches this weekend (13-15 November).
The next round is the weekend of 21-23 November:

Sat 21 Nov  12:30  Manchester City v Fulham
            15:00  Aston Villa v Sunderland
            15:00  Chelsea v Leeds United
            17:30  Newcastle v Arsenal
Sun 22 Nov  16:30  Liverpool v Manchester United
Mon 23 Nov  20:00  Brentford v Everton
(10 fixtures, list trimmed)

The football league list is large: get_leagues returned about 78,000 characters here. If you know the competition, name it in the prompt so Claude can go straight to search_events or get_events.

2. Best price and fair price

Prompt: "Newcastle v Arsenal on 21 November: where is the best price on each outcome of the match result, and what is the fair price?"

Tools: search_events, get_markets, get_odds_summary with markets: ML.

Outcome     Best    Bookmaker(s)                         Fair
Newcastle   6.00    ATG SE, SvenskaSpel, Unibet BE/DK/SE  6.04
Draw        4.415   1xbet                                 4.60
Arsenal     1.65    Play Alberta                          1.62

224 bookmakers compared, computed 18:59 UTC on 12 November.

get_odds_summary compares every bookmaker pricing that event and market, including books outside your selection. It returns best, average, median, worst and a fair price with the margin removed for each outcome. Live summaries need the Growth plan or above. Lower plans get a sample response marked demo: true, and the server tells the model to say so.

3. Compare your bookmakers

Prompt: "Compare Bet365, Unibet and William Hill on Liverpool v Manchester United (22 Nov): match result and over/under 2.5 goals only."

Tools: search_events, get_selected_bookmakers, get_markets, then get_odds with bookmakers: Bet365,Unibet,William Hill and markets: ML,Totals.

Match result   Liverpool  Draw  Man Utd
Bet365         1.70       4.10  4.33
Unibet         1.75       4.10  4.20
William Hill   1.75       4.00  4.00

Over/under 2.5  Over  Under
Bet365          1.50  2.50
Unibet          1.53  2.40
William Hill    no 2.5 line in the feed

4. Line movement

Prompt: "How has Bet365's match result price on Newcastle v Arsenal (21 Nov) moved since it opened?"

Tools: search_events, get_selected_bookmakers, get_odds_movements with bookmaker: Bet365 and market: ML.

Time (UTC)            Newcastle  Draw  Arsenal
Opened 31 Oct 19:45   5.25       4.10  1.571
8 Nov 04:46           5.50       4.10  1.571
8 Nov 15:31           5.00       4.00  1.60
9 Nov 04:07           5.25       4.10  1.571
Latest 11 Nov 06:33   5.75       4.20  1.533

Movements are pre-match and per bookmaker, so name one book and one market.

5. Grade bets

Prompt: "Grade these bets from last weekend's Premier League games: Chelsea to win at 1.80, and over 2.5 goals in Manchester City's match at 1.65."

Tools: search_historical_events twice, then one grade_bets call with both selections.

Chelsea to win          Sunderland 1-0 Chelsea (8 Nov)          Lost
Over 2.5 goals          Nottingham Forest 3-1 Man City (7 Nov)  Won
Both grades are final, settled on the 90-minute score.

grade_bets takes up to 50 bets per call, so a betting log can be graded in a single request.

6. A tool your plan does not include

Prompt: "Who is favourite to win the next PGA Tour event?"

Tools: list_outrights, which returned a 403 because the test key had no Outrights add-on. Claude did not retry the call. It quoted the error, then searched the web for prices, which is not shown here:

Outrights are a paid add-on. Add it in your dashboard:
https://odds-api.io/dashboard/billing#outrights

Keep responses small

Most tool calls are one API request against your hourly limit, and tool results use up the model's context when it reads them. Large responses also slow answers down. Claude Code saves very large results to a file, as it did with the league list above.

  • Pass `markets`. get_odds for Liverpool v Manchester United with three bookmakers was 73,897 characters without a markets filter and 1,081 with markets: ML. Market names are exact, such as ML, Spread and Totals. get_markets lists them per sport.
  • Name the bookmakers. Ask for two or three books, not your whole selection.
  • Use `fields`, `maxResults` and `limit` where a tool has them. On get_events, fields: home,away,date drops everything else on each event.
  • Use `get_odds_summary` for best-price questions. One compact response covers every bookmaker.
  • Give slugs when you know them. england-premier-league saves a large get_leagues call.

Ask "How many requests do I have left this hour?" and Claude calls get_usage, which reads the limit, remaining requests and reset time from the latest API call in the session.

Troubleshooting

  • 401 "You need to provide a valid apiKey". The API rejected the key: it is mistyped or no longer active. Check the env block in your config and restart the client. If ODDS_API_KEY is empty, the server does not start at all and logs "ODDS_API_KEY environment variable is required". In Claude Code, claude mcp get odds-api shows what was saved.
  • 403 naming a plan or add-on. The endpoint is not on your plan, for example golf outrights without the Outrights add-on. The message says what to enable and where. Retrying will not help.
  • 403 "Access denied. You're allowed max N bookmakers". Asking for a bookmaker outside your selection adds it to the selection while you are under your plan's limit. Once the limit is full, the request fails. Check get_selected_bookmakers, and plan your selection, because it can only be cleared once every 12 hours.
  • 429 "You have exceeded your rate limit". The hourly limit is spent, and the message says when it resets. The server tells the model not to retry before then.
  • The tools do not appear. Run node --version (18 or newer). Then set ODDS_API_KEY in a terminal and run npx -y odds-api-mcp-server. It should print "Odds-API.io MCP Server running on stdio" and wait. Claude Desktop writes MCP logs to ~/Library/Logs/Claude on macOS.

Next steps

The server's agent guide, skills/odds-api/SKILL.md in the GitHub repo, describes the call order, caching and error handling the model follows, and Claude can read it from the odds-api://guide resource. To build the same lookups into your own code, the AI and vibe coding docs cover llms.txt and the OpenAPI spec, and the SDK guide has the Python and Node.js clients.

Get live and pre-match odds from 500+ bookmakers

OddsNotifier and OddsHub run on the same real-time feed you get with the API.

See what's built with Odds API →