Odds Api Mcp Server

io.github.odds-api-io由 GitHub 账号 odds-api-io 发布v1.8.3更新于 Nov 7, 2026

Odds from 450+ bookmakers across 34 sports: odds, closing lines, settlement, golf outrights.

已验证STDIO仅桌面金融数据与分析

概览

AI 生成的概览

本地 MCP 服务器,通过 Odds-API.io 接口让助手获取 34 个运动项目、450 多家博彩公司的赛前与实时赔率。

可以做什么
  • 查询运动项目、联赛、盘口、博彩公司与参赛方,搜索或获取赛事(含进行中的赛事)。
  • 获取单场或多场赔率、赔率汇总、赔率变化以及近期更新的赔率。
  • 查找价值投注、套利机会与赔率下跌,并获取历史赛事、收盘赔率与历史赔率。
  • 查询投注结算状态、对一批投注进行判定,并读取高尔夫冠军盘赔率与结果。
  • 管理 API 密钥上的博彩公司选择,查看每小时请求额度与接口文档。
适用场景
适合让助手直接查询价格、比较不同博彩公司、筛选价值或套利机会、查看盘口走势,或对投注进行判定与回测,而无需自己编写接口调用。
运行要求
通过 npx 或全局 npm 安装后在本地运行(需 Node.js)。需要付费的 Odds-API.io 套餐与 API 密钥,密钥通过环境变量 ODDS_API_KEY 提供;需能访问 Odds-API.io v3 接口。赔率汇总、收盘赔率、高尔夫冠军盘等功能需更高套餐或附加组件。
安装前请注意
需要保存在 ODDS_API_KEY 中的付费 API 密钥,每次工具调用都会计入每小时请求上限。有两个工具会改变状态:select_bookmakers 写入博彩公司选择,clear_selected_bookmakers 清空选择(每 12 小时仅限一次)。赔率与分析仅供参考,不构成投注建议。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Odds Api Mcp Server,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Odds-API.io MCP Server

[npm version] [license: MIT]

MCP server for the Odds-API.io sports betting odds API. It gives Claude, Cursor, VS Code and other AI agents live and pre-match odds from 450+ bookmakers across 34 sports, plus odds summaries, closing lines, bet settlement, golf outrights, value bets, arbitrage and dropping odds.

Quickstart

  1. Get an API key at odds-api.io/pricing.

  2. Add the server to Claude Code:

    bash
    claude mcp add odds-api --env ODDS_API_KEY="your-api-key" -- npx -y odds-api-mcp-server
  3. Ask: "Show me upcoming Premier League matches with Bet365 odds."

Setup for Claude Desktop, Cursor and VS Code is below.

Get an API key

The server needs an Odds-API.io API key from a paid plan. Pick a plan at odds-api.io/pricing, then pass the key as the ODDS_API_KEY environment variable.

Full AI-tooling docs: docs.odds-api.io/ai-vibe-coding

Features

  • 33 tools covering every public Odds-API.io v3 REST endpoint: sports, markets, events, odds, odds summaries, line movements, value bets, arbitrage, dropping odds, historical events and odds, closing lines, bet settlement, golf outrights, participants, bookmaker id mappings and request quota. The WebSocket stream and the participant logo image are not tools; use the REST equivalents.
  • Built for agents: every tool says what to call first, what plan or add-on it needs and what it returns. Read tools carry readOnlyHint; only select_bookmakers and clear_selected_bookmakers change anything.
  • Small responses: compact JSON, a markets filter on every odds tool, and fields / maxResults on list tools.
  • Clear errors: a 403 (missing plan or add-on) or 429 (hourly limit) comes back with the API's own message and an instruction not to retry blindly.
  • Key safety: the key is read from ODDS_API_KEY only. No tool takes it as an argument, and it is masked as *** in every output and error.
  • Agent guide in skills/odds-api/SKILL.md: call order, caching, quotas and 429 handling. Also served as the odds-api://guide resource and, in short form, as the server's instructions.

Install in your client

One-Click Install (Claude Desktop)

Download the latest .mcpb file from Releases and open it. Claude Desktop will prompt you for your API key.

Claude Code CLI

bash
claude mcp add odds-api --env ODDS_API_KEY="your-api-key" -- npx -y odds-api-mcp-server

Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows):

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

Cursor

Add to your Cursor MCP settings (.cursor/mcp.json in your project or global config):

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

VS Code

Add to your VS Code settings (.vscode/mcp.json):

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

Global Install (alternative)

bash
npm install -g odds-api-mcp-server

Then use odds-api-mcp-server as the command instead of npx -y odds-api-mcp-server.

Configuration

VariableRequiredDescription
ODDS_API_KEYYesYour API key from a paid plan at odds-api.io/pricing

Requests go to https://api.odds-api.io/v3. Each tool call is one API request against your hourly limit (multi-event tools count as one).

Available Tools

Catalogue

