@ugend/betfair-edge-mcp
v1.0.0
Published
MCP server for Betfair sports betting edge analysis — CLV measurement, market efficiency, value detection
Downloads
55
Maintainers
Readme
Betfair Edge MCP
Betfair sports betting analysis tools for value detection, CLV measurement, and edge quantification. Based on live betting data from 279+ bets across 12 sports.
What it does
| Tool | Description |
|------|-------------|
| get_sport_efficiency | Market efficiency map — which sports have confirmed positive CLV, which to avoid |
| compute_bet_edge | Calculate edge % and Kelly stake size from your probability estimate vs market odds |
| analyze_clv | Compute Closing Line Value — the single most important edge metric in sports betting |
| get_live_markets | Fetch upcoming Betfair markets for a sport (requires API credentials) |
| get_value_summary | Full orientation briefing: edge map, thresholds, danger patterns |
The Edge Framework
CLV (Closing Line Value) is the gold standard metric for sports betting. If you consistently get better prices than the market's closing line, you have real long-run edge — regardless of short-term win/loss variance.
CLV = (entry_price / closing_price) - 1 [for BACK bets]
CLV = (closing_price / entry_price) - 1 [for LAY bets]
Positive CLV = you beat the market = long-run edgeEdge Map (Live Data, March 2026)
| Market | Average CLV | Status | |--------|-------------|--------| | Tennis MATCH_ODDS | +0.6% | ✅ Deploy | | Football BTTS | +0.4% | ✅ Deploy | | Ice Hockey MATCH_ODDS | +0.5% | ✅ Deploy | | Basketball MATCH_ODDS | +0.3% | ✅ Deploy | | Rugby Union MATCH_ODDS | +0.3% | ✅ Deploy | | Football MATCH_ODDS | -14.76% | ❌ Avoid | | Football Over/Under | -14.6% | ❌ Avoid | | Football Correct Score | -2.3% | ❌ Avoid |
Installation
Claude Desktop
{
"mcpServers": {
"betfair-edge": {
"command": "node",
"args": ["/path/to/betfair-edge-mcp/index.js"],
"env": {
"BETFAIR_USERNAME": "your-username",
"BETFAIR_PASSWORD": "your-password",
"BETFAIR_APP_KEY": "your-app-key"
}
}
}
}Credentials are optional — get_sport_efficiency, compute_bet_edge, analyze_clv, and get_value_summary all work without them. Only get_live_markets requires API access.
Claude Code (CLI)
claude mcp add betfair-edge node /path/to/betfair-edge-mcp/index.js \
--env BETFAIR_USERNAME=your-username \
--env BETFAIR_APP_KEY=your-app-key \
--env BETFAIR_PASSWORD=your-passwordRequirements
- Node.js 18+
- Betfair API credentials (for live market access)
- Free developer account: developer.betfair.com
- Requires client SSL certificates for live access
Quick start
git clone <repo>
cd betfair-edge-mcp
npm install
node index.js # Runs on stdio (MCP protocol)Example prompts
Show me which Betfair sports have positive CLV and which to avoid
I think Man City has 65% chance of winning at 1.85 odds. Is this value?
I backed at 2.10 and closing price was 1.95. What's my CLV?
Get me upcoming tennis markets in the next 4 hours
Give me a full value betting briefing before I log into BetfairKey thresholds
- Minimum edge: 1.5% above implied market probability
- Per-match exposure: Max 8% of bankroll combined for same event
- Kelly sizing: Half-Kelly (conservative)
- Tennis edge cap: 8% (edge inverts above this — CLV-validated quirk)
- Competition penalties: Bundesliga +3%, Ligue 1 +2%, WTA +1.5%
Statistical note
CLV signals are valid from N≥200 bets per sport (Bailey & López de Prado 2014). Small sample sizes (<50 bets) should be treated as directional only, not statistically significant.
License
MIT
