OO-EPC-MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
OO-EPC-MCP πβ‘
A lightweight, high-performance Model Context Protocol (MCP) server for sports betting analytics and actuarial mathematics.
Built on FastMCP / official MCP Python SDK (MCPServer). Exposes pure mathematical algorithms with zero external API calls, zero secret keys, and sub-millisecond local deterministic execution.
π οΈ Tools Provided
1. devig_oo_epc
Calculates true unbiased 1X2 probabilities from 3-way bookmaker odds using the Tokyo University Shota Goto (2026) OO-EPC (Odds-on Equal Profit Margin) convex optimization algorithm.
Parameters:
home_odds(float): Decimal odds for Home Win (e.g.1.51)draw_odds(float): Decimal odds for Draw (e.g.4.30)away_odds(float): Decimal odds for Away Win (e.g.4.60)
Returns:
Unbiased true probability vector (
probabilities,percentages)Bookmaker overround / margin (
margin,margin_pct)Formatted display text (
63.4% / 19.1% / 17.5%)Structured parameter validation error payload if any odd is
<= 1.0
2. devig_oo_epc_batch (New in v1.1.0)
Single-call batch OO-EPC de-vigging across up to 21 bookmakers' opening and latest 1X2 odds, with automatic opening-to-latest probability shift (delta_prob_pct) and Pinnacle (cid=177) benchmark scissor-gap (gap_vs_pin_latest_pct) calculation.
Parameters:
items(List[Dict[str, Any]]): List of bookmaker items, each acceptingcid,name,open([home_odds, draw_odds, away_odds]), andlatest([home_odds, draw_odds, away_odds]).
Returns:
pinnacle_anchor: De-vigged latest benchmark probabilities when Pinnacle (cid=177/"εΉ³ε") is present in the batchresults: Per-bookmaker opening/latest OO-EPC probabilities, margins,delta_prob_pct,delta_margin_pct, andgap_vs_pin_latest_pcterrors: Self-correcting field-level validation diagnostics for any malformed entry
3. poisson_dixon_coles
Calculates bivariate Poisson match score probabilities with Dixon-Coles low-score factor adjustments (handling the systematic underestimation of low-scoring draws like 0-0, 1-1).
Parameters:
home_lambda(float): Expected goals for Home Team (e.g.1.85)away_lambda(float): Expected goals for Away Team (e.g.0.95)max_goals(int, optional, default8): Upper bound of goals evaluated per sidetop_n(int, optional, default6): Top $N$ most probable scorelines
Returns:
Expected total goals
True 1X2 win/draw/loss probability distribution
Top scorelines ranked by probability with exact percentages and fair odds
Related MCP server: PredictionMarketsPicks Quant
π Quick Start & Installation
Option 1: Run with uv (Recommended)
No manual environment setup needed:
uv run server.pyOption 2: Run with standard pip
pip install -r requirements.txt
python server.pyπ Client Integration
Claude Desktop
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"sports-math": {
"command": "python",
"args": [
"/path/to/OO-EPC-MCP/server.py"
]
}
}
}Hermes Agent
Add this to your ~/.hermes/config.yaml:
mcp_servers:
sports-math:
command: python
args:
- /path/to/OO-EPC-MCP/server.pyCursor (.cursor/mcp.json)
{
"mcpServers": {
"sports-math": {
"command": "python",
"args": ["/path/to/OO-EPC-MCP/server.py"]
}
}
}π Mathematical Citations
Goto, Shota (2026). Odds-on Equal Profit Margin (OO-EPC) Method for Multi-way Betting Market De-vigging. The University of Tokyo.
Dixon, M. J., & Coles, S. G. (1997). Modelling Association Football Scores and Inefficiencies in the Football Betting Market. Applied Statistics (Journal of the Royal Statistical Society: Series C), 46(2), 265β280.
π License
MIT License Β© 2026 i0ivi0i
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
Related MCP Connectors
Live odds, cross-book +EV and graded player-prop results across 37 books. Hosted endpoint included.
Free football match probabilities (Dixon-Coles), season projections and a public track record.
Convert, view, split, merge and track betting codes across bookmakers.
Sportsbook-derived no-vig fair value with confidence, provenance, and history over REST/MCP.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides AI agents with professional-grade tools for expected value calculation, Monte Carlo predictions, historical backtesting, and portfolio risk management in sports betting.-
- AlicenseAqualityBmaintenanceQuant tools for AI agents on Kalshi & Polymarket. 34 tools, 27 free with no key: EV, Kelly sizing, Bayes updates, odds conversion, base-rate gaps, combo grading, Fed odds, NFL and NHL models, 2026 Senate race odds, Kalshi weather board and Kalshi 15-minute markets + perps (live board + liquidation estimates). Pro adds commodity + NFL edge models, mispricing scanner and alerts.4438 npmMIT
- FlicenseAqualityDmaintenanceEnables fetching sports odds from The Odds API and removing bookmaker margin (vig) to compute fair probabilities, with tools for today's MLB games, processed odds, and consensus lines.6-
- FlicenseNot gradedqualityBmaintenanceEnables users to estimate football match probabilities using a Dixon-Coles model, compare them to de-vigged bookmaker odds, and identify value bets from Claude Desktop.-