prediction-market-mcp is an open-source MCP (Model Context Protocol) server for connecting real-time prediction market data to AI programming environments. It can scrape current odds and prices from three platforms—Polymarket, PredictIt, and Kalshi—and can be used without an API key. The project is built with Node.js and TypeScript, depends on @modelcontextprotocol/sdk, superagent, and zod, and supports macOS, Windows, and Linux platforms.
Main capabilities:
- Multi-platform data aggregation: retrieve market data from Polymarket (percentage odds), PredictIt (USD prices), and Kalshi (US-regulated markets) simultaneously in one interface.
- Keyword search: through the get-prediction-markets tool, enter a keyword of up to 50 characters (such as "trump", "election", "supreme court") to search related prediction markets across platforms.
- Market movement evidence collection: through the gather-market-movement-evidence tool, for a specified market and lookback window (1h, 6h, 24h, 7d, 30d), return observed price changes and recent external evidence. This tool does not determine the cause of market movements; it only provides data for the calling model to analyze. External search depends on the optional Agent Reach 1.5, supporting Web (Exa), YouTube (yt-dlp), X (requires setting TWITTER_AUTH_TOKEN and TWITTER_CT0), and Reddit (rdt or OpenCLI). If Agent Reach is not installed, it will still return the market and price changes and mark external sources as unavailable. Note: get-prediction-markets does not call Agent Reach.
Usage:
- One-click install in Cursor (recommended), or manual installation. Manual installation requires Node.js 18+ and npm.
- After installation, you can search markets by keyword, for example searching for election-related markets.
- Supports directly specifying a market ID (such as polymarket:<slug>, kalshi:<ticker>, predictit:<marketId>:<contractId>) to retrieve specific market data. If a keyword matches multiple markets, a candidate list will be returned without performing a web search.
- Data sources: Polymarket uses Gamma search (https://gamma-api.polymarket.com/public-search)和 CLOB history (https://clob.polymarket.com/prices-history);PredictIt uses https://www.predictit.org/api/marketdata/all/;Kalshi is a US-regulated prediction market. PredictIt has no historical API, so this platform presents changes by comparing the previous close price with the last traded price.
Applicable scenarios:
- Traders: monitor odds and prices across platforms.
- Researchers: analyze market sentiment and predictions.
- Developers: build applications based on prediction market data.
- Analysts: track political and event probabilities.
Limitations:
- External evidence text is treated as untrusted data and is returned only as evidence; it will not be executed as instructions.
- Does not search Facebook, Instagram, or GitHub.
- If login is missing, rate limits are encountered, or a source is offline, it will be reported for the corresponding source, but it will not cause the price query to fail.
- The queries parameter can set up to three search queries, but only the first is actually executed.
- The limit parameter controls the number of evidence items, ranging from 1–10, with a default of 8.
- Agent Reach is an optional dependency and must be installed and run agent-reach doctor on the same machine.
- The project uses the MIT license.
- For more information, installation commands, and ways to contribute, please visit the GitHub repository:https://github.com/JamesANZ/prediction-market-mcp