ToolDescription
get_sportsList sports and their slugs. Call first
get_leaguesLeagues for a sport (all includes leagues without events)
get_marketsExact market names per sport, with shape, period and prematch/live flags
get_bookmakersAll bookmakers with status (ok, degraded, down) and reason
get_selected_bookmakersBookmakers selected on your key
select_bookmakersAdd bookmakers to your selection (writes)
clear_selected_bookmakersClear your selection, once per 12h (destructive)

Events

ToolDescription
get_eventsEvents with league, status (pending, live, settled, cancelled), date, participant and bookmaker filters, limit/skip
get_eventOne event with scores and live clock
get_live_eventsEvents in play now
search_eventsSearch by team or league name, status upcoming or live

Odds

ToolDescription
get_oddsOdds for one event; pass markets (max 40) to keep it small
get_multi_oddsOdds for up to 10 events in one request, with markets
get_odds_summaryBest, average, median, worst and fair price per line across bookmakers, for one or up to 10 events (Growth plan and above)
get_odds_movementsOpening, latest and every change for one market at one bookmaker
get_updated_oddsOdds changed since a timestamp, for named markets (max 40), with limit

Analysis

ToolDescription
get_value_betsPrices above a fair-odds estimate for a bookmaker, by sport and league. expectedValue is bookmaker/fair x 100, so edge % = expectedValue - 100
get_arbitrage_betsArbitrage across your bookmakers with sport, league, markets, minProfit, allCombinations. profitMargin is already a percentage
get_dropping_oddsBiggest drops at sharp bookmakers by sport, league, market and time window

Historical and closing lines

ToolDescription
get_historical_eventsFinished events for a league and date range
search_historical_eventsFinished events by team name
get_historical_oddsClosing odds and final score for one event, with markets
get_closing_linesClosing odds for every settled event across up to 10 leagues and 366 days

Settlement

ToolDescription
get_settlementsStatus, final score and final flag for up to 50 events
grade_betsGrade up to 50 bets as won, lost, void, half won, half lost, pending or ungradeable

Outrights (golf)

ToolDescription
list_outrightsTournaments for a sport (golf: PGA Tour, DP World Tour, LIV Golf, majors)
get_outright_oddsWinner, Top 5/10/20, Top N (Incl. Ties) and Make Cut odds, with markets and maxRunners filters
get_outright_resultsPositions, cut status and winners per market

Participants and mappings

ToolDescription
get_participantsTeams or players for a sport
get_participantOne team or player by ID
get_mappingsOur events and selections mapped to bookmaker ids (Polymarket, Kalshi), lookup or bulk sync with cursor

Account and reference

ToolDescription
get_usageHourly request limit, remaining requests and reset time
get_documentationFetch the full API documentation

Outrights

Golf outright odds and results are the Outrights add-on on paid plans. Call list_outrights with sport: "golf" for tournament ids, then get_outright_odds with the id and your bookmakers. Markets: Winner, Top 5, Top 10, Top 20 (boundary ties under the bookmaker's dead-heat rules), Top 5 (Incl. Ties), Top 10 (Incl. Ties), Top 20 (Incl. Ties) (ties paid in full) and Make Cut (only for events with a cut). A full field is 150+ golfers per market, so pass markets and maxRunners. get_outright_results lists every golfer's position and the winners per market once the tournament is settled.

Without the add-on the API answers 403 with a link to enable it; the server passes that message through and tells the agent to relay it rather than retry.

Closing lines

get_closing_lines returns closing odds for every settled event across up to 10 leagues in one request, over up to 366 days, so a season fits in one sweep (100 events per response; page with limit and skip). Use it for closing line value (CLV) and model backtests. For a single match use search_historical_events and get_historical_odds. Paid plans.

Prompts

PromptDescription
compare_oddsFind a match and compare prices across your bookmakers
settle_betsGrade a list of bets against final results
golf_outrightsShow golf tournament prices for a market

Resources

Resource URIDescription
odds-api://guideAgent guide: call order, caching, quotas, errors
odds-api://documentationComplete API documentation
odds-api://openapiOpenAPI specification

Example Usage

Once configured, ask your AI assistant things like:

  • "Show me upcoming Premier League matches"
  • "Get ML and totals odds for the next Arsenal match from Bet365 and SingBet"
  • "Where is the best price on the Lakers game, and what is the fair price?"
  • "Find value bets on Bet365 in baseball"
  • "Are there arbitrage opportunities over 1% between Bet365 and Unibet in football?"
  • "Show me how the spread moved for event 12345"
  • "Give me Premier League closing lines for last season from Bet365"
  • "Did these three bets win?"
  • "Who is favourite to win the next PGA Tour event, and what are the Top 10 prices?"
  • "How many requests do I have left this hour?"

Development

bash
git clone https://github.com/odds-api-io/odds-api-mcp-servercd odds-api-mcp-servernpm installnpm run buildnpm test

License

MIT

Links

来源:README.md,提交 7712034

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

4
  1. v1.8.3最新Nov 7, 2026
  2. v1.6.0Oct 13, 2026
  3. v1.5.3Sep 21, 2026
  4. v1.5.2Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分