Connector guide6-minute read10 MCP tools7 languages

How to Connect The Odds API to Gemini via MCP

The Odds API (the-odds-api.com) v4: betting odds from US, UK, EU and Australian bookmakers for soccer, NFL, NBA, MLB, NHL, tennis and more, event odds with player props, live scores, participants and historical odds. Not the odds-api.io service.

HCBy HelpCode teamUpdated 6 min read Open-source on GitHub

No credit card · 7-day trial · Self-host alternative available

The Odds API

The Odds API

The Odds API (the-odds-api.com) v4: betting odds from US, UK, EU and Australian bookmakers for soccer, NFL, NBA, MLB, NHL, tennis and more, event odds with player props, live scores, participants and historical odds. Not the odds-api.io service.

tools

10

Region

INTL

Category

Sports

Authentication

Query Param Auth

Required env vars

THE_ODDS_API_KEY
Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source · AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Skip the install. Get this working in under 2 minutes.

Start a free trial on cloud.anythingmcp.com, add the The Odds API in one click, then point your AI client (Claude, ChatGPT, Copilot or Cursor) at the generated MCP endpoint. No Docker, no git clone, zero engineering experience required.

Start free trial

Summary

The Odds API (the-odds-api.com) v4: betting odds from US, UK, EU and Australian bookmakers for soccer, NFL, NBA, MLB, NHL, tennis and more, event odds with player props, live scores, participants and historical odds. Not the odds-api.io service.

Try asking

Example prompts for The Odds API

Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.

The Odds API · live via MCP
Share
Opus 4.7

Claude is AI and can make mistakes. Please double-check responses.

💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → The Odds API, paste your credentials, mint an MCP API key and you're done. No Docker, no git clone, no local server.

The Odds API + Gemini

The Odds API (the-odds-api.com) v4: betting odds from US, UK, EU and Australian bookmakers for soccer, NFL, NBA, MLB, NHL, tennis and more, event odds with player props, live scores, participants and historical odds. Not the odds-api.io service.

Prerequisites

See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:

THE_ODDS_API_KEY

Step 1 — Get credentials

Setting up takes about 2 minutes. You need an API key from the-odds-api.com. A free plan with 500 credits a month exists; historical odds need a paid plan.

  1. Sign up at the-odds-api.com. The key arrives by e-mail and is also shown on your account page.
  2. Paste it into THE_ODDS_API_KEY: 32 lowercase hex characters. The connector sends it as the apiKey query parameter; it is never a tool argument.
  3. Install the connector and run the_odds_api_list_sports: it lists the sports and competitions with the sport keys the other tools need, and costs no credits.

Not the odds-api.io service: AnythingMCP also has an Odds API connector, for odds-api.io. This one is for The Odds API at the-odds-api.com: use it when your key comes from there.

What it reads: odds from bookmakers in the US, UK, EU and Australia for soccer, American football, basketball, baseball, ice hockey, tennis, cricket, MMA and more; match winner, handicap, over/under and futures markets; the odds of one event in any market, including player props, alternate lines and period markets; live scores and results of the last 1 to 3 days; the teams and players of a sport; and, on paid plans, odds and events as they were at a past moment (snapshots since June 2020).

Every call counts against your credits: most calls spend credits from your monthly quota, and every answer shows the balance: credits remaining, credits used and the cost of that call. The AI keeps an eye on it and tells you when it runs low.

  • Free: the_odds_api_list_sports and the_odds_api_list_events.
  • 1 credit: the_odds_api_get_scores (2 with the results of past days), the_odds_api_get_event_markets, the_odds_api_list_participants and the_odds_api_get_historical_events.
  • Odds: number of markets times number of regions. One market in one region costs 1; match winner, handicap and over/under in the US and the EU together cost 6. Up to ten bookmakers named one by one count as one region. The AI starts with one market and one region.
  • Historical odds (paid plans only): 10 credits per market per region. The AI asks you before every such call.

Typical flow: the sport key first (soccer_epl, basketball_nba, americanfootball_nfl), then the free list of events with their ids and start times, then the_odds_api_get_odds for a whole sport, or the_odds_api_get_event_markets and the_odds_api_get_event_odds for one game with its player props.

Read-only, no bets: every tool only reads. No tool places a bet or changes your account, so there is nothing to confirm and no tool is switched off at install. Odds are information, not betting advice.

Reading the odds: odds are decimal unless you ask for American odds. The implied probability is 1 divided by the decimal odds. A soccer match winner market has three outcomes, including the draw. Prices change all the time and every bookmaker carries its last update, so the AI tells you how recent the odds are. Times come in UTC and the AI converts them to your time zone.

Limits: besides the monthly credits, too many requests at once answer 429; the AI waits a second and tries again.

Common errors: 401 means the key is missing or wrong, or the monthly credits are used up. 422 is an invalid parameter, such as an unknown market or region, or a historical call on a plan without history. 404 on an event means it has started or finished and is no longer listed.

