npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ugend/betfair-edge-mcp

v1.0.0

Published

MCP server for Betfair sports betting edge analysis — CLV measurement, market efficiency, value detection

Downloads

55

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 edge

Edge 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 optionalget_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-password

Requirements

  • Node.js 18+
  • Betfair API credentials (for live market 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 Betfair

Key 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