SockOdds

io.github.jamesellev0.1.0更新於 Oct 7, 2026

Australian sports odds from the SockOdds API: bookmaker prices, best price and no-vig fair odds.

已驗證STDIO僅桌面Data & AnalyticsFinance

概覽

AI 產生的概覽

讓助理透過 SockOdds API 查詢澳洲運動博彩賠率、最佳價格,以及去除抽水後的公平賠率。

功能
提供工具列出所涵蓋的聯盟,把球隊或賽事名稱轉成附有開始時間與事件 ID 的賽事,取得各博彩公司對勝負、讓分與總分市場的十進位賠率,找出某一方的最佳價格,並為兩方或三方市場計算去除抽水後的公平賠率。價格會附上讀取時間。示範模式不需金鑰即可回傳虛構的範例資料。
適用情境
適合需要查詢某場比賽目前澳洲博彩公司賠率或去除抽水後公平賠率,並希望助理註明來源與讀取時間的情境。不適用於賠率走勢歷史,此伺服器並未包含該功能。
執行需求
透過 npx 以 stdio 方式在本機執行,需要 Node.js 20 或更新版本。SockOdds API 金鑰透過環境變數 SOCKODDS_API_KEY 提供;免費金鑰需以手機號碼註冊並接收簡訊驗證碼。設定 SOCKODDS_DEMO=1 可在沒有金鑰時使用虛構範例資料。選用設定包括 SOCKODDS_TIMEZONE 與 SOCKODDS_BASE_URL。需要能連線至 SockOdds API 的網路。
安裝前請注意
API 金鑰屬於機密,透過 x-api-key 標頭傳送,註冊時僅顯示一次。免費方案限制為每月 2,500 個物件、每分鐘 10 次請求、約 2 分鐘更新一次,僅涵蓋 4 個聯盟與 3 家博彩公司;伺服器會快取回應 60 秒,並在遇到限流錯誤後停止呼叫。賠率隨時變動,輸出不構成投注建議;README 註明 18+ 並提供賭博求助管道。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 SockOdds,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

sockodds-mcp

Ask Claude "what are the odds on X right now" and get Australian bookmakers' prices, the best price and the no-vig fair price, from the SockOdds sports odds API. The free key covers 3 bookmakers and 4 leagues; paid plans add more (pricing).

A free, open-source MCP server plus a Claude Code skill, built for the "$1M in 365 Days" series. MIT licence.

30-second demo

This transcript uses demo mode (SOCKODDS_DEMO=1), so the prices are invented samples, not real odds.

You: What are the odds on Lions v Crows?

Claude calls find_event with { "query": "Lions v Crows", "league_id": "AFL" }:

text
1. Brisbane Lions v Adelaide Crows (AFL)   Starts: Sat, 12 Sept 2026, 7:35 pm AEST (09:35 UTC)   Event ID: afl_2026-09-12_brisbane_lions_vs_adelaide_crows   Best head to head: Brisbane Lions 1.95 (Unibet), Adelaide Crows 1.90 (TAB)

You: Is 1.95 on the Lions a fair price?

Claude calls fair_odds with { "event_id": "afl_2026-09-12_brisbane_lions_vs_adelaide_crows", "market": "h2h" }:

text
No-vig fair odds: Head to head, from 3 bookmakers  Brisbane Lions: fair 2.03 (49.3% chance)  Adelaide Crows: fair 1.97 (50.7% chance)Per bookmaker (margin, then its own no-vig prices):  Sportsbet: margin 5.3%, 2.03 / 1.97, read 11 Sept 06:00:12 UTC  TAB: margin 5.0%, 2.01 / 1.99, read 11 Sept 06:01:40 UTC  Unibet: margin 5.3%, 2.05 / 1.95, read 11 Sept 05:59:03 UTC

Claude: The best Lions price is 1.95 at Unibet (read 05:59 UTC). With the bookmakers' margins taken out, the Lions come out at about 2.03, so 1.95 is a little shorter than the fair price. Odds change, so check the price at the bookmaker. 18+. Nothing here is a tip. Gamble responsibly: Gambling Help Online 1800 858 858.

Tools

ToolWhat it does
list_leaguesLeagues SockOdds carries and whether your key's plan can read each one
find_eventTurns "Broncos v Bulldogs" or "AFL grand final" into events with start times and event IDs
get_oddsEach bookmaker's decimal prices for head to head, line and total, each with the time it was read
best_priceBest price for one side of one market, plus the field; suspended prices and other lines are left out
fair_oddsNo-vig fair price for a two- or three-way market (see the method below); also works by hand with no API call

How fair_odds works

For each bookmaker that prices every outcome at the same line, each price becomes an implied chance (1 / price). Those chances add up to more than 100%; the extra is the bookmaker's margin. Dividing each chance by the total removes the margin (the proportional method). The tool then averages each bookmaker's margin-free chances and turns them back into prices (1 / chance). It also shows each bookmaker's margin and the combined margin of the best prices.

