Skip to main content
Glama
artemsoldatov

igaming-odds-mcp

igaming-odds-mcp

An MCP server that gives an AI assistant a set of exact, deterministic betting-odds tools: format conversions, bookmaker margin, parlay pricing, bet settlement, and Kelly staking. All the money math is integer-cents and floor-rounded, the same discipline a real settlement ledger uses.

It pairs with a companion project, bet-settlement-service, which settles bets on a double-entry ledger.

Tools it exposes

convert_odds converts a price between decimal, fractional, American and implied probability. bookmaker_margin works out the overround of a market and the fair odds once the margin is stripped out. parlay_odds combines several legs into one accumulator price. settle_single returns the return and profit in integer cents for a single bet. settle_accumulator settles a multi-leg accumulator, where any losing leg loses the whole bet and void legs drop to 1. settle_each_way settles an each-way bet, win and place parts separately. kelly_stake works out a Kelly-criterion stake for a given edge; a negative edge just recommends no stake at all.

Every input goes through a strict Zod schema, so bad odds (a decimal at or below 1, a probability outside 0 to 1, American at 0) come back as a readable tool error instead of a crash.

Related MCP server: sportsdata-mcp

Install

pnpm install
pnpm build
pnpm test      # 22 tests: pure math + a real MCP handshake over stdio

Using it from Claude Desktop

Add this to claude_desktop_config.json (on macOS that's ~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "igaming-odds": {
      "command": "node",
      "args": ["/absolute/path/to/igaming-odds-mcp/dist/index.js"]
    }
  }
}

Then just ask things like "convert 3/2 to American odds", "what's the margin on a 1.90 / 1.90 market", or "Kelly stake for decimal 2.0 at a true 60% with a $1000 bankroll" and it calls the tools instead of guessing at the math.

Example

Calling bookmaker_margin with decimalOdds [1.9, 1.9] returns:

{
  "overround": 1.052632,
  "marginPct": 5.2632,
  "fairDecimalOdds": [2, 2],
  "fairProbabilities": [0.5, 0.5]
}

A couple of implementation notes

All the logic is pure functions in src/odds.ts; the tool layer only validates input and formats output. Money stays as integer cents and rounding always favors the house, which is asserted in the tests, matching the rule a real settlement engine would follow. Odds convert to exact fractions through a bounded continued-fraction approximation, so something like 1.3333 round-trips to 1/3 instead of some ugly exact decimal.

Install Server
F
license - not found
A
quality
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    MCP-compatible server that gives AI agents access to alternative sports data across 30+ leagues — odds, events, probabilities, settlement, and futures for prediction markets, DFS platforms, and sportsbooks.
    29
    15
    MIT
  • A
    license
    B
    quality
    A
    maintenance
    An MCP server that exposes sports-data APIs from multiple providers (AFL, Sportsbet, Entain, NRL) as interchangeable tools, enabling cross-provider odds and stats comparison.
    100
    3
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    An MCP server that provides calculations for 11 betting methods including Martingale, Fibonacci, and Kelly Criterion. Enables users to initialize sessions, record wins/losses, and get next bet amounts through natural language.
    55
    11
    MIT

View all related MCP servers

Related MCP Connectors

  • The Odds API MCP — sportsbook odds across 70+ books, 30+ leagues

  • Sports Game Odds MCP — wraps the Sports Game Odds API (sportsgameodds.com)

  • market-spread MCP — cross-venue prediction-market landscape scanner.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/artemsoldatov/igaming-odds-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server