Odds Data

v0.2.0
io.github.Nomad07/oddsdata-mcp Checked 4 days ago Published 5 days ago

MCP server providing public Polymarket prediction market data for AI models.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_markets Search prediction markets

Search public Polymarket prediction markets by text. Returns matching markets (flattened from events) with outcomes, implied probabilities, volume, liquidity and status. Paginate with `nextCursor`: no markets are skipped between pages. Read-only.

ParameterTypeDescription
query *stringFree-text search query, e.g. "us election" or "bitcoin".
cursorstringPagination cursor from a previous result (`nextCursor`). Use it only with the same query.
includeClosedbooleanInclude closed/resolved markets. Default: open markets only.
limitintegerMaximum number of markets to return (1-50).

get_market Get a prediction market

Fetch one Polymarket market by ID or slug (exactly one). Returns the question, description, outcomes with token IDs and prices, volume, liquidity, dates and status. Read-only.

ParameterTypeDescription
idstringPolymarket market ID (numeric string). Provide this or `slug`, not both.
slugstringPolymarket market slug. Provide this or `id`, not both.

get_market_history Get market price history

Historical price (implied probability, 0-1) for the yes or no outcome of a Polymarket market, by ID or slug. Points are oldest first and may be unevenly spaced: read `resolutionSeconds` on each point. Read-only.

ParameterTypeDescription
bucketSecondsintegerOptional bucket width in seconds (60-86400). Omit to let Polymarket choose. Minimum is 300 for "1w" and 600 for "1m"/"max". Fine buckets may be empty for old data.
idstringPolymarket market ID (numeric string). Provide this or `slug`, not both.
intervalstringLookback window. Note: "1m" is one MONTH. "max" is the full life of the market.
maxPointsintegerMaximum points returned. Longer series are evenly downsampled (first and last point are kept).
outcomestringWhich outcome to chart.
slugstringPolymarket market slug. Provide this or `id`, not both.

compare_markets Compare prediction markets

Fetch 2-10 Polymarket markets in parallel and return their facts side by side: question, outcomes, implied probabilities, 24h price change, volume, liquidity and status. Lookups that fail are listed under `failed` without failing the others. A market given more than once (for example by slug and by ID) is included once. Returns data only, no analysis. Read-only.

ParameterTypeDescription
markets *array2-10 market identifiers. Each is a market ID, a market slug, or a polymarket.com URL.

get_order_book Get a market order book

Current public order book for the yes or no outcome of a Polymarket market, by ID or slug. Bids (highest first) and asks (lowest first) with price, size in shares and cumulative size, plus best bid, best ask, midpoint and spread. Prices are 0-1. Read-only.

ParameterTypeDescription
depthintegerPrice levels returned per side (1-100). Totals always cover the whole book.
idstringPolymarket market ID (numeric string). Provide this or `slug`, not both.
outcomestringWhich outcome token to read the order book for.
slugstringPolymarket market slug. Provide this or `id`, not both.

get_market_prices Get live market prices

Live prices for 1-10 Polymarket markets: for the yes and no outcome of each, the midpoint, best bid and best ask (all 0-1), read from the order book rather than the cached market record. The yes midpoint is the implied probability. Lookups that fail are listed under `failed` without failing the others. Read-only.

ParameterTypeDescription
markets *array1-10 market identifiers. Each is a numeric market ID, a market slug, or a polymarket.com URL.

get_market_spread Get market bid-ask spread

Current bid-ask spread (best ask minus best bid, in price units 0-1) for the yes and no outcome of 1-10 Polymarket markets. A wide spread means a thin or uncertain market. Lookups that fail are listed under `failed` without failing the others. Read-only.

ParameterTypeDescription
markets *array1-10 market identifiers. Each is a numeric market ID, a market slug, or a polymarket.com URL.

get_last_trade_prices Get last trade prices

Price and side (BUY or SELL) of the most recent trade in the yes and no outcome of 1-10 Polymarket markets. The price is null for an outcome that has never traded. Lookups that fail are listed under `failed` without failing the others. Read-only.

ParameterTypeDescription
markets *array1-10 market identifiers. Each is a numeric market ID, a market slug, or a polymarket.com URL.

get_open_interest Get open interest

Open interest in USDC: the total value of positions currently held. Pass 1-10 markets (ID, slug or polymarket.com URL) for per-market figures, or omit `markets` for the global total across Polymarket. Lookups that fail are listed under `failed` without failing the others. Read-only.

ParameterTypeDescription
marketsarrayOptional. Omit to get the global open interest across all of Polymarket instead.

get_market_holders Get top market holders

Top holders of the yes and no outcome of a Polymarket market, by ID or slug, ordered by shares held (largest first). Each holder has a public wallet address, display name and share count; optionally entry price and profit and loss. Paginate with `nextCursor`. Public data only. Read-only.

ParameterTypeDescription
cursorstringPagination cursor from a previous result (`nextCursor`). Use it only with the same market and filters.
idstringPolymarket market ID (numeric string). Provide this or `slug`, not both.
includePnlbooleanInclude average entry price, current value and profit and loss per holder.
limitintegerTop holders returned per outcome (1-50).
minSharesnumberOnly holders with at least this many shares.
slugstringPolymarket market slug. Provide this or `id`, not both.

get_public_trades Get recent public trades

Recent public trades, newest first: for one market (by ID or slug), or across all of Polymarket when no market is given. Each trade has time, side, outcome, price, shares, value in USDC and a public trader wallet and display name. Filter by side or minimum size. Paginate with `nextCursor`. Read-only.

ParameterTypeDescription
cursorstringPagination cursor from a previous result (`nextCursor`). Use it only with the same filters.
idstringOptional. Polymarket market ID. Omit both `id` and `slug` for the global recent-trades feed.
limitintegerNumber of trades to return (1-100).
minTradeUsdcnumberOnly trades worth at least this many USDC (price x shares).
sidestringOnly trades on this side.
slugstringOptional. Polymarket market slug. Omit both `id` and `slug` for the global recent-trades feed.

search_events Search prediction events

Search public Polymarket events by text. An event groups related markets (for example every candidate in one election). Returns each event with its volume, liquidity, open interest, dates, tags and its busiest markets with implied probabilities. Use search_markets instead to get individual markets. Paginate with `nextCursor`. Read-only.

ParameterTypeDescription
query *stringFree-text search query, e.g. "world cup" or "fed rate".
cursorstringPagination cursor from a previous result (`nextCursor`). Use it only with the same query and filters.
includeClosedbooleanInclude closed/resolved events. Default: open events only.
limitintegerMaximum number of events to return (1-25).
maxMarketsPerEventintegerMarkets listed under each event, busiest first (0-20). 0 leaves the list out and returns the event summary only.