The free plan's books are retail bookmakers, so this is an estimate of the chance, not a prediction. When your plan includes SockOdds' own fairOdds (built from exchanges and sharp books), the tool shows it too.

No line movement tool

SockOdds has a price history endpoint (/v2/odds/history/), but its homepage and FAQ list recorded price movements as a Pro and Platform feature. The free key cannot read it, so this server does not include an explain_line_movement tool.

Get a free SockOdds key

Get a free SockOdds key. No card needed. Sign-up asks for an Australian or international mobile number and sends a one-time SMS code to confirm it. The key is shown once, so copy it somewhere safe. To try the tools before signing up, set SOCKODDS_DEMO=1: every tool works on invented sample data, no key needed.

The free Developer plan, as stated on the pricing page, the signup page and the rate limit docs:

  • 2,500 objects a month (one event with all its markets and bookmakers is one object), reset each UTC calendar month
  • 10 requests a minute
  • About 2 minute update frequency
  • 4 leagues: MLB, NFL, AFL and NRL
  • 3 bookmakers: Sportsbet, TAB and Ladbrokes

To stay inside that, this server caches every response for 60 seconds, never retries a failed request, and after a rate limit error (HTTP 429) refuses further calls until SockOdds' Retry-After time has passed. find_event asks for one league and a date window where it can, and tells you how many objects a search used.

Install

You need Node.js 20 or newer. The server is on npm as sockodds-mcp, so there is nothing to build.

Claude Code

bash
claude mcp add sockodds --env SOCKODDS_API_KEY=your-key -- npx -y sockodds-mcp

No key yet? Try it on invented sample data first:

bash
claude mcp add sockodds --env SOCKODDS_DEMO=1 -- npx -y sockodds-mcp

To add the skill, which tells Claude when to use the tools and how to quote prices:

bash
mkdir -p ~/.claude/skills/sockodds-oddscurl -fsSL https://raw.githubusercontent.com/jameselle/sockodds-mcp/main/skill/SKILL.md -o ~/.claude/skills/sockodds-odds/SKILL.md

Claude Desktop

Add this to claude_desktop_config.json (Settings, Developer, Edit Config), then restart Claude Desktop:

json
{  "mcpServers": {    "sockodds": {      "command": "npx",      "args": ["-y", "sockodds-mcp"],      "env": {        "SOCKODDS_API_KEY": "your-key"      }    }  }}

For demo mode, swap the env block for "SOCKODDS_DEMO": "1".

Other MCP clients

Any client that runs a local (stdio) server: command npx, arguments -y sockodds-mcp, environment SOCKODDS_API_KEY. It is also listed in the official MCP Registry as io.github.jameselle/sockodds-mcp.

From source

bash
git clone https://github.com/jameselle/sockodds-mcp.gitcd sockodds-mcpnpm installnpm run buildclaude mcp add sockodds --env SOCKODDS_API_KEY=your-key -- node "$(pwd)/dist/src/index.js"

Settings

VariableDefaultMeaning
SOCKODDS_API_KEYnoneYour SockOdds key. Sent only in the x-api-key header. Without it the odds tools explain how to get one.
SOCKODDS_DEMOoffSet to 1 to try the tools with invented sample data and no key. Ignored when a key is set.
SOCKODDS_TIMEZONEAustralia/SydneyTime zone for start times (UTC is always shown too)
SOCKODDS_BASE_URLhttps://api.sockodds.com/v2API base URL

Develop

bash
npm installnpm test

Tests use Node's built-in test runner. They cover the fair odds maths, best price selection, parsing of the example responses from the SockOdds docs, the missing key and rate limit errors, and the MCP tools end to end. No test calls the live API.

docs/API-NOTES.md lists every endpoint and field this server relies on, with links to the SockOdds docs. fixtures/docs/ holds example responses copied from those docs; fixtures/demo/ holds invented data in the same shape for demo mode.

Release

package.json (version, mcpName) and server.json (version, packages[0].version) must carry the same version. To release:

bash
npm testnpm publishmcp-publisher login githubmcp-publisher publish

server.json lists this server in the official MCP Registry as io.github.jameselle/sockodds-mcp, and the registry checks that the npm package's mcpName matches. glama.json names the maintainers of the Glama listing.

Gamble responsibly

18+. Odds change all the time and nothing this tool shows is a tip or advice. If gambling is causing you or someone close to you harm, call Gambling Help Online on 1800 858 858 or visit gamblinghelponline.org.au. You can exclude yourself from Australian online bookmakers at BetStop.

Licence

MIT. See LICENSE.

來源:README.md,提交 0dcc1a5

工具

0
工具後設資料尚未被收錄。

版本歷史

1
  1. v0.1.0最新Oct 7, 2026