Odds De-vig MCP Server
Odds De-vig MCP Server
The Odds APIからスポーツオッズを取得し、ブックメーカーのマージン(vig)を除去するためのMCPサーバー。
✅ 最新の改善点(v1.1.0)
API使用量トラッキング:すべてのレスポンスにAPI呼び出しの残量が含まれるようになりました
リトライロジック:接続問題時の自動リトライ(3回試行)
エラーハンドリングの改善:ネットワークエラー処理の向上
レスポンス形式:summaryとapiUsageを含む構造化されたレスポンス
Related MCP server: betbetter-mcp
機能
ツール(Tools)
get_sports - サポートされているスポーツのリストを取得(APIリクエストなし)
get_today_mlb - 本日のMLB試合を処理済みオッズで取得(経済的)
get_upcoming_odds - 生のオッズを取得(デフォルト:本日のMLB試合)
get_processed_odds - マージンが除去された処理済みオッズを取得
get_event_consensus - 特定のイベントのコンセンサスラインを取得
get_api_usage - API使用統計を取得(APIリクエストを1回実行)
リソース(Resources)
odds://sports- サポートされているスポーツのリスト(APIリクエストなし)odds://today-mlb- 本日のMLB試合の処理済みオッズodds://processed- マージンなしの処理済みオッズ(デフォルト:本日のMLB)
マージン除去の方法
1. Proportional(比例法)- デフォルト
最もシンプルで一般的に使用される方法:
fair_probability = implied_probability / total_implied_probability2. Power(冪乗法/Shin)
より複雑で、結果の数を考慮した方法:
fair_probability = implied_probability^n / total_implied_probability^(n-1)3. Additive(加算法)
マージンをすべての結果に均等に分配します:
fair_probability = implied_probability - (total_vig / number_of_outcomes)インストールと実行
# Установка зависимостей
npm install
# Сборка
npm run build
# Запуск
npm start
# Разработка
npm run dev設定
環境変数ODDS_API_KEYを設定するか、デフォルトのキーを使用します:
export ODDS_API_KEY=your_api_key_here⚠️ API制限
重要: The Odds APIは無料プランでは月500リクエストの制限があります!
リクエストを節約するための最適化:
デフォルトでは本日のMLB試合のみをリクエスト
get_sportsはAPIリクエストなしでハードコードされたリストを返すget_today_mlbはデータを取得する最も経済的な方法すべてのリクエストはAPI使用量をログに記録
推奨事項:
テストには
get_today_mlbを使用テストでは1日20リクエストに制限
get_api_usageで使用量を監視
使用方法
スポーツのリストを取得(APIリクエストなし)
{
"tool": "get_sports"
}本日のMLB試合を取得(経済的)
{
"tool": "get_today_mlb",
"arguments": {
"deVigMethod": "proportional"
}
}処理済みオッズの取得
{
"tool": "get_processed_odds",
"arguments": {
"sport": "americanfootball_nfl",
"deVigMethod": "proportional",
"removeOutliers": true,
"minBookmakers": 3
}
}コンセンサスラインの取得
{
"tool": "get_event_consensus",
"arguments": {
"eventId": "event_id_from_api",
"deVigMethod": "power"
}
}データ構造
ProcessedEvent
interface ProcessedEvent {
id: string;
sportKey: string;
sportTitle: string;
commenceTime: string;
homeTeam: string;
awayTeam: string;
bookmakers: ProcessedBookmaker[];
consensusLine?: {
homeTeamFairOdds: number;
awayTeamFairOdds: number;
averageVig: number;
};
}ProcessedOutcome
interface ProcessedOutcome {
name: string;
americanOdds: number;
decimalOdds: number;
impliedProbability: number;
fairProbability: number; // После удаления маржи
}API制限
重要: 月500リクエストの制限!
現在の最適化:
MLBに焦点を当てる(毎日試合がある)
本日の試合のみリクエスト
スポーツのハードコードリスト
各リクエストのログ記録
モニタリング:
{
"tool": "get_api_usage"
}返り値:
{
"requestsUsed": "15",
"requestsRemaining": "485",
"monthlyLimit": 500,
"eventsFound": 12
}次のステップ
Polymarket CLOB APIサーバー - Polymarketからデータを取得するため
比較サーバー - ラインの比較とアービトラージ検出のため
ニュース/SERPサーバー - ニュースとコンテキストの取得のため
Available Tools
6 toolsget_api_usageA
Get current API usage statistics (makes 1 API call)
Inputs: no named parameters.
get_event_consensusA
Get consensus line for a specific event
Inputs: eventId (required), deVigMethod, minBookmakers, removeOutliers.
get_processed_oddsB
Get odds with vig removed and fair probabilities calculated
Inputs: sport, markets, regions, deVigMethod, +4 more.
get_sportsA
Get limited list of supported sports (no API call)
Inputs: no named parameters.
get_today_mlbB
Get today's MLB games with processed odds (API efficient)
Inputs: deVigMethod.
get_upcoming_oddsB
Get upcoming odds for sports events (limited to today by default)
Inputs: sport, markets, regions, commenceTimeTo, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
The tools have mostly distinct purposes: sports list, today's games, upcoming odds, processed odds, event consensus, and API usage. However, 'get_processed_odds' and 'get_event_consensus' could overlap for agents looking for the best line on an event, though descriptions clarify that processed odds gives probabilities and consensus gives a single line.
All tools follow the 'get_' prefix with a resource, which is consistent. The naming is clear and predictable, but some names like 'get_upcoming_odds' and 'get_processed_odds' are similar in structure, which is minor. No mixing of conventions.
With 6 tools, the server is well-scoped for a specialized odds processing service. Each tool serves a distinct function, and the count is within the ideal 3-15 range, providing enough coverage without being bloated.
The tool surface covers listing sports, fetching today's games, upcoming events, processed odds, consensus lines, and API usage. There are minor gaps such as no ability to fetch specific historical games or detailed event details beyond consensus, but the core workflow of getting and processing odds is complete.
Maintenance
Related MCP Connectors
Unofficial Sports Game Odds MCP — wraps the Sports Game Odds API (sportsgameodds.com)
Sportsbook-derived no-vig fair value with confidence, provenance, and history over REST/MCP.
Sports odds API for every book: sportsbook and prediction market prices for developers and AI agents, in one request.
Sports odds, schedules, scores, props and prediction-market lines from 25+ books. Read-only.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables fetching sportsbook odds, live scores, and event information across 70+ books and 30+ leagues, with tools to list sports, get scores, and discover events.83 npm1MIT
- AlicenseAqualityCmaintenanceProvides AI assistants with sports model win probabilities and fair odds across nine sports without requiring an API key.354 npmMIT
- AlicenseNot gradedqualityCmaintenanceWraps the Sports Game Odds API to provide sports game odds data through natural language queries.74 npm1MIT
- AlicenseNot gradedqualityDmaintenanceSorqen is a sports fair-value API + MCP server: it turns sportsbook odds into a versioned, no-vig consensus probability for NFL/NBA/MLB/NHL moneyline, spread, and total markets, with confidence, provenance, and freshness attached to every number instead of a black-box pick.MIT