
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.
概览
本地 MCP 服务器,通过 Odds-API.io 接口让助手获取 34 个运动项目、450 多家博彩公司的赛前与实时赔率。
- 可以做什么
- 查询运动项目、联赛、盘口、博彩公司与参赛方,搜索或获取赛事(含进行中的赛事)。
- 获取单场或多场赔率、赔率汇总、赔率变化以及近期更新的赔率。
- 查找价值投注、套利机会与赔率下跌,并获取历史赛事、收盘赔率与历史赔率。
- 查询投注结算状态、对一批投注进行判定,并读取高尔夫冠军盘赔率与结果。
- 管理 API 密钥上的博彩公司选择,查看每小时请求额度与接口文档。
- 适用场景
- 适合让助手直接查询价格、比较不同博彩公司、筛选价值或套利机会、查看盘口走势,或对投注进行判定与回测,而无需自己编写接口调用。
- 运行要求
- 通过 npx 或全局 npm 安装后在本地运行(需 Node.js)。需要付费的 Odds-API.io 套餐与 API 密钥,密钥通过环境变量 ODDS_API_KEY 提供;需能访问 Odds-API.io v3 接口。赔率汇总、收盘赔率、高尔夫冠军盘等功能需更高套餐或附加组件。
安装
在 SourceWeft 中
- 打开 控制台中的 Odds Api Mcp Server,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Odds-API.io MCP Server
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
-
Get an API key at odds-api.io/pricing.
-
Add the server to Claude Code:
-
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; onlyselect_bookmakersandclear_selected_bookmakerschange anything. - Small responses: compact JSON, a
marketsfilter on every odds tool, andfields/maxResultson 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_KEYonly. 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 theodds-api://guideresource and, in short form, as the server'sinstructions.
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
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):
Cursor
Add to your Cursor MCP settings (.cursor/mcp.json in your project or global config):
VS Code
Add to your VS Code settings (.vscode/mcp.json):
Global Install (alternative)
Then use odds-api-mcp-server as the command instead of npx -y odds-api-mcp-server.
Configuration
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
Events
Odds
Analysis
Historical and closing lines
Settlement
Outrights (golf)
Participants and mappings
Account and reference
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
Resources
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
License
MIT
Links
- Odds-API.io - Main website
- Documentation - API docs
- API Reference - Swagger/OpenAPI
- npm - Package registry
来源:README.md,提交 7712034
工具
0版本历史
4- v1.8.3最新Nov 7, 2026
- v1.6.0Oct 13, 2026
- v1.5.3Sep 21, 2026
- v1.5.2Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分