MCP Predictive Market

MCP Predictive Market

Aggregates prediction market data from 5 major platforms (Manifold, Polymarket, Metaculus, PredictIt, Kalshi), enabling users to search markets, compare odds across platforms, detect arbitrage opportunities, and track predictions through natural language.

Category
访问服务器

README

<p align="center"> <h1 align="center">MCP Predictive Market</h1> <p align="center"> <strong>Query and analyze prediction markets through Claude</strong> </p> <p align="center"> <a href="https://github.com/EricGrill/mcp-predictive-market/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="MIT License"></a> <img src="https://img.shields.io/badge/tools-8-green.svg" alt="8 Tools"> <img src="https://img.shields.io/badge/platforms-5-purple.svg" alt="5 Platforms"> <img src="https://img.shields.io/badge/python-%3E%3D3.11-orange.svg" alt="Python >= 3.11"> <img src="https://img.shields.io/badge/tests-134%20passing-brightgreen.svg" alt="134 Tests"> </p> <p align="center"> <a href="#-quick-start">Quick Start</a> | <a href="#-available-tools">Tools</a> | <a href="#-supported-platforms">Platforms</a> | <a href="#%EF%B8%8F-configuration">Configuration</a> | <a href="https://github.com/EricGrill/agents-skills-plugins">Plugin Marketplace</a> </p> </p>


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?

Feature Description
Multi-Platform Search Query 5 prediction markets simultaneously
Arbitrage Detection Find price discrepancies across platforms
Market Tracking Build watchlists and monitor odds changes
Platform Comparison Side-by-side odds for similar questions
Unified Data Model Consistent market schema across all platforms

Available Tools

Search & Discovery

Tool Description
search_markets Search markets across all platforms by keyword
list_categories Get available market categories
browse_category Browse markets in a specific category

Market Data

Tool Description
get_market_odds Get current odds for a specific market
compare_platforms Side-by-side comparison of similar markets

Tracking

Tool Description
track_market Add a market to your watchlist
get_tracked_markets View all tracked markets with current prices

Analysis

Tool Description
find_arbitrage Detect price discrepancies between platforms

Supported Platforms

Platform URL Specialization
Manifold Markets manifold.markets Play money, wide variety
Polymarket polymarket.com Crypto, high liquidity
Metaculus metaculus.com Science, long-term forecasts
PredictIt predictit.org US politics
Kalshi kalshi.com CFTC-regulated, real money

Configuration

Claude Desktop Setup

Add to your Claude Desktop config:

Platform Config 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

<details> <summary><b>Search & Discovery</b></summary>

"Find prediction markets about AI"
"What categories of markets are available?"
"Show me crypto markets on Polymarket"
"Browse politics markets"

</details>

<details> <summary><b>Market Analysis</b></summary>

"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"

</details>

<details> <summary><b>Arbitrage Detection</b></summary>

"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"

</details>

<details> <summary><b>Market Tracking</b></summary>

"Track the Polymarket election market"
"Show all my tracked markets"
"What are the current prices on my watchlist?"

</details>


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

<details> <summary><b>No results from a platform</b></summary>

  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

</details>

<details> <summary><b>Arbitrage opportunities not found</b></summary>

  1. Lower the min_spread parameter (default is 5%)
  2. Try broader search terms
  3. Fewer opportunities exist in efficient markets

</details>

<details> <summary><b>Market not found</b></summary>

  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

</details>


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

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选