Odds De-vig MCP Server
Odds De-vig MCP Server
MCP-Server zum Abrufen von Sportquoten von The Odds API und zum Entfernen der Buchmachermarge (vig).
✅ Neueste Verbesserungen (v1.1.0)
API Usage Tracking: Alle Antworten enthalten jetzt das verbleibende API-Aufruf-Kontingent
Retry Logic: Automatische Wiederholungen bei Verbindungsproblemen (3 Versuche)
Better Error Handling: Verbesserte Behandlung von Netzwerkfehlern
Response Format: Strukturierte Antworten mit summary und apiUsage
Related MCP server: betbetter-mcp
Funktionen
Tools
get_sports - Liste der unterstützten Sportarten abrufen (ohne API-Anfrage)
get_today_mlb - Heutige MLB-Spiele mit verarbeiteten Quoten abrufen (kosteneffizient)
get_upcoming_odds - Rohe Quoten abrufen (Standard: heutige MLB-Spiele)
get_processed_odds - Verarbeitete Quoten mit entfernter Marge abrufen
get_event_consensus - Konsenslinie für ein bestimmtes Ereignis abrufen
get_api_usage - API-Nutzungsstatistik abrufen (macht 1 API-Anfrage)
Ressourcen
odds://sports- Liste der unterstützten Sportarten (ohne API-Anfrage)odds://today-mlb- Heutige MLB-Spiele mit verarbeiteten Quotenodds://processed- Verarbeitete Quoten ohne Marge (Standard: heutige MLB)
Methoden zur Margenentfernung
1. Proportional - Standard
Die einfachste und am häufigsten verwendete Methode:
fair_probability = implied_probability / total_implied_probability2. Power (Exponentiell/Shin)
Eine komplexere Methode, die die Anzahl der Ergebnisse berücksichtigt:
fair_probability = implied_probability^n / total_implied_probability^(n-1)3. Additive
Verteilt die Marge gleichmäßig auf alle Ergebnisse:
fair_probability = implied_probability - (total_vig / number_of_outcomes)Installation und Start
# Установка зависимостей
npm install
# Сборка
npm run build
# Запуск
npm start
# Разработка
npm run devKonfiguration
Setzen Sie die Umgebungsvariable ODDS_API_KEY oder verwenden Sie den Standardschlüssel:
export ODDS_API_KEY=your_api_key_here⚠️ API-Limits
WICHTIG: The Odds API hat ein Limit von 500 Anfragen pro Monat für den kostenlosen Plan!
Optimierungen zur Einsparung von Anfragen:
Standardmäßig werden nur heutige MLB-Spiele abgefragt
get_sportsgibt eine fest codierte Liste ohne API-Anfrage zurückget_today_mlb- der kosteneffizienteste Weg, um Daten zu erhaltenAlle Anfragen protokollieren die API-Nutzung
Empfehlungen:
Verwenden Sie
get_today_mlbzum TestenBeschränken Sie sich auf 20 Anfragen pro Tag für Tests
Überwachen Sie die Nutzung über
get_api_usage
Verwendung
Abrufen der Sportartenliste (ohne API-Anfrage)
{
"tool": "get_sports"
}Abrufen der heutigen MLB-Spiele (kosteneffizient)
{
"tool": "get_today_mlb",
"arguments": {
"deVigMethod": "proportional"
}
}Abrufen der verarbeiteten Quoten
{
"tool": "get_processed_odds",
"arguments": {
"sport": "americanfootball_nfl",
"deVigMethod": "proportional",
"removeOutliers": true,
"minBookmakers": 3
}
}Abrufen der Konsenslinie
{
"tool": "get_event_consensus",
"arguments": {
"eventId": "event_id_from_api",
"deVigMethod": "power"
}
}Datenstruktur
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-Limits
KRITISCH: Limit von 500 Anfragen/Monat!
Aktuelle Optimierungen:
Fokus auf MLB (spielt täglich)
Nur Anfragen für heutige Spiele
Fest codierte Sportartenliste
Protokollierung jeder Anfrage
Überwachung:
{
"tool": "get_api_usage"
}Gibt zurück:
{
"requestsUsed": "15",
"requestsRemaining": "485",
"monthlyLimit": 500,
"eventsFound": 12
}Nächste Schritte
Polymarket CLOB API Server - zum Abrufen von Daten aus Polymarket
Comparison Server - zum Vergleich von Linien und zur Suche nach Arbitrage
News/SERP Server - zum Abrufen von Nachrichten und Kontext
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