
Odds Data
Prediction market data for AI models.
Odds Data is an MCP server for AI models and agents to access public Polymarket prediction market data. It provides structured access to market discovery, details, historical probabilities, trending markets and outcome comparisons.
Independent project. Odds Data is not affiliated with or endorsed by Polymarket.
Features
- Search prediction markets by text.
- Retrieve market details by ID or slug.
- Retrieve price history for the yes or no outcome of a market.
- Find the markets trading the most volume right now.
- Compare several markets side by side.
- No API key or account credentials required.
MCP tools
All tools are read-only. Prices are numbers from 0 to 1, so the price of the yes outcome is its implied probability.
| Tool | What it does |
|---|---|
search_markets | Searches public markets by text. Markets are flattened out of the matching events, and each carries its event. Supports cursor pagination. |
get_market | Fetches one market by id or slug, including description, outcomes with token IDs, prices, volume, liquidity, dates and status. |
get_market_history | Returns price history for the yes or no outcome of a market. |
get_trending_markets | Lists open markets ranked by 24-hour volume, optionally filtered by tag. |
compare_markets | Fetches 2 to 10 markets in parallel and returns their facts side by side. Failed lookups are reported without failing the rest. |
Parameters
search_markets
query(string, required): search text, 1 to 200 characters.limit(integer, optional): maximum markets to return, 1 to 50. Default 10.includeClosed(boolean, optional): include closed or resolved markets. Defaultfalse.cursor(string, optional): thenextCursorfrom a previous result. Use it only with the same query.
get_market
id(string) orslug(string): provide exactly one.
get_market_history
idorslug: provide exactly one.outcome("yes"or"no", optional): default"yes".interval("1h","6h","1d","1w","1m"or"max", optional): default"1d"."1m"means one month.bucketSeconds(integer, optional): bucket width, 60 to 86400. The minimum is 300 for"1w"and 600 for"1m"and"max". Omit it to let Polymarket choose.maxPoints(integer, optional): maximum points returned, 2 to 2000. Default 200. Longer series are evenly downsampled, keeping the first and last point.
get_trending_markets
limit(integer, optional): number of markets, 1 to 50. Default 10.tag(string, optional): a Polymarket tag slug such aspolitics, or a numeric tag ID.
compare_markets
markets(string array, required): 2 to 10 entries. Each is a numeric market ID, a market slug, or a polymarket.com URL.
Every result is a single JSON text block. Errors are returned with isError: true and a stable error.code (rate_limited, invalid_input, not_found, unsupported_market, upstream_error, network_error, aborted or internal_error).
Full details, example calls and example responses are in the documentation.
Requirements
- Node.js 24 or newer.
@polymarket/client, the official Polymarket TypeScript SDK (used through its unauthenticated public client).@modelcontextprotocol/server, the MCP SDK.- No API key is needed for public market data.
Installation
npm
Odds Data is published on npm as oddsdata-mcp. Your MCP client launches it with one command, so there is nothing to install by hand:
npx -y oddsdata-mcp
Put that command in your client's MCP configuration (see Supported MCP clients). The server takes no arguments and needs no environment variables.
Run from source (development)
To work on the server itself, build it from the mcp/ directory. The commands use Bun, the tooling the server is built and tested with.
cd mcp
bun install
bun run build
node dist/index.js
Launched by hand, the server prints one readiness line on stderr and then waits for an MCP client on stdin. Logs go to stderr, and stdout carries only protocol messages.
Supported MCP clients
Compatible with Claude Desktop and other MCP-compatible applications, AI agents, and clients - including future clients that support the Model Context Protocol (MCP).
Odds Data is a local stdio MCP server, so it works with any MCP client that can launch a local server process. The clients below have setup instructions here, and they all document support for local stdio servers. The list is not exhaustive. Each registers the server in its own place, but all of them run the same command and use the same key, oddsdata. None needs a remote endpoint, and Odds Data has none.
| Client | Where it is configured | Format |
|---|---|---|
| Claude Desktop | claude_desktop_config.json | JSON (mcpServers) |
| Claude Code | claude mcp add, or .mcp.json | CLI, or JSON (mcpServers) |
| OpenAI Codex | ~/.codex/config.toml, or codex mcp add | TOML, or CLI |
| Cursor | ~/.cursor/mcp.json or .cursor/mcp.json | JSON (mcpServers) |
| VS Code (GitHub Copilot) | ~/.copilot/mcp-config.json or .mcp.json | JSON (mcpServers) |
| Windsurf | mcp_config.json | JSON (mcpServers) |
| Cline | cline_mcp_settings.json | JSON (mcpServers) |
| Roo Code | mcp_settings.json or .roo/mcp.json | JSON (mcpServers) |
| Gemini CLI | ~/.gemini/settings.json or .gemini/settings.json | JSON (mcpServers), or CLI |
| Zed | settings.json | JSON (context_servers) |
| Continue | .continue/mcpServers/*.yaml | YAML (mcpServers) |
| Goose | ~/.config/goose/config.yaml | YAML (extensions) |
| JetBrains AI Assistant | Settings, Tools, AI Assistant, Model Context Protocol (MCP) | JSON (mcpServers) |
| Other Compatible MCP Clients | Any client that can launch a local stdio server | See below |
Every client launches the server with npx -y oddsdata-mcp, which needs Node.js 24 or newer.
Shared configuration
Most of these clients (Claude Desktop, Claude Code, Cursor, VS Code, Windsurf, Cline, Roo Code, Gemini CLI and JetBrains AI Assistant) read the same mcpServers JSON object. The entry is identical everywhere; only the file differs. If the file already lists other servers, add oddsdata inside the existing mcpServers object. No env block is needed.
{
"mcpServers": {
"oddsdata": {
"command": "npx",
"args": ["-y", "oddsdata-mcp"]
}
}
}
Client-specific notes:
- Claude Desktop: open Settings, Developer, Edit Config. Quit and reopen the app after saving, then check Connectors for
oddsdataand its five tools. - Claude Code:
claude mcp add --transport stdio --scope user oddsdata -- npx -y oddsdata-mcp. Check withclaude mcp listor/mcp. - VS Code (GitHub Copilot): the same object goes in
~/.copilot/mcp-config.jsonor a workspace-root.mcp.json. VS Code's examples add"type": "stdio"to the entry..vscode/mcp.json(aserverskey) belongs to VS Code's deprecated Local harness. - Windsurf: use Open MCP config file in Cascade, then refresh.
- Cline and Roo Code: open the MCP settings from the extension's panel and choose the configuration file. Roo Code also has a per-project
.roo/mcp.json. - Gemini CLI: put the entry in
~/.gemini/settings.json(all projects) or.gemini/settings.json(one project). Check with/mcp. - JetBrains AI Assistant: paste the entry in the New MCP Server dialog. If you already use Claude Desktop, Import from Claude reuses its configuration.
Clients with a different format
OpenAI Codex. codex mcp add oddsdata -- npx -y oddsdata-mcp, or in ~/.codex/config.toml:
[mcp_servers.oddsdata]
command = "npx"
args = ["-y", "oddsdata-mcp"]
Zed. The key is context_servers, in the Zed settings file:
{
"context_servers": {
"oddsdata": {
"command": "npx",
"args": ["-y", "oddsdata-mcp"]
}
}
}
Continue. YAML in .continue/mcpServers/oddsdata.yaml. MCP tools are only available in agent mode.
name: Odds Data
version: 0.0.1
schema: v1
mcpServers:
- name: oddsdata
type: stdio
command: npx
args:
- "-y"
- oddsdata-mcp
Goose. Add a custom Standard IO extension in goose Desktop, run goose configure, or edit ~/.config/goose/config.yaml:
extensions:
oddsdata:
name: oddsdata
type: stdio
cmd: npx
args: ["-y", "oddsdata-mcp"]
enabled: true
timeout: 300
Other Compatible MCP Clients
Compatibility is not limited to the clients above. Any other MCP client that can launch a local stdio server should be able to use Odds Data with the same two settings: command npx and the arguments -y oddsdata-mcp. No environment variables are required. Clients that accept only a remote HTTP MCP URL cannot use it.
Limitations and scope
- Read-only. There is no trading, order execution, wallet operations, signing, or access to private account data.
- Only binary (yes/no) markets are supported. Legacy multi-outcome markets return an
unsupported_marketerror and are left out of lists. - Odds Data returns data only. It does not generate analysis or conclusions.
- The server runs over stdio. Clients that accept only remote HTTP MCP URLs cannot use it.
- Data comes from Polymarket through the official SDK and is subject to its availability and rate limits. Price history for old periods may be unavailable at fine bucket widths.
Repository layout
| Path | Contents |
|---|---|
mcp/ | The MCP server (TypeScript). |
skills/ | The Odds Data Agent Skill: guidance for AI agents using the tools. |
src/, public/, index.html | The Odds Data website and documentation (Vite and React). |
To run the website locally: bun install, then bun run dev.
Links
- Documentation: https://www.oddsdata.app/docs/mcp
- npm: https://www.npmjs.com/package/oddsdata-mcp
- GitHub: https://github.com/Nomad07/oddsdata-mcp
- X: https://x.com/nomadonmars
License
Released under the MIT License. See LICENSE.