The connector does not place bets, manage your the-odds-api.com account or plan, or tell you what to bet on.

Step 2 — Install the adapter

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

Step 3 — Add the connector in Gemini

Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide shows YOUR_SERVER_ID.

Gemini CLI reads MCP servers from ~/.gemini/settings.json (on Windows %USERPROFILE%\.gemini\settings.json). Add:

{
  "mcpServers": {
    "anythingmcp": {
      "httpUrl": "https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID",
      "headers": { "X-API-Key": "YOUR_MCP_API_KEY" }
    }
  }
}
  1. Create an MCP API key in AnythingMCP under MCP Servers → your server → API keys, and paste it in place of YOUR_MCP_API_KEY.
  2. Save the file and restart gemini.
  3. Run /mcp inside Gemini CLI (or gemini mcp list in your shell): anythingmcp should show as connected.
  4. Start prompting: Gemini CLI can now call the The Odds API tools.

Available tools

ToolWhat it does
the_odds_api_list_sportsSports and competitions The Odds API covers, with the sport key the other tools need, group, title, whether it is in season and whether it…
the_odds_api_list_eventsUpcoming and live events of a sport with event id, teams and start time, without odds
the_odds_api_get_oddsOdds for the upcoming and live games of a sport from many bookmakers, per market (h2h, spreads, totals, outrights)
the_odds_api_get_scoresLive scores and, with days_from, results of games completed in the last 1 to 3 days for a sport
the_odds_api_get_event_oddsOdds of one event in any market the bookmakers offer, including player props, alternate lines and period markets (e.g. player_pass_tds…
the_odds_api_get_event_marketsWhich market keys each bookmaker currently offers for one event, to pick markets for the_odds_api_get_event_odds
the_odds_api_list_participantsTeams or players of a sport with their participant id, as The Odds API names them
the_odds_api_get_historical_oddsOdds of a sport as they were at a past moment (snapshots since June 2020)
the_odds_api_get_historical_eventsEvents of a sport as listed at a past moment, with their event ids, for the historical event odds tool
the_odds_api_get_historical_event_oddsOdds of one event in any market as they were at a past moment (props and extra markets from May 2023)

Example prompts

  • "Compare the match winner odds for Arsenal vs Chelsea at the European bookmakers and show the implied probabilities."
  • "Which bookmaker has the best moneyline for each NBA game tonight?"
  • "What player props are on offer for Monday Night Football, and what do they cost in credits?"
  • "Give me last night's NHL scores."
  • "How many credits do I have left this month?"

FAQ

Where does Gemini CLI look for MCP servers? In ~/.gemini/settings.json for your user, or in .gemini/settings.json inside a project. gemini mcp list shows each server and whether it connects.

Next steps

Was this guide helpful?

Your The Odds API agent is one click away.

Install the connector, paste the key, prompt Gemini. Free for 7 days, no credit card.

Related guides

Connectors

How to Connect The Odds API to ChatGPT via MCP

The Odds API (the-odds-api.com) v4: betting odds from US, UK, EU and Australian bookmakers for soccer, NFL, NBA, MLB, NHL, tennis and more, event odds with player props, live scores, participants and historical odds. Not the odds-api.io service.

Connectors

How to Connect The Odds API to Claude via MCP

The Odds API (the-odds-api.com) v4: betting odds from US, UK, EU and Australian bookmakers for soccer, NFL, NBA, MLB, NHL, tennis and more, event odds with player props, live scores, participants and historical odds. Not the odds-api.io service.

Connectors

How to Connect The Odds API to Cursor via MCP

The Odds API (the-odds-api.com) v4: betting odds from US, UK, EU and Australian bookmakers for soccer, NFL, NBA, MLB, NHL, tennis and more, event odds with player props, live scores, participants and historical odds. Not the odds-api.io service.

Connectors

How to Connect The Odds API to Meta Muse via MCP

The Odds API (the-odds-api.com) v4: betting odds from US, UK, EU and Australian bookmakers for soccer, NFL, NBA, MLB, NHL, tennis and more, event odds with player props, live scores, participants and historical odds. Not the odds-api.io service.

Connectors

The Odds API to MCP: Compare Bookmaker Odds and Scores in any AI Agent

The Odds API (the-odds-api.com) v4: betting odds from US, UK, EU and Australian bookmakers for soccer, NFL, NBA, MLB, NHL, tennis and more, event odds with player props, live scores, participants and historical odds. Not the odds-api.io service.

Connectors

How to Connect Avito to Gemini via MCP

Let your AI work with your Avito business account: list your ads and change their prices, read views, contacts and calls statistics, check autoload uploads and their errors, the feed format and your wallet, and read Avito Messenger chats. Sending messages and changing autoload settings are optional and off by default.