Skip to main content
Glama
Odds De-vig MCP Server

Odds De-vig MCP Server

by Mavline

Odds De-vig MCP Server

The Odds APIからスポーツオッズを取得し、ブックメーカーのマージン(vig)を除去するためのMCPサーバー。

✅ 最新の改善点(v1.1.0)

  • API使用量トラッキング:すべてのレスポンスにAPI呼び出しの残量が含まれるようになりました

  • リトライロジック:接続問題時の自動リトライ(3回試行)

  • エラーハンドリングの改善:ネットワークエラー処理の向上

  • レスポンス形式:summaryとapiUsageを含む構造化されたレスポンス

Related MCP server: betbetter-mcp

機能

ツール(Tools)

  1. get_sports - サポートされているスポーツのリストを取得(APIリクエストなし)

  2. get_today_mlb - 本日のMLB試合を処理済みオッズで取得(経済的)

  3. get_upcoming_odds - 生のオッズを取得(デフォルト:本日のMLB試合)

  4. get_processed_odds - マージンが除去された処理済みオッズを取得

  5. get_event_consensus - 特定のイベントのコンセンサスラインを取得

  6. 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_probability

2. 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
}

次のステップ

  1. Polymarket CLOB APIサーバー - Polymarketからデータを取得するため

  2. 比較サーバー - ラインの比較とアービトラージ検出のため

  3. ニュース/SERPサーバー - ニュースとコンテキストの取得のため

Available Tools

6 tools
get_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

    A3.6/5.0

    Scored across 6 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables 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 npm
      1
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Provides AI assistants with sports model win probabilities and fair odds across nine sports without requiring an API key.
      3
      54 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Wraps the Sports Game Odds API to provide sports game odds data through natural language queries.
      74 npm
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Sorqen 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