MCP Hub
Back to servers

mcp-predictive-market

A comprehensive MCP server that aggregates prediction market data from platforms like Polymarket, Manifold, and Metaculus, enabling users to search markets, compare odds, and detect arbitrage opportunities.

Tools
8
Updated
Jan 12, 2026

MCP Predictive Market

Query and analyze prediction markets through Claude

MIT License 8 Tools 5 Platforms Python >= 3.11 134 Tests

Quick Start | Tools | Platforms | Configuration | Plugin Marketplace


What is this?

An MCP (Model Context Protocol) server that aggregates prediction market data from 5 major platforms. Search markets, compare odds, detect arbitrage opportunities, and track predictions through natural language.

Works with Claude Desktop, Claude Code, Cursor, and any MCP-compatible client.

Part of the Claude Code Plugin Marketplace.


Quick Start

# Clone and install
git clone https://github.com/EricGrill/mcp-predictive-market.git
cd mcp-predictive-market
uv sync

# Run the server
uv run python -m mcp_predictive_market.server

Add to your Claude config and start querying markets:

"Find prediction markets about AI regulation"


Why Use This?

FeatureDescription
Multi-Platform SearchQuery 5 prediction markets simultaneously
Arbitrage DetectionFind price discrepancies across platforms
Market TrackingBuild watchlists and monitor odds changes
Platform ComparisonSide-by-side odds for similar questions
Unified Data ModelConsistent market schema across all platforms

Available Tools

Search & Discovery

ToolDescription
search_marketsSearch markets across all platforms by keyword
list_categoriesGet available market categories
browse_categoryBrowse markets in a specific category

Market Data

ToolDescription
get_market_oddsGet current odds for a specific market
compare_platformsSide-by-side comparison of similar markets

Tracking

ToolDescription
track_marketAdd a market to your watchlist
get_tracked_marketsView all tracked markets with current prices

Analysis

ToolDescription
find_arbitrageDetect price discrepancies between platforms

Supported Platforms

PlatformURLSpecialization
Manifold Marketsmanifold.marketsPlay money, wide variety
Polymarketpolymarket.comCrypto, high liquidity
Metaculusmetaculus.comScience, long-term forecasts
PredictItpredictit.orgUS politics
Kalshikalshi.comCFTC-regulated, real money

Configuration

Claude Desktop Setup

Add to your Claude Desktop config:

PlatformConfig Path
macOS~/Library/Application Support/Claude/claude_desktop_config.json
Windows%APPDATA%\Claude\claude_desktop_config.json
Linux~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "prediction-market": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/mcp-predictive-market", "python", "-m", "mcp_predictive_market.server"]
    }
  }
}

Claude Code Setup

Add to your project .mcp.json or ~/.config/claude-code/mcp.json:

{
  "mcpServers": {
    "prediction-market": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/mcp-predictive-market", "python", "-m", "mcp_predictive_market.server"]
    }
  }
}

Examples

Search & Discovery
"Find prediction markets about AI"
"What categories of markets are available?"
"Show me crypto markets on Polymarket"
"Browse politics markets"
Market Analysis
"Get current odds for Manifold market abc123"
"Compare odds for 'Will Bitcoin hit $100k?' across all platforms"
"Show me the probability of a 2024 recession on different platforms"
Arbitrage Detection
"Find arbitrage opportunities with at least 10% spread"
"Are there any markets with significantly different odds across platforms?"
"Show me the biggest price discrepancies right now"
Market Tracking
"Track the Polymarket election market"
"Show all my tracked markets"
"What are the current prices on my watchlist?"

Development

# Clone
git clone https://github.com/EricGrill/mcp-predictive-market.git
cd mcp-predictive-market

# Install with dev dependencies
uv sync --extra dev

# Run tests
uv run pytest -v

# Run specific test file
uv run pytest tests/test_integration.py -v

Project Structure

src/mcp_predictive_market/
├── server.py           # MCP server entry point
├── tools.py            # Tool handler implementations
├── schema.py           # Unified market data models
├── errors.py           # Custom exceptions
├── rate_limiter.py     # Per-platform rate limiting
├── adapters/           # Platform-specific adapters
│   ├── base.py         # Adapter protocol
│   ├── manifold.py
│   ├── polymarket.py
│   ├── metaculus.py
│   ├── predictit.py
│   └── kalshi.py
├── analysis/           # Market analysis modules
│   ├── matching.py     # Cross-platform market matching
│   └── arbitrage.py    # Arbitrage detection
└── state/              # State management
    └── memvid_client.py

Troubleshooting

No results from a platform
  1. Platform API may be rate-limited - wait and retry
  2. Check platform is online: visit the website directly
  3. Some platforms filter certain market types
Arbitrage opportunities not found
  1. Lower the min_spread parameter (default is 5%)
  2. Try broader search terms
  3. Fewer opportunities exist in efficient markets
Market not found
  1. Verify the market ID format (varies by platform)
  2. Ensure the market hasn't been resolved/closed
  3. Check you're using the correct platform name

Related Projects


Contributing

Contributions welcome!

  1. Fork the repository
  2. Create feature branch: git checkout -b feature/my-feature
  3. Make changes and test: uv run pytest
  4. Commit: git commit -m 'Add my feature'
  5. Push: git push origin feature/my-feature
  6. Open a Pull Request

License

MIT

Reviews

No reviews yet

Sign in to write a review